imagekitio 4.5.1 → 4.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +1 -1
- data/lib/imagekitio/client.rb +2 -2
- data/lib/imagekitio/models/accounts/origin_request.rb +35 -10
- data/lib/imagekitio/models/accounts/origin_response.rb +20 -2
- data/lib/imagekitio/models/metadata.rb +143 -17
- data/lib/imagekitio/models/transformation.rb +1 -1
- data/lib/imagekitio/version.rb +1 -1
- data/rbi/imagekitio/client.rbi +2 -2
- data/rbi/imagekitio/models/accounts/origin_request.rbi +36 -10
- data/rbi/imagekitio/models/accounts/origin_response.rbi +28 -2
- data/rbi/imagekitio/models/metadata.rbi +222 -23
- data/rbi/imagekitio/models/transformation.rbi +2 -2
- data/sig/imagekitio/models/accounts/origin_request.rbs +18 -4
- data/sig/imagekitio/models/accounts/origin_response.rbs +18 -4
- data/sig/imagekitio/models/metadata.rbs +182 -28
- 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: ae0103be053b05758d9f09f72d330ebff76e07ea7521cf2eb9933b530fefbbeb
|
|
4
|
+
data.tar.gz: 49172d345668ba011ccf9021571bac3b4326dd8267761f4370e43521ecfd468b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d804c43b102c6762193bd63a8505ce715a6635763651b19b119f87db3b8b98d582404c0ade817efa9cdabf65d6f4a1eadc0ced7fc9addebf9045a19e4fb1ed9
|
|
7
|
+
data.tar.gz: 9318e37eb4f0081d70c1ac7932082d0ec5b679b1f65713d18033c82595922ffa1cf4112c67bf4b40d3bb9f981d29fe2ec0ce0f572e17b2a1db73a3444959f162
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.7.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.6.0...v4.7.0) (2026-06-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **origins:** add useIAMRole for IAM role authentication ([c38cc1b](https://github.com/imagekit-developer/imagekit-ruby/commit/c38cc1bea8028c2c10ae543e027dc71a63170222))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* update default value in description for intensity in colorize transformation ([7b128c5](https://github.com/imagekit-developer/imagekit-ruby/commit/7b128c59d1da7435e6137ebad7a60251e941defa))
|
|
14
|
+
|
|
15
|
+
## [4.6.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.5.1...v4.6.0) (2026-06-03)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* initial stlc build ([a2757e4](https://github.com/imagekit-developer/imagekit-ruby/commit/a2757e46e00bd414fd2de73c11eb53e01a7633dc))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* metadata response shape ([34e58cd](https://github.com/imagekit-developer/imagekit-ruby/commit/34e58cd2b3d0923881fc15d38e5dfbb32bef2991))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Chores
|
|
29
|
+
|
|
30
|
+
* Update webhook description ([1581227](https://github.com/imagekit-developer/imagekit-ruby/commit/15812270ccbe7e45a61ee94a4006fb5d02cf9921))
|
|
31
|
+
* Update webhook description ([7e2d29e](https://github.com/imagekit-developer/imagekit-ruby/commit/7e2d29e79c23729d2c2bf5ecbc0439ce53f66099))
|
|
32
|
+
|
|
3
33
|
## 4.5.1 (2026-05-17)
|
|
4
34
|
|
|
5
35
|
Full Changelog: [v4.5.0...v4.5.1](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.5.0...v4.5.1)
|
data/README.md
CHANGED
data/lib/imagekitio/client.rb
CHANGED
|
@@ -28,7 +28,7 @@ module Imagekitio
|
|
|
28
28
|
# Your ImageKit webhook secret for verifying webhook signatures (starts with
|
|
29
29
|
# `whsec_`). You can find this in the
|
|
30
30
|
# [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only
|
|
31
|
-
# required if you
|
|
31
|
+
# required if you are using webhooks.
|
|
32
32
|
# @return [String, nil]
|
|
33
33
|
attr_reader :webhook_secret
|
|
34
34
|
|
|
@@ -90,7 +90,7 @@ module Imagekitio
|
|
|
90
90
|
# @param webhook_secret [String, nil] Your ImageKit webhook secret for verifying webhook signatures (starts with
|
|
91
91
|
# `whsec_`). You can find this in the
|
|
92
92
|
# [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only
|
|
93
|
-
# required if you
|
|
93
|
+
# required if you are using webhooks. Defaults to `ENV["IMAGEKIT_WEBHOOK_SECRET"]`
|
|
94
94
|
#
|
|
95
95
|
# @param base_url [String, nil] Override the default base URL for the API, e.g.,
|
|
96
96
|
# `"https://api.example.com/v2/"`. Defaults to `ENV["IMAGE_KIT_BASE_URL"]`
|
|
@@ -27,7 +27,7 @@ module Imagekitio
|
|
|
27
27
|
|
|
28
28
|
class S3 < Imagekitio::Internal::Type::BaseModel
|
|
29
29
|
# @!attribute access_key
|
|
30
|
-
# Access key for the bucket.
|
|
30
|
+
# Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
31
31
|
#
|
|
32
32
|
# @return [String]
|
|
33
33
|
required :access_key, String, api_name: :accessKey
|
|
@@ -45,7 +45,7 @@ module Imagekitio
|
|
|
45
45
|
required :name, String
|
|
46
46
|
|
|
47
47
|
# @!attribute secret_key
|
|
48
|
-
# Secret key for the bucket.
|
|
48
|
+
# Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
49
49
|
#
|
|
50
50
|
# @return [String]
|
|
51
51
|
required :secret_key, String, api_name: :secretKey
|
|
@@ -75,14 +75,24 @@ module Imagekitio
|
|
|
75
75
|
# @return [String, nil]
|
|
76
76
|
optional :prefix, String
|
|
77
77
|
|
|
78
|
-
# @!
|
|
79
|
-
#
|
|
78
|
+
# @!attribute use_iam_role
|
|
79
|
+
# Use IAM role for authentication instead of access/secret keys. When set to
|
|
80
|
+
# `true`, send an empty string for both `accessKey` and `secretKey`.
|
|
81
|
+
#
|
|
82
|
+
# @return [Boolean, nil]
|
|
83
|
+
optional :use_iam_role, Imagekitio::Internal::Type::Boolean, api_name: :useIAMRole
|
|
84
|
+
|
|
85
|
+
# @!method initialize(access_key:, bucket:, name:, secret_key:, base_url_for_canonical_header: nil, include_canonical_header: nil, prefix: nil, use_iam_role: nil, type: :S3)
|
|
86
|
+
# Some parameter documentations has been truncated, see
|
|
87
|
+
# {Imagekitio::Models::Accounts::OriginRequest::S3} for more details.
|
|
88
|
+
#
|
|
89
|
+
# @param access_key [String] Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
80
90
|
#
|
|
81
91
|
# @param bucket [String] S3 bucket name.
|
|
82
92
|
#
|
|
83
93
|
# @param name [String] Display name of the origin.
|
|
84
94
|
#
|
|
85
|
-
# @param secret_key [String] Secret key for the bucket.
|
|
95
|
+
# @param secret_key [String] Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
86
96
|
#
|
|
87
97
|
# @param base_url_for_canonical_header [String] URL used in the Canonical header (if enabled).
|
|
88
98
|
#
|
|
@@ -90,6 +100,8 @@ module Imagekitio
|
|
|
90
100
|
#
|
|
91
101
|
# @param prefix [String] Path prefix inside the bucket.
|
|
92
102
|
#
|
|
103
|
+
# @param use_iam_role [Boolean] Use IAM role for authentication instead of access/secret keys. When set to `true
|
|
104
|
+
#
|
|
93
105
|
# @param type [Symbol, :S3]
|
|
94
106
|
end
|
|
95
107
|
|
|
@@ -179,7 +191,7 @@ module Imagekitio
|
|
|
179
191
|
|
|
180
192
|
class CloudinaryBackup < Imagekitio::Internal::Type::BaseModel
|
|
181
193
|
# @!attribute access_key
|
|
182
|
-
# Access key for the bucket.
|
|
194
|
+
# Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
183
195
|
#
|
|
184
196
|
# @return [String]
|
|
185
197
|
required :access_key, String, api_name: :accessKey
|
|
@@ -197,7 +209,7 @@ module Imagekitio
|
|
|
197
209
|
required :name, String
|
|
198
210
|
|
|
199
211
|
# @!attribute secret_key
|
|
200
|
-
# Secret key for the bucket.
|
|
212
|
+
# Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
201
213
|
#
|
|
202
214
|
# @return [String]
|
|
203
215
|
required :secret_key, String, api_name: :secretKey
|
|
@@ -227,14 +239,25 @@ module Imagekitio
|
|
|
227
239
|
# @return [String, nil]
|
|
228
240
|
optional :prefix, String
|
|
229
241
|
|
|
230
|
-
# @!
|
|
231
|
-
#
|
|
242
|
+
# @!attribute use_iam_role
|
|
243
|
+
# Use IAM role for authentication instead of access/secret keys. When set to
|
|
244
|
+
# `true`, send an empty string for both `accessKey` and `secretKey`.
|
|
245
|
+
#
|
|
246
|
+
# @return [Boolean, nil]
|
|
247
|
+
optional :use_iam_role, Imagekitio::Internal::Type::Boolean, api_name: :useIAMRole
|
|
248
|
+
|
|
249
|
+
# @!method initialize(access_key:, bucket:, name:, secret_key:, base_url_for_canonical_header: nil, include_canonical_header: nil, prefix: nil, use_iam_role: nil, type: :CLOUDINARY_BACKUP)
|
|
250
|
+
# Some parameter documentations has been truncated, see
|
|
251
|
+
# {Imagekitio::Models::Accounts::OriginRequest::CloudinaryBackup} for more
|
|
252
|
+
# details.
|
|
253
|
+
#
|
|
254
|
+
# @param access_key [String] Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
232
255
|
#
|
|
233
256
|
# @param bucket [String] S3 bucket name.
|
|
234
257
|
#
|
|
235
258
|
# @param name [String] Display name of the origin.
|
|
236
259
|
#
|
|
237
|
-
# @param secret_key [String] Secret key for the bucket.
|
|
260
|
+
# @param secret_key [String] Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
|
|
238
261
|
#
|
|
239
262
|
# @param base_url_for_canonical_header [String] URL used in the Canonical header (if enabled).
|
|
240
263
|
#
|
|
@@ -242,6 +265,8 @@ module Imagekitio
|
|
|
242
265
|
#
|
|
243
266
|
# @param prefix [String] Path prefix inside the bucket.
|
|
244
267
|
#
|
|
268
|
+
# @param use_iam_role [Boolean] Use IAM role for authentication instead of access/secret keys. When set to `true
|
|
269
|
+
#
|
|
245
270
|
# @param type [Symbol, :CLOUDINARY_BACKUP]
|
|
246
271
|
end
|
|
247
272
|
|
|
@@ -65,6 +65,13 @@ module Imagekitio
|
|
|
65
65
|
# @return [String, nil]
|
|
66
66
|
optional :base_url_for_canonical_header, String, api_name: :baseUrlForCanonicalHeader
|
|
67
67
|
|
|
68
|
+
# @!attribute use_iam_role
|
|
69
|
+
# Whether the origin authenticates using an IAM role instead of access/secret
|
|
70
|
+
# keys.
|
|
71
|
+
#
|
|
72
|
+
# @return [Boolean, nil]
|
|
73
|
+
optional :use_iam_role, Imagekitio::Internal::Type::Boolean, api_name: :useIAMRole
|
|
74
|
+
|
|
68
75
|
response_only do
|
|
69
76
|
# @!attribute id
|
|
70
77
|
# Unique identifier for the origin. This is generated by ImageKit when you create
|
|
@@ -74,7 +81,7 @@ module Imagekitio
|
|
|
74
81
|
required :id, String
|
|
75
82
|
end
|
|
76
83
|
|
|
77
|
-
# @!method initialize(id:, bucket:, include_canonical_header:, name:, prefix:, base_url_for_canonical_header: nil, type: :S3)
|
|
84
|
+
# @!method initialize(id:, bucket:, include_canonical_header:, name:, prefix:, base_url_for_canonical_header: nil, use_iam_role: nil, type: :S3)
|
|
78
85
|
# Some parameter documentations has been truncated, see
|
|
79
86
|
# {Imagekitio::Models::Accounts::OriginResponse::S3} for more details.
|
|
80
87
|
#
|
|
@@ -90,6 +97,8 @@ module Imagekitio
|
|
|
90
97
|
#
|
|
91
98
|
# @param base_url_for_canonical_header [String] URL used in the Canonical header (if enabled).
|
|
92
99
|
#
|
|
100
|
+
# @param use_iam_role [Boolean] Whether the origin authenticates using an IAM role instead of access/secret keys
|
|
101
|
+
#
|
|
93
102
|
# @param type [Symbol, :S3]
|
|
94
103
|
end
|
|
95
104
|
|
|
@@ -213,6 +222,13 @@ module Imagekitio
|
|
|
213
222
|
# @return [String, nil]
|
|
214
223
|
optional :base_url_for_canonical_header, String, api_name: :baseUrlForCanonicalHeader
|
|
215
224
|
|
|
225
|
+
# @!attribute use_iam_role
|
|
226
|
+
# Whether the origin authenticates using an IAM role instead of access/secret
|
|
227
|
+
# keys.
|
|
228
|
+
#
|
|
229
|
+
# @return [Boolean, nil]
|
|
230
|
+
optional :use_iam_role, Imagekitio::Internal::Type::Boolean, api_name: :useIAMRole
|
|
231
|
+
|
|
216
232
|
response_only do
|
|
217
233
|
# @!attribute id
|
|
218
234
|
# Unique identifier for the origin. This is generated by ImageKit when you create
|
|
@@ -222,7 +238,7 @@ module Imagekitio
|
|
|
222
238
|
required :id, String
|
|
223
239
|
end
|
|
224
240
|
|
|
225
|
-
# @!method initialize(id:, bucket:, include_canonical_header:, name:, prefix:, base_url_for_canonical_header: nil, type: :CLOUDINARY_BACKUP)
|
|
241
|
+
# @!method initialize(id:, bucket:, include_canonical_header:, name:, prefix:, base_url_for_canonical_header: nil, use_iam_role: nil, type: :CLOUDINARY_BACKUP)
|
|
226
242
|
# Some parameter documentations has been truncated, see
|
|
227
243
|
# {Imagekitio::Models::Accounts::OriginResponse::CloudinaryBackup} for more
|
|
228
244
|
# details.
|
|
@@ -239,6 +255,8 @@ module Imagekitio
|
|
|
239
255
|
#
|
|
240
256
|
# @param base_url_for_canonical_header [String] URL used in the Canonical header (if enabled).
|
|
241
257
|
#
|
|
258
|
+
# @param use_iam_role [Boolean] Whether the origin authenticates using an IAM role instead of access/secret keys
|
|
259
|
+
#
|
|
242
260
|
# @param type [Symbol, :CLOUDINARY_BACKUP]
|
|
243
261
|
end
|
|
244
262
|
|
|
@@ -174,6 +174,11 @@ module Imagekitio
|
|
|
174
174
|
# @return [Float, nil]
|
|
175
175
|
optional :aperture_value, Float, api_name: :ApertureValue
|
|
176
176
|
|
|
177
|
+
# @!attribute brightness_value
|
|
178
|
+
#
|
|
179
|
+
# @return [Float, nil]
|
|
180
|
+
optional :brightness_value, Float, api_name: :BrightnessValue
|
|
181
|
+
|
|
177
182
|
# @!attribute color_space
|
|
178
183
|
#
|
|
179
184
|
# @return [Integer, nil]
|
|
@@ -246,8 +251,13 @@ module Imagekitio
|
|
|
246
251
|
|
|
247
252
|
# @!attribute focal_length
|
|
248
253
|
#
|
|
254
|
+
# @return [Float, nil]
|
|
255
|
+
optional :focal_length, Float, api_name: :FocalLength
|
|
256
|
+
|
|
257
|
+
# @!attribute focal_length_in35mm_format
|
|
258
|
+
#
|
|
249
259
|
# @return [Integer, nil]
|
|
250
|
-
optional :
|
|
260
|
+
optional :focal_length_in35mm_format, Integer, api_name: :FocalLengthIn35mmFormat
|
|
251
261
|
|
|
252
262
|
# @!attribute focal_plane_resolution_unit
|
|
253
263
|
#
|
|
@@ -274,6 +284,21 @@ module Imagekitio
|
|
|
274
284
|
# @return [Integer, nil]
|
|
275
285
|
optional :iso, Integer, api_name: :ISO
|
|
276
286
|
|
|
287
|
+
# @!attribute lens_model
|
|
288
|
+
#
|
|
289
|
+
# @return [String, nil]
|
|
290
|
+
optional :lens_model, String, api_name: :LensModel
|
|
291
|
+
|
|
292
|
+
# @!attribute light_source
|
|
293
|
+
#
|
|
294
|
+
# @return [Integer, nil]
|
|
295
|
+
optional :light_source, Integer, api_name: :LightSource
|
|
296
|
+
|
|
297
|
+
# @!attribute max_aperture_value
|
|
298
|
+
#
|
|
299
|
+
# @return [Float, nil]
|
|
300
|
+
optional :max_aperture_value, Float, api_name: :MaxApertureValue
|
|
301
|
+
|
|
277
302
|
# @!attribute metering_mode
|
|
278
303
|
#
|
|
279
304
|
# @return [Integer, nil]
|
|
@@ -284,6 +309,16 @@ module Imagekitio
|
|
|
284
309
|
# @return [Integer, nil]
|
|
285
310
|
optional :scene_capture_type, Integer, api_name: :SceneCaptureType
|
|
286
311
|
|
|
312
|
+
# @!attribute scene_type
|
|
313
|
+
#
|
|
314
|
+
# @return [String, nil]
|
|
315
|
+
optional :scene_type, String, api_name: :SceneType
|
|
316
|
+
|
|
317
|
+
# @!attribute sensing_method
|
|
318
|
+
#
|
|
319
|
+
# @return [Integer, nil]
|
|
320
|
+
optional :sensing_method, Integer, api_name: :SensingMethod
|
|
321
|
+
|
|
287
322
|
# @!attribute shutter_speed_value
|
|
288
323
|
#
|
|
289
324
|
# @return [Float, nil]
|
|
@@ -294,15 +329,21 @@ module Imagekitio
|
|
|
294
329
|
# @return [String, nil]
|
|
295
330
|
optional :sub_sec_time, String, api_name: :SubSecTime
|
|
296
331
|
|
|
332
|
+
# @!attribute user_comment
|
|
333
|
+
#
|
|
334
|
+
# @return [String, nil]
|
|
335
|
+
optional :user_comment, String, api_name: :UserComment
|
|
336
|
+
|
|
297
337
|
# @!attribute white_balance
|
|
298
338
|
#
|
|
299
339
|
# @return [Integer, nil]
|
|
300
340
|
optional :white_balance, Integer, api_name: :WhiteBalance
|
|
301
341
|
|
|
302
|
-
# @!method initialize(aperture_value: nil, color_space: nil, create_date: nil, custom_rendered: nil, date_time_original: nil, exif_image_height: nil, exif_image_width: nil, exif_version: nil, exposure_compensation: nil, exposure_mode: nil, exposure_program: nil, exposure_time: nil, flash: nil, flashpix_version: nil, f_number: nil, focal_length: nil, focal_plane_resolution_unit: nil, focal_plane_x_resolution: nil, focal_plane_y_resolution: nil, interop_offset: nil, iso: nil, metering_mode: nil, scene_capture_type: nil, shutter_speed_value: nil, sub_sec_time: nil, white_balance: nil)
|
|
342
|
+
# @!method initialize(aperture_value: nil, brightness_value: nil, color_space: nil, create_date: nil, custom_rendered: nil, date_time_original: nil, exif_image_height: nil, exif_image_width: nil, exif_version: nil, exposure_compensation: nil, exposure_mode: nil, exposure_program: nil, exposure_time: nil, flash: nil, flashpix_version: nil, f_number: nil, focal_length: nil, focal_length_in35mm_format: nil, focal_plane_resolution_unit: nil, focal_plane_x_resolution: nil, focal_plane_y_resolution: nil, interop_offset: nil, iso: nil, lens_model: nil, light_source: nil, max_aperture_value: nil, metering_mode: nil, scene_capture_type: nil, scene_type: nil, sensing_method: nil, shutter_speed_value: nil, sub_sec_time: nil, user_comment: nil, white_balance: nil)
|
|
303
343
|
# Object containing Exif details.
|
|
304
344
|
#
|
|
305
345
|
# @param aperture_value [Float]
|
|
346
|
+
# @param brightness_value [Float]
|
|
306
347
|
# @param color_space [Integer]
|
|
307
348
|
# @param create_date [String]
|
|
308
349
|
# @param custom_rendered [Integer]
|
|
@@ -317,34 +358,111 @@ module Imagekitio
|
|
|
317
358
|
# @param flash [Integer]
|
|
318
359
|
# @param flashpix_version [String]
|
|
319
360
|
# @param f_number [Float]
|
|
320
|
-
# @param focal_length [
|
|
361
|
+
# @param focal_length [Float]
|
|
362
|
+
# @param focal_length_in35mm_format [Integer]
|
|
321
363
|
# @param focal_plane_resolution_unit [Integer]
|
|
322
364
|
# @param focal_plane_x_resolution [Float]
|
|
323
365
|
# @param focal_plane_y_resolution [Float]
|
|
324
366
|
# @param interop_offset [Integer]
|
|
325
367
|
# @param iso [Integer]
|
|
368
|
+
# @param lens_model [String]
|
|
369
|
+
# @param light_source [Integer]
|
|
370
|
+
# @param max_aperture_value [Float]
|
|
326
371
|
# @param metering_mode [Integer]
|
|
327
372
|
# @param scene_capture_type [Integer]
|
|
373
|
+
# @param scene_type [String]
|
|
374
|
+
# @param sensing_method [Integer]
|
|
328
375
|
# @param shutter_speed_value [Float]
|
|
329
376
|
# @param sub_sec_time [String]
|
|
377
|
+
# @param user_comment [String]
|
|
330
378
|
# @param white_balance [Integer]
|
|
331
379
|
end
|
|
332
380
|
|
|
333
381
|
# @see Imagekitio::Models::Metadata::Exif#gps
|
|
334
382
|
class Gps < Imagekitio::Internal::Type::BaseModel
|
|
383
|
+
# @!attribute gps_altitude
|
|
384
|
+
#
|
|
385
|
+
# @return [Float, nil]
|
|
386
|
+
optional :gps_altitude, Float, api_name: :GPSAltitude
|
|
387
|
+
|
|
388
|
+
# @!attribute gps_altitude_ref
|
|
389
|
+
#
|
|
390
|
+
# @return [Integer, nil]
|
|
391
|
+
optional :gps_altitude_ref, Integer, api_name: :GPSAltitudeRef
|
|
392
|
+
|
|
393
|
+
# @!attribute gps_date_stamp
|
|
394
|
+
#
|
|
395
|
+
# @return [String, nil]
|
|
396
|
+
optional :gps_date_stamp, String, api_name: :GPSDateStamp
|
|
397
|
+
|
|
398
|
+
# @!attribute gps_img_direction
|
|
399
|
+
#
|
|
400
|
+
# @return [Float, nil]
|
|
401
|
+
optional :gps_img_direction, Float, api_name: :GPSImgDirection
|
|
402
|
+
|
|
403
|
+
# @!attribute gps_img_direction_ref
|
|
404
|
+
#
|
|
405
|
+
# @return [String, nil]
|
|
406
|
+
optional :gps_img_direction_ref, String, api_name: :GPSImgDirectionRef
|
|
407
|
+
|
|
408
|
+
# @!attribute gps_latitude
|
|
409
|
+
#
|
|
410
|
+
# @return [Array<Float>, nil]
|
|
411
|
+
optional :gps_latitude, Imagekitio::Internal::Type::ArrayOf[Float], api_name: :GPSLatitude
|
|
412
|
+
|
|
413
|
+
# @!attribute gps_latitude_ref
|
|
414
|
+
#
|
|
415
|
+
# @return [String, nil]
|
|
416
|
+
optional :gps_latitude_ref, String, api_name: :GPSLatitudeRef
|
|
417
|
+
|
|
418
|
+
# @!attribute gps_longitude
|
|
419
|
+
#
|
|
420
|
+
# @return [Array<Float>, nil]
|
|
421
|
+
optional :gps_longitude, Imagekitio::Internal::Type::ArrayOf[Float], api_name: :GPSLongitude
|
|
422
|
+
|
|
423
|
+
# @!attribute gps_longitude_ref
|
|
424
|
+
#
|
|
425
|
+
# @return [String, nil]
|
|
426
|
+
optional :gps_longitude_ref, String, api_name: :GPSLongitudeRef
|
|
427
|
+
|
|
428
|
+
# @!attribute gps_time_stamp
|
|
429
|
+
#
|
|
430
|
+
# @return [Array<Float>, nil]
|
|
431
|
+
optional :gps_time_stamp, Imagekitio::Internal::Type::ArrayOf[Float], api_name: :GPSTimeStamp
|
|
432
|
+
|
|
335
433
|
# @!attribute gps_version_id
|
|
336
434
|
#
|
|
337
435
|
# @return [Array<Integer>, nil]
|
|
338
436
|
optional :gps_version_id, Imagekitio::Internal::Type::ArrayOf[Integer], api_name: :GPSVersionID
|
|
339
437
|
|
|
340
|
-
# @!method initialize(gps_version_id: nil)
|
|
438
|
+
# @!method initialize(gps_altitude: nil, gps_altitude_ref: nil, gps_date_stamp: nil, gps_img_direction: nil, gps_img_direction_ref: nil, gps_latitude: nil, gps_latitude_ref: nil, gps_longitude: nil, gps_longitude_ref: nil, gps_time_stamp: nil, gps_version_id: nil)
|
|
341
439
|
# Object containing GPS information.
|
|
342
440
|
#
|
|
441
|
+
# @param gps_altitude [Float]
|
|
442
|
+
# @param gps_altitude_ref [Integer]
|
|
443
|
+
# @param gps_date_stamp [String]
|
|
444
|
+
# @param gps_img_direction [Float]
|
|
445
|
+
# @param gps_img_direction_ref [String]
|
|
446
|
+
# @param gps_latitude [Array<Float>]
|
|
447
|
+
# @param gps_latitude_ref [String]
|
|
448
|
+
# @param gps_longitude [Array<Float>]
|
|
449
|
+
# @param gps_longitude_ref [String]
|
|
450
|
+
# @param gps_time_stamp [Array<Float>]
|
|
343
451
|
# @param gps_version_id [Array<Integer>]
|
|
344
452
|
end
|
|
345
453
|
|
|
346
454
|
# @see Imagekitio::Models::Metadata::Exif#image
|
|
347
455
|
class Image < Imagekitio::Internal::Type::BaseModel
|
|
456
|
+
# @!attribute artist
|
|
457
|
+
#
|
|
458
|
+
# @return [String, nil]
|
|
459
|
+
optional :artist, String, api_name: :Artist
|
|
460
|
+
|
|
461
|
+
# @!attribute copyright
|
|
462
|
+
#
|
|
463
|
+
# @return [String, nil]
|
|
464
|
+
optional :copyright, String, api_name: :Copyright
|
|
465
|
+
|
|
348
466
|
# @!attribute exif_offset
|
|
349
467
|
#
|
|
350
468
|
# @return [Integer, nil]
|
|
@@ -355,6 +473,11 @@ module Imagekitio
|
|
|
355
473
|
# @return [Integer, nil]
|
|
356
474
|
optional :gps_info, Integer, api_name: :GPSInfo
|
|
357
475
|
|
|
476
|
+
# @!attribute image_description
|
|
477
|
+
#
|
|
478
|
+
# @return [String, nil]
|
|
479
|
+
optional :image_description, String, api_name: :ImageDescription
|
|
480
|
+
|
|
358
481
|
# @!attribute make
|
|
359
482
|
#
|
|
360
483
|
# @return [String, nil]
|
|
@@ -387,8 +510,8 @@ module Imagekitio
|
|
|
387
510
|
|
|
388
511
|
# @!attribute x_resolution
|
|
389
512
|
#
|
|
390
|
-
# @return [
|
|
391
|
-
optional :x_resolution,
|
|
513
|
+
# @return [Float, nil]
|
|
514
|
+
optional :x_resolution, Float, api_name: :XResolution
|
|
392
515
|
|
|
393
516
|
# @!attribute y_cb_cr_positioning
|
|
394
517
|
#
|
|
@@ -397,23 +520,26 @@ module Imagekitio
|
|
|
397
520
|
|
|
398
521
|
# @!attribute y_resolution
|
|
399
522
|
#
|
|
400
|
-
# @return [
|
|
401
|
-
optional :y_resolution,
|
|
523
|
+
# @return [Float, nil]
|
|
524
|
+
optional :y_resolution, Float, api_name: :YResolution
|
|
402
525
|
|
|
403
|
-
# @!method initialize(exif_offset: nil, gps_info: nil, make: nil, model: nil, modify_date: nil, orientation: nil, resolution_unit: nil, software: nil, x_resolution: nil, y_cb_cr_positioning: nil, y_resolution: nil)
|
|
526
|
+
# @!method initialize(artist: nil, copyright: nil, exif_offset: nil, gps_info: nil, image_description: nil, make: nil, model: nil, modify_date: nil, orientation: nil, resolution_unit: nil, software: nil, x_resolution: nil, y_cb_cr_positioning: nil, y_resolution: nil)
|
|
404
527
|
# Object containing EXIF image information.
|
|
405
528
|
#
|
|
529
|
+
# @param artist [String]
|
|
530
|
+
# @param copyright [String]
|
|
406
531
|
# @param exif_offset [Integer]
|
|
407
532
|
# @param gps_info [Integer]
|
|
533
|
+
# @param image_description [String]
|
|
408
534
|
# @param make [String]
|
|
409
535
|
# @param model [String]
|
|
410
536
|
# @param modify_date [String]
|
|
411
537
|
# @param orientation [Integer]
|
|
412
538
|
# @param resolution_unit [Integer]
|
|
413
539
|
# @param software [String]
|
|
414
|
-
# @param x_resolution [
|
|
540
|
+
# @param x_resolution [Float]
|
|
415
541
|
# @param y_cb_cr_positioning [Integer]
|
|
416
|
-
# @param y_resolution [
|
|
542
|
+
# @param y_resolution [Float]
|
|
417
543
|
end
|
|
418
544
|
|
|
419
545
|
# @see Imagekitio::Models::Metadata::Exif#interoperability
|
|
@@ -459,13 +585,13 @@ module Imagekitio
|
|
|
459
585
|
|
|
460
586
|
# @!attribute x_resolution
|
|
461
587
|
#
|
|
462
|
-
# @return [
|
|
463
|
-
optional :x_resolution,
|
|
588
|
+
# @return [Float, nil]
|
|
589
|
+
optional :x_resolution, Float, api_name: :XResolution
|
|
464
590
|
|
|
465
591
|
# @!attribute y_resolution
|
|
466
592
|
#
|
|
467
|
-
# @return [
|
|
468
|
-
optional :y_resolution,
|
|
593
|
+
# @return [Float, nil]
|
|
594
|
+
optional :y_resolution, Float, api_name: :YResolution
|
|
469
595
|
|
|
470
596
|
# @!method initialize(compression: nil, resolution_unit: nil, thumbnail_length: nil, thumbnail_offset: nil, x_resolution: nil, y_resolution: nil)
|
|
471
597
|
# Object containing Thumbnail information.
|
|
@@ -474,8 +600,8 @@ module Imagekitio
|
|
|
474
600
|
# @param resolution_unit [Integer]
|
|
475
601
|
# @param thumbnail_length [Integer]
|
|
476
602
|
# @param thumbnail_offset [Integer]
|
|
477
|
-
# @param x_resolution [
|
|
478
|
-
# @param y_resolution [
|
|
603
|
+
# @param x_resolution [Float]
|
|
604
|
+
# @param y_resolution [Float]
|
|
479
605
|
end
|
|
480
606
|
end
|
|
481
607
|
end
|
|
@@ -144,7 +144,7 @@ module Imagekitio
|
|
|
144
144
|
#
|
|
145
145
|
# - `co-color` - Color to apply (e.g., `red`, `blue`, `FF0022`). Default is gray
|
|
146
146
|
# color.
|
|
147
|
-
# - `in-intensity` - Intensity of the color (0-100). Default is
|
|
147
|
+
# - `in-intensity` - Intensity of the color (0-100). Default is 100. See
|
|
148
148
|
# [Colorize](https://imagekit.io/docs/effects-and-enhancements#colorize---e-colorize).
|
|
149
149
|
#
|
|
150
150
|
# @return [String, nil]
|
data/lib/imagekitio/version.rb
CHANGED
data/rbi/imagekitio/client.rbi
CHANGED
|
@@ -23,7 +23,7 @@ module Imagekitio
|
|
|
23
23
|
# Your ImageKit webhook secret for verifying webhook signatures (starts with
|
|
24
24
|
# `whsec_`). You can find this in the
|
|
25
25
|
# [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only
|
|
26
|
-
# required if you
|
|
26
|
+
# required if you are using webhooks.
|
|
27
27
|
sig { returns(T.nilable(String)) }
|
|
28
28
|
attr_reader :webhook_secret
|
|
29
29
|
|
|
@@ -92,7 +92,7 @@ module Imagekitio
|
|
|
92
92
|
# Your ImageKit webhook secret for verifying webhook signatures (starts with
|
|
93
93
|
# `whsec_`). You can find this in the
|
|
94
94
|
# [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only
|
|
95
|
-
# required if you
|
|
95
|
+
# required if you are using webhooks. Defaults to `ENV["IMAGEKIT_WEBHOOK_SECRET"]`
|
|
96
96
|
webhook_secret: ENV["IMAGEKIT_WEBHOOK_SECRET"],
|
|
97
97
|
# Override the default base URL for the API, e.g.,
|
|
98
98
|
# `"https://api.example.com/v2/"`. Defaults to `ENV["IMAGE_KIT_BASE_URL"]`
|