imagekitio 4.11.0 → 4.12.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +28 -1
  4. data/lib/imagekitio/client.rb +4 -0
  5. data/lib/imagekitio/internal/tag_cursor.rb +86 -0
  6. data/lib/imagekitio/models/accounts/contract_get_params.rb +16 -0
  7. data/lib/imagekitio/models/accounts/contract_get_response.rb +82 -0
  8. data/lib/imagekitio/models/accounts/contract_units.rb +42 -0
  9. data/lib/imagekitio/models/accounts/url_endpoint_request.rb +17 -1
  10. data/lib/imagekitio/models/accounts/url_endpoint_response.rb +17 -1
  11. data/lib/imagekitio/models/tag.rb +52 -0
  12. data/lib/imagekitio/models/tag_list_params.rb +143 -0
  13. data/lib/imagekitio/models.rb +4 -0
  14. data/lib/imagekitio/resources/accounts/contract.rb +47 -0
  15. data/lib/imagekitio/resources/accounts.rb +4 -0
  16. data/lib/imagekitio/resources/tags.rb +65 -0
  17. data/lib/imagekitio/version.rb +1 -1
  18. data/lib/imagekitio.rb +8 -0
  19. data/rbi/imagekitio/client.rbi +3 -0
  20. data/rbi/imagekitio/internal/tag_cursor.rbi +22 -0
  21. data/rbi/imagekitio/models/accounts/contract_get_params.rbi +34 -0
  22. data/rbi/imagekitio/models/accounts/contract_get_response.rbi +126 -0
  23. data/rbi/imagekitio/models/accounts/contract_units.rbi +66 -0
  24. data/rbi/imagekitio/models/accounts/url_endpoint_request.rbi +19 -1
  25. data/rbi/imagekitio/models/accounts/url_endpoint_response.rbi +19 -1
  26. data/rbi/imagekitio/models/tag.rbi +71 -0
  27. data/rbi/imagekitio/models/tag_list_params.rbi +236 -0
  28. data/rbi/imagekitio/models.rbi +4 -0
  29. data/rbi/imagekitio/resources/accounts/contract.rbi +36 -0
  30. data/rbi/imagekitio/resources/accounts.rbi +3 -0
  31. data/rbi/imagekitio/resources/tags.rbi +74 -0
  32. data/sig/imagekitio/client.rbs +2 -0
  33. data/sig/imagekitio/internal/tag_cursor.rbs +13 -0
  34. data/sig/imagekitio/models/accounts/contract_get_params.rbs +17 -0
  35. data/sig/imagekitio/models/accounts/contract_get_response.rbs +73 -0
  36. data/sig/imagekitio/models/accounts/contract_units.rbs +37 -0
  37. data/sig/imagekitio/models/accounts/url_endpoint_request.rbs +12 -2
  38. data/sig/imagekitio/models/accounts/url_endpoint_response.rbs +12 -2
  39. data/sig/imagekitio/models/tag.rbs +30 -0
  40. data/sig/imagekitio/models/tag_list_params.rbs +114 -0
  41. data/sig/imagekitio/models.rbs +4 -0
  42. data/sig/imagekitio/resources/accounts/contract.rbs +13 -0
  43. data/sig/imagekitio/resources/accounts.rbs +2 -0
  44. data/sig/imagekitio/resources/tags.rbs +18 -0
  45. metadata +26 -2
