imagekitio 4.7.0 → 4.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae0103be053b05758d9f09f72d330ebff76e07ea7521cf2eb9933b530fefbbeb
4
- data.tar.gz: 49172d345668ba011ccf9021571bac3b4326dd8267761f4370e43521ecfd468b
3
+ metadata.gz: 53589b5e387cc2e3919aaea2e515bc77f13f77d81cf9b244ba2b1749868acb8e
4
+ data.tar.gz: 2b8701182074f45b8e43235229cff8d2112dfc6063a307e97431110a7419a19b
5
5
  SHA512:
6
- metadata.gz: 7d804c43b102c6762193bd63a8505ce715a6635763651b19b119f87db3b8b98d582404c0ade817efa9cdabf65d6f4a1eadc0ced7fc9addebf9045a19e4fb1ed9
7
- data.tar.gz: 9318e37eb4f0081d70c1ac7932082d0ec5b679b1f65713d18033c82595922ffa1cf4112c67bf4b40d3bb9f981d29fe2ec0ce0f572e17b2a1db73a3444959f162
6
+ metadata.gz: bc8f6b4f36557e0419313bdb688c243736a3139e9e1095300d0af2f8c2af339858881d51c67b92d41b1b2493d031cdbed69c116fd6a992ba8bacb54ab5f1bdfb
7
+ data.tar.gz: b4033a82d0f7960904b513ccd4f01cb662698b0abbba368727889a3aee987438c6f78768efe30b577e35f3f249b4d4cde55bad1c3c27b1418030471f719463ac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.8.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.7.0...v4.8.0) (2026-07-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add usage analytics breakdown endpoint ([82b2909](https://github.com/imagekit-developer/imagekit-ruby/commit/82b29099bc232601ad99dd3b304be8edf59e2179))
9
+
3
10
  ## [4.7.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.6.0...v4.7.0) (2026-06-18)
4
11
 
5
12
 
data/README.md CHANGED
@@ -46,7 +46,7 @@ To use this gem, install via Bundler by adding the following to your application
46
46
  <!-- x-release-please-start-version -->
47
47
 
48
48
  ```ruby
49
- gem "imagekitio", "~> 4.7.0"
49
+ gem "imagekitio", "~> 4.8.0"
50
50
  ```
51
51
 
52
52
  <!-- x-release-please-end -->
@@ -306,7 +306,10 @@ module Imagekitio
306
306
  Imagekitio::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
307
307
  end
308
308
 
309
- headers.delete("content-type") if body.nil?
309
+ # Generated methods always pass `req[:body]` for operations that define a
310
+ # request body, so only elide the content-type header when the operation
311
+ # has no body at all, not when an optional body param was omitted.
312
+ headers.delete("content-type") if body.nil? && !req.key?(:body)
310
313
 
311
314
  url = Imagekitio::Internal::Util.join_parsed_uri(
312
315
  @base_url_components,
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Imagekitio
4
+ module Models
5
+ module Accounts
6
+ class RequestBandwidthEntry < Imagekitio::Internal::Type::BaseModel
7
+ # @!attribute bandwidth_bytes
8
+ # Total bandwidth used in bytes.
9
+ #
10
+ # @return [Float]
11
+ required :bandwidth_bytes, Float, api_name: :bandwidthBytes
12
+
13
+ # @!attribute request_count
14
+ # Number of requests.
15
+ #
16
+ # @return [Float]
17
+ required :request_count, Float, api_name: :requestCount
18
+
19
+ # @!method initialize(bandwidth_bytes:, request_count:)
20
+ # @param bandwidth_bytes [Float] Total bandwidth used in bytes.
21
+ #
22
+ # @param request_count [Float] Number of requests.
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Imagekitio
4
+ module Models
5
+ module Accounts
6
+ # @see Imagekitio::Resources::Accounts::UsageAnalytics#get
7
+ class UsageAnalyticsGetParams < Imagekitio::Internal::Type::BaseModel
8
+ extend Imagekitio::Internal::Type::RequestParameters::Converter
9
+ include Imagekitio::Internal::Type::RequestParameters
10
+
11
+ # @!attribute end_date
12
+ # Specify an `endDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
13
+ # It should be after the `startDate`. The difference between `startDate` and
14
+ # `endDate` should be less than 90 days.
15
+ #
16
+ # @return [Date]
17
+ required :end_date, Date
18
+
19
+ # @!attribute start_date
20
+ # Specify a `startDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
21
+ # It should be before the `endDate`. The difference between `startDate` and
22
+ # `endDate` should be less than 90 days.
23
+ #
24
+ # @return [Date]
25
+ required :start_date, Date
26
+
27
+ # @!method initialize(end_date:, start_date:, request_options: {})
28
+ # Some parameter documentations has been truncated, see
29
+ # {Imagekitio::Models::Accounts::UsageAnalyticsGetParams} for more details.
30
+ #
31
+ # @param end_date [Date] Specify an `endDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
32
+ #
33
+ # @param start_date [Date] Specify a `startDate` in `YYYY-MM-DD` format, interpreted as a UTC calendar day.
34
+ #
35
+ # @param request_options [Imagekitio::RequestOptions, Hash{Symbol=>Object}]
36
+ end
37
+ end
38
+ end
39
+ end