imagekitio 4.1.0 → 4.1.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/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/imagekitio/models/extension_config.rb +10 -10
- data/lib/imagekitio/models/extensions.rb +10 -10
- data/lib/imagekitio/version.rb +1 -1
- data/rbi/imagekitio/models/extension_config.rbi +14 -11
- data/rbi/imagekitio/models/extensions.rbi +14 -11
- data/sig/imagekitio/models/extension_config.rbs +9 -7
- data/sig/imagekitio/models/extensions.rbs +9 -7
- 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: 5146c35f33502c14daa2c9c561dfb77b76118ead1f5f5ef617317af87a385b1b
|
|
4
|
+
data.tar.gz: 238f4b9a064a45f5ecd95245b6142216e9b1fa7f70aa4ae164e89159ba3cec29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f68ed813995203378a5159c527164ffd893853c417b7f9889e480e3e0c06c01bccbc89cbc77bced08559c9abebc9e914f27972c82069fb5ffdadb9ff337315d
|
|
7
|
+
data.tar.gz: a0a0ad0e42a45b8849e2d4cba0ff104004e117c871ff9925c6fd74f7e629be5bccd8ba020fdc5ca0050298eef1ad4489be7f542e220a30e50237faf901179957
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.1.1 (2026-01-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v4.1.0...v4.1.1](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.1.0...v4.1.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* vocab field is required ([1ebdd2d](https://github.com/imagekit-developer/imagekit-ruby/commit/1ebdd2dff81b620d7d7dd7dea842424790b503f4))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** update `actions/checkout` version ([1e2d69e](https://github.com/imagekit-developer/imagekit-ruby/commit/1e2d69e80f0550dc26aea92609f1a355f5335270))
|
|
15
|
+
|
|
3
16
|
## 4.1.0 (2026-01-16)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v4.0.0...v4.1.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.0.0...v4.1.0)
|
data/README.md
CHANGED
|
@@ -173,13 +173,6 @@ module Imagekitio
|
|
|
173
173
|
# @return [Symbol, :select_tags]
|
|
174
174
|
required :type, const: :select_tags
|
|
175
175
|
|
|
176
|
-
# @!attribute vocabulary
|
|
177
|
-
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
178
|
-
# characters. Cannot contain the `%` character.
|
|
179
|
-
#
|
|
180
|
-
# @return [Array<String>]
|
|
181
|
-
required :vocabulary, Imagekitio::Internal::Type::ArrayOf[String]
|
|
182
|
-
|
|
183
176
|
# @!attribute max_selections
|
|
184
177
|
# Maximum number of tags to select from the vocabulary.
|
|
185
178
|
#
|
|
@@ -192,19 +185,26 @@ module Imagekitio
|
|
|
192
185
|
# @return [Integer, nil]
|
|
193
186
|
optional :min_selections, Integer
|
|
194
187
|
|
|
195
|
-
# @!
|
|
188
|
+
# @!attribute vocabulary
|
|
189
|
+
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
190
|
+
# characters. Cannot contain the `%` character.
|
|
191
|
+
#
|
|
192
|
+
# @return [Array<String>, nil]
|
|
193
|
+
optional :vocabulary, Imagekitio::Internal::Type::ArrayOf[String]
|
|
194
|
+
|
|
195
|
+
# @!method initialize(instruction:, max_selections: nil, min_selections: nil, vocabulary: nil, type: :select_tags)
|
|
196
196
|
# Some parameter documentations has been truncated, see
|
|
197
197
|
# {Imagekitio::Models::ExtensionConfig::AITasks::Task::SelectTags} for more
|
|
198
198
|
# details.
|
|
199
199
|
#
|
|
200
200
|
# @param instruction [String] The question or instruction for the AI to analyze the image.
|
|
201
201
|
#
|
|
202
|
-
# @param vocabulary [Array<String>] Array of possible tag values. Combined length of all strings must not exceed 500
|
|
203
|
-
#
|
|
204
202
|
# @param max_selections [Integer] Maximum number of tags to select from the vocabulary.
|
|
205
203
|
#
|
|
206
204
|
# @param min_selections [Integer] Minimum number of tags to select from the vocabulary.
|
|
207
205
|
#
|
|
206
|
+
# @param vocabulary [Array<String>] Array of possible tag values. Combined length of all strings must not exceed 500
|
|
207
|
+
#
|
|
208
208
|
# @param type [Symbol, :select_tags] Task type that analyzes the image and adds matching tags from a vocabulary.
|
|
209
209
|
end
|
|
210
210
|
|
|
@@ -173,13 +173,6 @@ module Imagekitio
|
|
|
173
173
|
# @return [Symbol, :select_tags]
|
|
174
174
|
required :type, const: :select_tags
|
|
175
175
|
|
|
176
|
-
# @!attribute vocabulary
|
|
177
|
-
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
178
|
-
# characters. Cannot contain the `%` character.
|
|
179
|
-
#
|
|
180
|
-
# @return [Array<String>]
|
|
181
|
-
required :vocabulary, Imagekitio::Internal::Type::ArrayOf[String]
|
|
182
|
-
|
|
183
176
|
# @!attribute max_selections
|
|
184
177
|
# Maximum number of tags to select from the vocabulary.
|
|
185
178
|
#
|
|
@@ -192,18 +185,25 @@ module Imagekitio
|
|
|
192
185
|
# @return [Integer, nil]
|
|
193
186
|
optional :min_selections, Integer
|
|
194
187
|
|
|
195
|
-
# @!
|
|
188
|
+
# @!attribute vocabulary
|
|
189
|
+
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
190
|
+
# characters. Cannot contain the `%` character.
|
|
191
|
+
#
|
|
192
|
+
# @return [Array<String>, nil]
|
|
193
|
+
optional :vocabulary, Imagekitio::Internal::Type::ArrayOf[String]
|
|
194
|
+
|
|
195
|
+
# @!method initialize(instruction:, max_selections: nil, min_selections: nil, vocabulary: nil, type: :select_tags)
|
|
196
196
|
# Some parameter documentations has been truncated, see
|
|
197
197
|
# {Imagekitio::Models::ExtensionItem::AITasks::Task::SelectTags} for more details.
|
|
198
198
|
#
|
|
199
199
|
# @param instruction [String] The question or instruction for the AI to analyze the image.
|
|
200
200
|
#
|
|
201
|
-
# @param vocabulary [Array<String>] Array of possible tag values. Combined length of all strings must not exceed 500
|
|
202
|
-
#
|
|
203
201
|
# @param max_selections [Integer] Maximum number of tags to select from the vocabulary.
|
|
204
202
|
#
|
|
205
203
|
# @param min_selections [Integer] Minimum number of tags to select from the vocabulary.
|
|
206
204
|
#
|
|
205
|
+
# @param vocabulary [Array<String>] Array of possible tag values. Combined length of all strings must not exceed 500
|
|
206
|
+
#
|
|
207
207
|
# @param type [Symbol, :select_tags] Task type that analyzes the image and adds matching tags from a vocabulary.
|
|
208
208
|
end
|
|
209
209
|
|
data/lib/imagekitio/version.rb
CHANGED
|
@@ -360,11 +360,6 @@ module Imagekitio
|
|
|
360
360
|
sig { returns(Symbol) }
|
|
361
361
|
attr_accessor :type
|
|
362
362
|
|
|
363
|
-
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
364
|
-
# characters. Cannot contain the `%` character.
|
|
365
|
-
sig { returns(T::Array[String]) }
|
|
366
|
-
attr_accessor :vocabulary
|
|
367
|
-
|
|
368
363
|
# Maximum number of tags to select from the vocabulary.
|
|
369
364
|
sig { returns(T.nilable(Integer)) }
|
|
370
365
|
attr_reader :max_selections
|
|
@@ -379,25 +374,33 @@ module Imagekitio
|
|
|
379
374
|
sig { params(min_selections: Integer).void }
|
|
380
375
|
attr_writer :min_selections
|
|
381
376
|
|
|
377
|
+
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
378
|
+
# characters. Cannot contain the `%` character.
|
|
379
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
380
|
+
attr_reader :vocabulary
|
|
381
|
+
|
|
382
|
+
sig { params(vocabulary: T::Array[String]).void }
|
|
383
|
+
attr_writer :vocabulary
|
|
384
|
+
|
|
382
385
|
sig do
|
|
383
386
|
params(
|
|
384
387
|
instruction: String,
|
|
385
|
-
vocabulary: T::Array[String],
|
|
386
388
|
max_selections: Integer,
|
|
387
389
|
min_selections: Integer,
|
|
390
|
+
vocabulary: T::Array[String],
|
|
388
391
|
type: Symbol
|
|
389
392
|
).returns(T.attached_class)
|
|
390
393
|
end
|
|
391
394
|
def self.new(
|
|
392
395
|
# The question or instruction for the AI to analyze the image.
|
|
393
396
|
instruction:,
|
|
394
|
-
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
395
|
-
# characters. Cannot contain the `%` character.
|
|
396
|
-
vocabulary:,
|
|
397
397
|
# Maximum number of tags to select from the vocabulary.
|
|
398
398
|
max_selections: nil,
|
|
399
399
|
# Minimum number of tags to select from the vocabulary.
|
|
400
400
|
min_selections: nil,
|
|
401
|
+
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
402
|
+
# characters. Cannot contain the `%` character.
|
|
403
|
+
vocabulary: nil,
|
|
401
404
|
# Task type that analyzes the image and adds matching tags from a vocabulary.
|
|
402
405
|
type: :select_tags
|
|
403
406
|
)
|
|
@@ -408,9 +411,9 @@ module Imagekitio
|
|
|
408
411
|
{
|
|
409
412
|
instruction: String,
|
|
410
413
|
type: Symbol,
|
|
411
|
-
vocabulary: T::Array[String],
|
|
412
414
|
max_selections: Integer,
|
|
413
|
-
min_selections: Integer
|
|
415
|
+
min_selections: Integer,
|
|
416
|
+
vocabulary: T::Array[String]
|
|
414
417
|
}
|
|
415
418
|
)
|
|
416
419
|
end
|
|
@@ -357,11 +357,6 @@ module Imagekitio
|
|
|
357
357
|
sig { returns(Symbol) }
|
|
358
358
|
attr_accessor :type
|
|
359
359
|
|
|
360
|
-
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
361
|
-
# characters. Cannot contain the `%` character.
|
|
362
|
-
sig { returns(T::Array[String]) }
|
|
363
|
-
attr_accessor :vocabulary
|
|
364
|
-
|
|
365
360
|
# Maximum number of tags to select from the vocabulary.
|
|
366
361
|
sig { returns(T.nilable(Integer)) }
|
|
367
362
|
attr_reader :max_selections
|
|
@@ -376,25 +371,33 @@ module Imagekitio
|
|
|
376
371
|
sig { params(min_selections: Integer).void }
|
|
377
372
|
attr_writer :min_selections
|
|
378
373
|
|
|
374
|
+
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
375
|
+
# characters. Cannot contain the `%` character.
|
|
376
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
377
|
+
attr_reader :vocabulary
|
|
378
|
+
|
|
379
|
+
sig { params(vocabulary: T::Array[String]).void }
|
|
380
|
+
attr_writer :vocabulary
|
|
381
|
+
|
|
379
382
|
sig do
|
|
380
383
|
params(
|
|
381
384
|
instruction: String,
|
|
382
|
-
vocabulary: T::Array[String],
|
|
383
385
|
max_selections: Integer,
|
|
384
386
|
min_selections: Integer,
|
|
387
|
+
vocabulary: T::Array[String],
|
|
385
388
|
type: Symbol
|
|
386
389
|
).returns(T.attached_class)
|
|
387
390
|
end
|
|
388
391
|
def self.new(
|
|
389
392
|
# The question or instruction for the AI to analyze the image.
|
|
390
393
|
instruction:,
|
|
391
|
-
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
392
|
-
# characters. Cannot contain the `%` character.
|
|
393
|
-
vocabulary:,
|
|
394
394
|
# Maximum number of tags to select from the vocabulary.
|
|
395
395
|
max_selections: nil,
|
|
396
396
|
# Minimum number of tags to select from the vocabulary.
|
|
397
397
|
min_selections: nil,
|
|
398
|
+
# Array of possible tag values. Combined length of all strings must not exceed 500
|
|
399
|
+
# characters. Cannot contain the `%` character.
|
|
400
|
+
vocabulary: nil,
|
|
398
401
|
# Task type that analyzes the image and adds matching tags from a vocabulary.
|
|
399
402
|
type: :select_tags
|
|
400
403
|
)
|
|
@@ -405,9 +408,9 @@ module Imagekitio
|
|
|
405
408
|
{
|
|
406
409
|
instruction: String,
|
|
407
410
|
type: Symbol,
|
|
408
|
-
vocabulary: T::Array[String],
|
|
409
411
|
max_selections: Integer,
|
|
410
|
-
min_selections: Integer
|
|
412
|
+
min_selections: Integer,
|
|
413
|
+
vocabulary: T::Array[String]
|
|
411
414
|
}
|
|
412
415
|
)
|
|
413
416
|
end
|
|
@@ -156,9 +156,9 @@ module Imagekitio
|
|
|
156
156
|
{
|
|
157
157
|
instruction: String,
|
|
158
158
|
type: :select_tags,
|
|
159
|
-
vocabulary: ::Array[String],
|
|
160
159
|
max_selections: Integer,
|
|
161
|
-
min_selections: Integer
|
|
160
|
+
min_selections: Integer,
|
|
161
|
+
vocabulary: ::Array[String]
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
class SelectTags < Imagekitio::Internal::Type::BaseModel
|
|
@@ -166,8 +166,6 @@ module Imagekitio
|
|
|
166
166
|
|
|
167
167
|
attr_accessor type: :select_tags
|
|
168
168
|
|
|
169
|
-
attr_accessor vocabulary: ::Array[String]
|
|
170
|
-
|
|
171
169
|
attr_reader max_selections: Integer?
|
|
172
170
|
|
|
173
171
|
def max_selections=: (Integer) -> Integer
|
|
@@ -176,20 +174,24 @@ module Imagekitio
|
|
|
176
174
|
|
|
177
175
|
def min_selections=: (Integer) -> Integer
|
|
178
176
|
|
|
177
|
+
attr_reader vocabulary: ::Array[String]?
|
|
178
|
+
|
|
179
|
+
def vocabulary=: (::Array[String]) -> ::Array[String]
|
|
180
|
+
|
|
179
181
|
def initialize: (
|
|
180
182
|
instruction: String,
|
|
181
|
-
vocabulary: ::Array[String],
|
|
182
183
|
?max_selections: Integer,
|
|
183
184
|
?min_selections: Integer,
|
|
185
|
+
?vocabulary: ::Array[String],
|
|
184
186
|
?type: :select_tags
|
|
185
187
|
) -> void
|
|
186
188
|
|
|
187
189
|
def to_hash: -> {
|
|
188
190
|
instruction: String,
|
|
189
191
|
type: :select_tags,
|
|
190
|
-
vocabulary: ::Array[String],
|
|
191
192
|
max_selections: Integer,
|
|
192
|
-
min_selections: Integer
|
|
193
|
+
min_selections: Integer,
|
|
194
|
+
vocabulary: ::Array[String]
|
|
193
195
|
}
|
|
194
196
|
end
|
|
195
197
|
|
|
@@ -157,9 +157,9 @@ module Imagekitio
|
|
|
157
157
|
{
|
|
158
158
|
instruction: String,
|
|
159
159
|
type: :select_tags,
|
|
160
|
-
vocabulary: ::Array[String],
|
|
161
160
|
max_selections: Integer,
|
|
162
|
-
min_selections: Integer
|
|
161
|
+
min_selections: Integer,
|
|
162
|
+
vocabulary: ::Array[String]
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
class SelectTags < Imagekitio::Internal::Type::BaseModel
|
|
@@ -167,8 +167,6 @@ module Imagekitio
|
|
|
167
167
|
|
|
168
168
|
attr_accessor type: :select_tags
|
|
169
169
|
|
|
170
|
-
attr_accessor vocabulary: ::Array[String]
|
|
171
|
-
|
|
172
170
|
attr_reader max_selections: Integer?
|
|
173
171
|
|
|
174
172
|
def max_selections=: (Integer) -> Integer
|
|
@@ -177,20 +175,24 @@ module Imagekitio
|
|
|
177
175
|
|
|
178
176
|
def min_selections=: (Integer) -> Integer
|
|
179
177
|
|
|
178
|
+
attr_reader vocabulary: ::Array[String]?
|
|
179
|
+
|
|
180
|
+
def vocabulary=: (::Array[String]) -> ::Array[String]
|
|
181
|
+
|
|
180
182
|
def initialize: (
|
|
181
183
|
instruction: String,
|
|
182
|
-
vocabulary: ::Array[String],
|
|
183
184
|
?max_selections: Integer,
|
|
184
185
|
?min_selections: Integer,
|
|
186
|
+
?vocabulary: ::Array[String],
|
|
185
187
|
?type: :select_tags
|
|
186
188
|
) -> void
|
|
187
189
|
|
|
188
190
|
def to_hash: -> {
|
|
189
191
|
instruction: String,
|
|
190
192
|
type: :select_tags,
|
|
191
|
-
vocabulary: ::Array[String],
|
|
192
193
|
max_selections: Integer,
|
|
193
|
-
min_selections: Integer
|
|
194
|
+
min_selections: Integer,
|
|
195
|
+
vocabulary: ::Array[String]
|
|
194
196
|
}
|
|
195
197
|
end
|
|
196
198
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: imagekitio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ImageKit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|