@@ -0,0 +1,236 @@
1
+ # typed: strong
2
+
3
+ module Imagekitio
4
+ module Models
5
+ class TagListParams < Imagekitio::Internal::Type::BaseModel
6
+ extend Imagekitio::Internal::Type::RequestParameters::Converter
7
+ include Imagekitio::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Imagekitio::TagListParams, Imagekitio::Internal::AnyHash)
12
+ end
13
+
14
+ # The `nextCursor` value from the previous response, to fetch the next page. A
15
+ # cursor is bound to the `tagSource`, `fileType`, `sort`, `search` and `prefix` it
16
+ # was issued with; sending it with different values returns a 400.
17
+ sig { returns(T.nilable(String)) }
18
+ attr_reader :cursor
19
+
20
+ sig { params(cursor: String).void }
21
+ attr_writer :cursor
22
+
23
+ # Filter tags by the type of asset they are applied to.
24
+ #
25
+ # - `image` — tags in use on images
26
+ # - `video` — tags in use on videos
27
+ # - `static` — tags in use on any other file, such as documents, scripts and
28
+ # stylesheets
29
+ # - `all` — tags in use on any asset
30
+ sig { returns(T.nilable(Imagekitio::TagListParams::FileType::OrSymbol)) }
31
+ attr_reader :file_type
32
+
33
+ sig do
34
+ params(file_type: Imagekitio::TagListParams::FileType::OrSymbol).void
35
+ end
36
+ attr_writer :file_type
37
+
38
+ # The maximum number of tags to return in response.
39
+ sig { returns(T.nilable(Integer)) }
40
+ attr_reader :limit
41
+
42
+ sig { params(limit: Integer).void }
43
+ attr_writer :limit
44
+
45
+ # Only return tags that begin with this value. Matching is case-insensitive.
46
+ sig { returns(T.nilable(String)) }
47
+ attr_reader :prefix
48
+
49
+ sig { params(prefix: String).void }
50
+ attr_writer :prefix
51
+
52
+ # Only return tags that contain this text. Every word in the value must appear in
53
+ # the tag and the last word may be incomplete, which suits search-as-you-type.
54
+ # Matching is case-insensitive.
55
+ sig { returns(T.nilable(String)) }
56
+ attr_reader :search
57
+
58
+ sig { params(search: String).void }
59
+ attr_writer :search
60
+
61
+ # Sort the results.
62
+ #
63
+ # - `ASC_NAME` / `DESC_NAME` — by `name`
64
+ # - `ASC_LAST_USED` / `DESC_LAST_USED` — by `lastUsedAt` within the requested
65
+ # `tagSource` and `fileType`, ties broken by `name`
66
+ sig { returns(T.nilable(Imagekitio::TagListParams::Sort::OrSymbol)) }
67
+ attr_reader :sort
68
+
69
+ sig { params(sort: Imagekitio::TagListParams::Sort::OrSymbol).void }
70
+ attr_writer :sort
71
+
72
+ # Filter tags by who added them.
73
+ #
74
+ # - `user` — tags added by users through the dashboard or the API
75
+ # - `ai` — tags added by AI auto-tagging extensions
76
+ # - `all` — both
77
+ sig { returns(T.nilable(Imagekitio::TagListParams::TagSource::OrSymbol)) }
78
+ attr_reader :tag_source
79
+
80
+ sig do
81
+ params(tag_source: Imagekitio::TagListParams::TagSource::OrSymbol).void
82
+ end
83
+ attr_writer :tag_source
84
+
85
+ sig do
86
+ params(
87
+ cursor: String,
88
+ file_type: Imagekitio::TagListParams::FileType::OrSymbol,
89
+ limit: Integer,
90
+ prefix: String,
91
+ search: String,
92
+ sort: Imagekitio::TagListParams::Sort::OrSymbol,
93
+ tag_source: Imagekitio::TagListParams::TagSource::OrSymbol,
94
+ request_options: Imagekitio::RequestOptions::OrHash
95
+ ).returns(T.attached_class)
96
+ end
97
+ def self.new(
98
+ # The `nextCursor` value from the previous response, to fetch the next page. A
99
+ # cursor is bound to the `tagSource`, `fileType`, `sort`, `search` and `prefix` it
100
+ # was issued with; sending it with different values returns a 400.
101
+ cursor: nil,
102
+ # Filter tags by the type of asset they are applied to.
103
+ #
104
+ # - `image` — tags in use on images
105
+ # - `video` — tags in use on videos
106
+ # - `static` — tags in use on any other file, such as documents, scripts and
107
+ # stylesheets
108
+ # - `all` — tags in use on any asset
109
+ file_type: nil,
110
+ # The maximum number of tags to return in response.
111
+ limit: nil,
112
+ # Only return tags that begin with this value. Matching is case-insensitive.
113
+ prefix: nil,
114
+ # Only return tags that contain this text. Every word in the value must appear in
115
+ # the tag and the last word may be incomplete, which suits search-as-you-type.
116
+ # Matching is case-insensitive.
117
+ search: nil,
118
+ # Sort the results.
119
+ #
120
+ # - `ASC_NAME` / `DESC_NAME` — by `name`
121
+ # - `ASC_LAST_USED` / `DESC_LAST_USED` — by `lastUsedAt` within the requested
122
+ # `tagSource` and `fileType`, ties broken by `name`
123
+ sort: nil,
124
+ # Filter tags by who added them.
125
+ #
126
+ # - `user` — tags added by users through the dashboard or the API
127
+ # - `ai` — tags added by AI auto-tagging extensions
128
+ # - `all` — both
129
+ tag_source: nil,
130
+ request_options: {}
131
+ )
132
+ end
133
+
134
+ sig do
135
+ override.returns(
136
+ {
137
+ cursor: String,
138
+ file_type: Imagekitio::TagListParams::FileType::OrSymbol,
139
+ limit: Integer,
140
+ prefix: String,
141
+ search: String,
142
+ sort: Imagekitio::TagListParams::Sort::OrSymbol,
143
+ tag_source: Imagekitio::TagListParams::TagSource::OrSymbol,
144
+ request_options: Imagekitio::RequestOptions
145
+ }
146
+ )
147
+ end
148
+ def to_hash
149
+ end
150
+
151
+ # Filter tags by the type of asset they are applied to.
152
+ #
153
+ # - `image` — tags in use on images
154
+ # - `video` — tags in use on videos
155
+ # - `static` — tags in use on any other file, such as documents, scripts and
156
+ # stylesheets
157
+ # - `all` — tags in use on any asset
158
+ module FileType
159
+ extend Imagekitio::Internal::Type::Enum
160
+
161
+ TaggedSymbol =
162
+ T.type_alias { T.all(Symbol, Imagekitio::TagListParams::FileType) }
163
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
164
+
165
+ IMAGE = T.let(:image, Imagekitio::TagListParams::FileType::TaggedSymbol)
166
+ VIDEO = T.let(:video, Imagekitio::TagListParams::FileType::TaggedSymbol)
167
+ STATIC =
168
+ T.let(:static, Imagekitio::TagListParams::FileType::TaggedSymbol)
169
+ ALL = T.let(:all, Imagekitio::TagListParams::FileType::TaggedSymbol)
170
+
171
+ sig do
172
+ override.returns(
173
+ T::Array[Imagekitio::TagListParams::FileType::TaggedSymbol]
174
+ )
175
+ end
176
+ def self.values
177
+ end
178
+ end
179
+
180
+ # Sort the results.
181
+ #
182
+ # - `ASC_NAME` / `DESC_NAME` — by `name`
183
+ # - `ASC_LAST_USED` / `DESC_LAST_USED` — by `lastUsedAt` within the requested
184
+ # `tagSource` and `fileType`, ties broken by `name`
185
+ module Sort
186
+ extend Imagekitio::Internal::Type::Enum
187
+
188
+ TaggedSymbol =
189
+ T.type_alias { T.all(Symbol, Imagekitio::TagListParams::Sort) }
190
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
191
+
192
+ ASC_NAME =
193
+ T.let(:ASC_NAME, Imagekitio::TagListParams::Sort::TaggedSymbol)
194
+ DESC_NAME =
195
+ T.let(:DESC_NAME, Imagekitio::TagListParams::Sort::TaggedSymbol)
196
+ ASC_LAST_USED =
197
+ T.let(:ASC_LAST_USED, Imagekitio::TagListParams::Sort::TaggedSymbol)
198
+ DESC_LAST_USED =
199
+ T.let(:DESC_LAST_USED, Imagekitio::TagListParams::Sort::TaggedSymbol)
200
+
201
+ sig do
202
+ override.returns(
203
+ T::Array[Imagekitio::TagListParams::Sort::TaggedSymbol]
204
+ )
205
+ end
206
+ def self.values
207
+ end
208
+ end
209
+
210
+ # Filter tags by who added them.
211
+ #
212
+ # - `user` — tags added by users through the dashboard or the API
213
+ # - `ai` — tags added by AI auto-tagging extensions
214
+ # - `all` — both
215
+ module TagSource
216
+ extend Imagekitio::Internal::Type::Enum
217
+
218
+ TaggedSymbol =
219
+ T.type_alias { T.all(Symbol, Imagekitio::TagListParams::TagSource) }
220
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
221
+
222
+ USER = T.let(:user, Imagekitio::TagListParams::TagSource::TaggedSymbol)
223
+ AI = T.let(:ai, Imagekitio::TagListParams::TagSource::TaggedSymbol)
224
+ ALL = T.let(:all, Imagekitio::TagListParams::TagSource::TaggedSymbol)
225
+
226
+ sig do
227
+ override.returns(
228
+ T::Array[Imagekitio::TagListParams::TagSource::TaggedSymbol]
229
+ )
230
+ end
231
+ def self.values
232
+ end
233
+ end
234
+ end
235
+ end
236
+ end
@@ -161,6 +161,10 @@ module Imagekitio
161
161
  SubtitleOverlayTransformation =
162
162
  Imagekitio::Models::SubtitleOverlayTransformation
163
163
 
164
+ Tag = Imagekitio::Models::Tag
165
+
166
+ TagListParams = Imagekitio::Models::TagListParams
167
+
164
168
  TextOverlay = Imagekitio::Models::TextOverlay
165
169
 
166
170
  TextOverlayTransformation = Imagekitio::Models::TextOverlayTransformation
@@ -0,0 +1,36 @@
1
+ # typed: strong
2
+
3
+ module Imagekitio
4
+ module Resources
5
+ class Accounts
6
+ class Contract
7
+ # Get the account's contract terms and the usage consumed against them in the
8
+ # current contract term. Bandwidth is in bytes; video processing units, extension
9
+ # units and purge cache requests are counts.
10
+ #
11
+ # For an agency account, consumption includes the child accounts billed to it. A
12
+ # child account billed to its parent cannot call this endpoint; call it with the
13
+ # parent account's credentials instead.
14
+ #
15
+ # Contract terms are read live; consumption is refreshed periodically, not on
16
+ # every request. Use `asOf` to check how fresh it is. Contracts of one month or
17
+ # less are reported as `hasContract: false`. The response is cached for 5 minutes
18
+ # per account.
19
+ #
20
+ # Requires an API key with account management access.
21
+ sig do
22
+ params(request_options: Imagekitio::RequestOptions::OrHash).returns(
23
+ Imagekitio::Models::Accounts::ContractGetResponse
24
+ )
25
+ end
26
+ def get(request_options: {})
27
+ end
28
+
29
+ # @api private
30
+ sig { params(client: Imagekitio::Client).returns(T.attached_class) }
31
+ def self.new(client:)
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -9,6 +9,9 @@ module Imagekitio
9
9
  sig { returns(Imagekitio::Resources::Accounts::UsageAnalytics) }
10
10
  attr_reader :usage_analytics
11
11
 
12
+ sig { returns(Imagekitio::Resources::Accounts::Contract) }
13
+ attr_reader :contract
14
+
12
15
  sig { returns(Imagekitio::Resources::Accounts::Origins) }
13
16
  attr_reader :origins
14
17
 
@@ -0,0 +1,74 @@
1
+ # typed: strong
2
+
3
+ module Imagekitio
4
+ module Resources
5
+ class Tags
6
+ # This API lists the distinct tags in use across your media library, with the
7
+ # number of assets each tag is applied to and when it was last used. Tags are
8
+ # matched case-insensitively, so `Summer` and `summer` are one entry: `name` is
9
+ # the lowercased form and `label` is the spelling that was used most recently.
10
+ #
11
+ # Use `tagSource` and `fileType` to list only the tags in use on matching assets.
12
+ # `lastUsedAt` and the `ASC_LAST_USED` / `DESC_LAST_USED` sorts follow those
13
+ # filters, while `assetCount` always counts every asset carrying the tag. Use
14
+ # `search` or `prefix` to narrow the listing and `cursor` to page through it.
15
+ #
16
+ # Tag counts are updated asynchronously. Changes to a file's tags usually appear
17
+ # in this list within about a minute, but can take longer during heavy tagging
18
+ # activity, so a tag you just added or removed may not be reflected immediately.
19
+ sig do
20
+ params(
21
+ cursor: String,
22
+ file_type: Imagekitio::TagListParams::FileType::OrSymbol,
23
+ limit: Integer,
24
+ prefix: String,
25
+ search: String,
26
+ sort: Imagekitio::TagListParams::Sort::OrSymbol,
27
+ tag_source: Imagekitio::TagListParams::TagSource::OrSymbol,
28
+ request_options: Imagekitio::RequestOptions::OrHash
29
+ ).returns(Imagekitio::Internal::TagCursor[Imagekitio::Tag])
30
+ end
31
+ def list(
32
+ # The `nextCursor` value from the previous response, to fetch the next page. A
33
+ # cursor is bound to the `tagSource`, `fileType`, `sort`, `search` and `prefix` it
34
+ # was issued with; sending it with different values returns a 400.
35
+ cursor: nil,
36
+ # Filter tags by the type of asset they are applied to.
37
+ #
38
+ # - `image` — tags in use on images
39
+ # - `video` — tags in use on videos
40
+ # - `static` — tags in use on any other file, such as documents, scripts and
41
+ # stylesheets
42
+ # - `all` — tags in use on any asset
43
+ file_type: nil,
44
+ # The maximum number of tags to return in response.
45
+ limit: nil,
46
+ # Only return tags that begin with this value. Matching is case-insensitive.
47
+ prefix: nil,
48
+ # Only return tags that contain this text. Every word in the value must appear in
49
+ # the tag and the last word may be incomplete, which suits search-as-you-type.
50
+ # Matching is case-insensitive.
51
+ search: nil,
52
+ # Sort the results.
53
+ #
54
+ # - `ASC_NAME` / `DESC_NAME` — by `name`
55
+ # - `ASC_LAST_USED` / `DESC_LAST_USED` — by `lastUsedAt` within the requested
56
+ # `tagSource` and `fileType`, ties broken by `name`
57
+ sort: nil,
58
+ # Filter tags by who added them.
59
+ #
60
+ # - `user` — tags added by users through the dashboard or the API
61
+ # - `ai` — tags added by AI auto-tagging extensions
62
+ # - `all` — both
63
+ tag_source: nil,
64
+ request_options: {}
65
+ )
66
+ end
67
+
68
+ # @api private
69
+ sig { params(client: Imagekitio::Client).returns(T.attached_class) }
70
+ def self.new(client:)
71
+ end
72
+ end
73
+ end
74
+ end
@@ -24,6 +24,8 @@ module Imagekitio
24
24
 
25
25
  attr_reader assets: Imagekitio::Resources::Assets
26
26
 
27
+ attr_reader tags: Imagekitio::Resources::Tags
28
+
27
29
  attr_reader cache: Imagekitio::Resources::Cache
28
30
 
29
31
  attr_reader folders: Imagekitio::Resources::Folders
@@ -0,0 +1,13 @@
1
+ module Imagekitio
2
+ module Internal
3
+ class TagCursor[Elem]
4
+ include Imagekitio::Internal::Type::BasePage[Elem]
5
+
6
+ attr_accessor tags: ::Array[Elem]?
7
+
8
+ attr_accessor next_cursor: String?
9
+
10
+ def inspect: -> String
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ module Imagekitio
2
+ module Models
3
+ module Accounts
4
+ type contract_get_params =
5
+ { } & Imagekitio::Internal::Type::request_parameters
6
+
7
+ class ContractGetParams < Imagekitio::Internal::Type::BaseModel
8
+ extend Imagekitio::Internal::Type::RequestParameters::Converter
9
+ include Imagekitio::Internal::Type::RequestParameters
10
+
11
+ def initialize: (?request_options: Imagekitio::request_opts) -> void
12
+
13
+ def to_hash: -> { request_options: Imagekitio::RequestOptions }
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,73 @@
1
+ module Imagekitio
2
+ module Models
3
+ module Accounts
4
+ type contract_get_response =
5
+ {
6
+ has_contract: bool,
7
+ as_of: Time?,
8
+ consumed: Imagekitio::Accounts::ContractUnits,
9
+ contract_months: Integer,
10
+ effective_contract_end_date: Date,
11
+ effective_contract_start_date: Date,
12
+ original_contract_start_date: Date,
13
+ quota: Imagekitio::Accounts::ContractUnits
14
+ }
15
+
16
+ class ContractGetResponse < Imagekitio::Internal::Type::BaseModel
17
+ attr_accessor has_contract: bool
18
+
19
+ attr_accessor as_of: Time?
20
+
21
+ attr_reader consumed: Imagekitio::Accounts::ContractUnits?
22
+
23
+ def consumed=: (
24
+ Imagekitio::Accounts::ContractUnits
25
+ ) -> Imagekitio::Accounts::ContractUnits
26
+
27
+ attr_reader contract_months: Integer?
28
+
29
+ def contract_months=: (Integer) -> Integer
30
+
31
+ attr_reader effective_contract_end_date: Date?
32
+
33
+ def effective_contract_end_date=: (Date) -> Date
34
+
35
+ attr_reader effective_contract_start_date: Date?
36
+
37
+ def effective_contract_start_date=: (Date) -> Date
38
+
39
+ attr_reader original_contract_start_date: Date?
40
+
41
+ def original_contract_start_date=: (Date) -> Date
42
+
43
+ attr_reader quota: Imagekitio::Accounts::ContractUnits?
44
+
45
+ def quota=: (
46
+ Imagekitio::Accounts::ContractUnits
47
+ ) -> Imagekitio::Accounts::ContractUnits
48
+
49
+ def initialize: (
50
+ has_contract: bool,
51
+ ?as_of: Time?,
52
+ ?consumed: Imagekitio::Accounts::ContractUnits,
53
+ ?contract_months: Integer,
54
+ ?effective_contract_end_date: Date,
55
+ ?effective_contract_start_date: Date,
56
+ ?original_contract_start_date: Date,
57
+ ?quota: Imagekitio::Accounts::ContractUnits
58
+ ) -> void
59
+
60
+ def to_hash: -> {
61
+ has_contract: bool,
62
+ as_of: Time?,
63
+ consumed: Imagekitio::Accounts::ContractUnits,
64
+ contract_months: Integer,
65
+ effective_contract_end_date: Date,
66
+ effective_contract_start_date: Date,
67
+ original_contract_start_date: Date,
68
+ quota: Imagekitio::Accounts::ContractUnits
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,37 @@
1
+ module Imagekitio
2
+ module Models
3
+ module Accounts
4
+ type contract_units =
5
+ {
6
+ bandwidth_bytes: Integer,
7
+ extension_units_count: Integer,
8
+ purge_cache_requests: Integer,
9
+ video_processing_units_count: Integer
10
+ }
11
+
12
+ class ContractUnits < Imagekitio::Internal::Type::BaseModel
13
+ attr_accessor bandwidth_bytes: Integer
14
+
15
+ attr_accessor extension_units_count: Integer
16
+
17
+ attr_accessor purge_cache_requests: Integer
18
+
19
+ attr_accessor video_processing_units_count: Integer
20
+
21
+ def initialize: (
22
+ bandwidth_bytes: Integer,
23
+ extension_units_count: Integer,
24
+ purge_cache_requests: Integer,
25
+ video_processing_units_count: Integer
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ bandwidth_bytes: Integer,
30
+ extension_units_count: Integer,
31
+ purge_cache_requests: Integer,
32
+ video_processing_units_count: Integer
33
+ }
34
+ end
35
+ end
36
+ end
37
+ end
@@ -49,7 +49,11 @@ module Imagekitio
49
49
  extend Imagekitio::Internal::Type::Union
50
50
 
51
51
  type cloudinary =
52
- { type: :CLOUDINARY, preserve_asset_delivery_types: bool }
52
+ {
53
+ type: :CLOUDINARY,
54
+ preserve_asset_delivery_types: bool,
55
+ use_improved_layer_spec: bool
56
+ }
53
57
 
54
58
  class Cloudinary < Imagekitio::Internal::Type::BaseModel
55
59
  attr_accessor type: :CLOUDINARY
@@ -58,14 +62,20 @@ module Imagekitio
58
62
 
59
63
  def preserve_asset_delivery_types=: (bool) -> bool
60
64
 
65
+ attr_reader use_improved_layer_spec: bool?
66
+
67
+ def use_improved_layer_spec=: (bool) -> bool
68
+
61
69
  def initialize: (
62
70
  ?preserve_asset_delivery_types: bool,
71
+ ?use_improved_layer_spec: bool,
63
72
  ?type: :CLOUDINARY
64
73
  ) -> void
65
74
 
66
75
  def to_hash: -> {
67
76
  type: :CLOUDINARY,
68
- preserve_asset_delivery_types: bool
77
+ preserve_asset_delivery_types: bool,
78
+ use_improved_layer_spec: bool
69
79
  }
70
80
  end
71
81
 
@@ -50,21 +50,31 @@ module Imagekitio
50
50
  extend Imagekitio::Internal::Type::Union
51
51
 
52
52
  type cloudinary =
53
- { preserve_asset_delivery_types: bool, type: :CLOUDINARY }
53
+ {
54
+ preserve_asset_delivery_types: bool,
55
+ type: :CLOUDINARY,
56
+ use_improved_layer_spec: bool
57
+ }
54
58
 
55
59
  class Cloudinary < Imagekitio::Internal::Type::BaseModel
56
60
  attr_accessor preserve_asset_delivery_types: bool
57
61
 
58
62
  attr_accessor type: :CLOUDINARY
59
63
 
64
+ attr_reader use_improved_layer_spec: bool?
65
+
66
+ def use_improved_layer_spec=: (bool) -> bool
67
+
60
68
  def initialize: (
61
69
  preserve_asset_delivery_types: bool,
70
+ ?use_improved_layer_spec: bool,
62
71
  ?type: :CLOUDINARY
63
72
  ) -> void
64
73
 
65
74
  def to_hash: -> {
66
75
  preserve_asset_delivery_types: bool,
67
- type: :CLOUDINARY
76
+ type: :CLOUDINARY,
77
+ use_improved_layer_spec: bool
68
78
  }
69
79
  end
70
80
 
@@ -0,0 +1,30 @@
1
+ module Imagekitio
2
+ module Models
3
+ type tag =
4
+ { asset_count: Integer, label: String, last_used_at: Time, name: String }
5
+
6
+ class Tag < Imagekitio::Internal::Type::BaseModel
7
+ attr_accessor asset_count: Integer
8
+
9
+ attr_accessor label: String
10
+
11
+ attr_accessor last_used_at: Time
12
+
13
+ attr_accessor name: String
14
+
15
+ def initialize: (
16
+ asset_count: Integer,
17
+ label: String,
18
+ last_used_at: Time,
19
+ name: String
20
+ ) -> void
21
+
22
+ def to_hash: -> {
23
+ asset_count: Integer,
24
+ label: String,
25
+ last_used_at: Time,
26
+ name: String
27
+ }
28
+ end
29
+ end
30
+ end