imagekitio 4.8.0 → 4.10.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 +22 -0
- data/README.md +2 -2
- data/lib/imagekitio/client.rb +4 -0
- data/lib/imagekitio/helpers/transformation_utils.rb +1 -0
- data/lib/imagekitio/models/asset_list_params.rb +4 -0
- data/lib/imagekitio/models/custom_metadata_field.rb +20 -1
- data/lib/imagekitio/models/custom_metadata_field_create_params.rb +11 -1
- data/lib/imagekitio/models/custom_metadata_field_update_params.rb +12 -1
- data/lib/imagekitio/models/named_transformation.rb +60 -0
- data/lib/imagekitio/models/named_transformation_create_params.rb +45 -0
- data/lib/imagekitio/models/named_transformation_delete_params.rb +22 -0
- data/lib/imagekitio/models/named_transformation_get_params.rb +22 -0
- data/lib/imagekitio/models/named_transformation_list_params.rb +14 -0
- data/lib/imagekitio/models/named_transformation_list_response.rb +9 -0
- data/lib/imagekitio/models/named_transformation_update_params.rb +53 -0
- data/lib/imagekitio/models/transformation.rb +33 -1
- data/lib/imagekitio/models.rb +12 -0
- data/lib/imagekitio/resources/custom_metadata_fields.rb +8 -3
- data/lib/imagekitio/resources/named_transformations.rb +151 -0
- data/lib/imagekitio/version.rb +1 -1
- data/lib/imagekitio.rb +8 -0
- data/rbi/imagekitio/client.rbi +3 -0
- data/rbi/imagekitio/models/asset_list_params.rbi +14 -0
- data/rbi/imagekitio/models/custom_metadata_field.rbi +31 -3
- data/rbi/imagekitio/models/custom_metadata_field_create_params.rbi +15 -0
- data/rbi/imagekitio/models/custom_metadata_field_update_params.rbi +17 -0
- data/rbi/imagekitio/models/named_transformation.rbi +81 -0
- data/rbi/imagekitio/models/named_transformation_create_params.rbi +73 -0
- data/rbi/imagekitio/models/named_transformation_delete_params.rbi +43 -0
- data/rbi/imagekitio/models/named_transformation_get_params.rbi +43 -0
- data/rbi/imagekitio/models/named_transformation_list_params.rbi +30 -0
- data/rbi/imagekitio/models/named_transformation_list_response.rbi +11 -0
- data/rbi/imagekitio/models/named_transformation_update_params.rbi +87 -0
- data/rbi/imagekitio/models/transformation.rbi +43 -0
- data/rbi/imagekitio/models.rbi +17 -0
- data/rbi/imagekitio/resources/custom_metadata_fields.rbi +13 -1
- data/rbi/imagekitio/resources/named_transformations.rbi +119 -0
- data/sig/imagekitio/client.rbs +2 -0
- data/sig/imagekitio/models/asset_list_params.rbs +8 -0
- data/sig/imagekitio/models/custom_metadata_field.rbs +17 -3
- data/sig/imagekitio/models/custom_metadata_field_create_params.rbs +8 -1
- data/sig/imagekitio/models/custom_metadata_field_update_params.rbs +7 -0
- data/sig/imagekitio/models/named_transformation.rbs +40 -0
- data/sig/imagekitio/models/named_transformation_create_params.rbs +34 -0
- data/sig/imagekitio/models/named_transformation_delete_params.rbs +23 -0
- data/sig/imagekitio/models/named_transformation_get_params.rbs +23 -0
- data/sig/imagekitio/models/named_transformation_list_params.rbs +15 -0
- data/sig/imagekitio/models/named_transformation_list_response.rbs +8 -0
- data/sig/imagekitio/models/named_transformation_update_params.rbs +42 -0
- data/sig/imagekitio/models/transformation.rbs +17 -0
- data/sig/imagekitio/models.rbs +12 -0
- data/sig/imagekitio/resources/custom_metadata_fields.rbs +2 -0
- data/sig/imagekitio/resources/named_transformations.rbs +33 -0
- metadata +26 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
class NamedTransformationUpdateParams < 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(
|
|
12
|
+
Imagekitio::NamedTransformationUpdateParams,
|
|
13
|
+
Imagekitio::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Unique identifier for a named transformation.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# Whether the named transformation is enabled. Omit to leave the current value
|
|
22
|
+
# unchanged.
|
|
23
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
+
attr_reader :enabled
|
|
25
|
+
|
|
26
|
+
sig { params(enabled: T::Boolean).void }
|
|
27
|
+
attr_writer :enabled
|
|
28
|
+
|
|
29
|
+
# Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
|
|
30
|
+
# case-sensitive, contains only alphanumeric characters or `_` (underscore), and
|
|
31
|
+
# is unique across all named transformations for your account.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :name
|
|
34
|
+
|
|
35
|
+
sig { params(name: String).void }
|
|
36
|
+
attr_writer :name
|
|
37
|
+
|
|
38
|
+
# The transformation string this named transformation refers to. Learn more about
|
|
39
|
+
# the [transformation string syntax](https://imagekit.io/docs/transformations).
|
|
40
|
+
sig { returns(T.nilable(String)) }
|
|
41
|
+
attr_reader :transformation
|
|
42
|
+
|
|
43
|
+
sig { params(transformation: String).void }
|
|
44
|
+
attr_writer :transformation
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
params(
|
|
48
|
+
id: String,
|
|
49
|
+
enabled: T::Boolean,
|
|
50
|
+
name: String,
|
|
51
|
+
transformation: String,
|
|
52
|
+
request_options: Imagekitio::RequestOptions::OrHash
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(
|
|
56
|
+
# Unique identifier for a named transformation.
|
|
57
|
+
id:,
|
|
58
|
+
# Whether the named transformation is enabled. Omit to leave the current value
|
|
59
|
+
# unchanged.
|
|
60
|
+
enabled: nil,
|
|
61
|
+
# Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
|
|
62
|
+
# case-sensitive, contains only alphanumeric characters or `_` (underscore), and
|
|
63
|
+
# is unique across all named transformations for your account.
|
|
64
|
+
name: nil,
|
|
65
|
+
# The transformation string this named transformation refers to. Learn more about
|
|
66
|
+
# the [transformation string syntax](https://imagekit.io/docs/transformations).
|
|
67
|
+
transformation: nil,
|
|
68
|
+
request_options: {}
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
sig do
|
|
73
|
+
override.returns(
|
|
74
|
+
{
|
|
75
|
+
id: String,
|
|
76
|
+
enabled: T::Boolean,
|
|
77
|
+
name: String,
|
|
78
|
+
transformation: String,
|
|
79
|
+
request_options: Imagekitio::RequestOptions
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
def to_hash
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -277,6 +277,20 @@ module Imagekitio
|
|
|
277
277
|
sig { params(default_image: String).void }
|
|
278
278
|
attr_writer :default_image
|
|
279
279
|
|
|
280
|
+
# Sets the output image density in dots per inch (DPI). Accepts an integer from 1
|
|
281
|
+
# to 1200 or an arithmetic expression using the `idn` variable, such as
|
|
282
|
+
# `idn_mul_2`. For raster images, this updates density metadata without changing
|
|
283
|
+
# dimensions. For vector images, it controls the DPI used during rasterization.
|
|
284
|
+
# Cannot be used inside layers. See
|
|
285
|
+
# [Density](https://imagekit.io/docs/image-optimization#density---dn).
|
|
286
|
+
sig { returns(T.nilable(Imagekitio::Transformation::Density::Variants)) }
|
|
287
|
+
attr_reader :density
|
|
288
|
+
|
|
289
|
+
sig do
|
|
290
|
+
params(density: Imagekitio::Transformation::Density::Variants).void
|
|
291
|
+
end
|
|
292
|
+
attr_writer :density
|
|
293
|
+
|
|
280
294
|
# Distorts the shape of an image. Supports two modes:
|
|
281
295
|
#
|
|
282
296
|
# - Perspective distortion: `p-x1_y1_x2_y2_x3_y3_x4_y4` changes the position of
|
|
@@ -685,6 +699,7 @@ module Imagekitio
|
|
|
685
699
|
crop: Imagekitio::Transformation::Crop::OrSymbol,
|
|
686
700
|
crop_mode: Imagekitio::Transformation::CropMode::OrSymbol,
|
|
687
701
|
default_image: String,
|
|
702
|
+
density: Imagekitio::Transformation::Density::Variants,
|
|
688
703
|
distort: String,
|
|
689
704
|
dpr: Float,
|
|
690
705
|
duration: Imagekitio::Transformation::Duration::Variants,
|
|
@@ -832,6 +847,13 @@ module Imagekitio
|
|
|
832
847
|
# path. See
|
|
833
848
|
# [Default image](https://imagekit.io/docs/image-transformation#default-image---di).
|
|
834
849
|
default_image: nil,
|
|
850
|
+
# Sets the output image density in dots per inch (DPI). Accepts an integer from 1
|
|
851
|
+
# to 1200 or an arithmetic expression using the `idn` variable, such as
|
|
852
|
+
# `idn_mul_2`. For raster images, this updates density metadata without changing
|
|
853
|
+
# dimensions. For vector images, it controls the DPI used during rasterization.
|
|
854
|
+
# Cannot be used inside layers. See
|
|
855
|
+
# [Density](https://imagekit.io/docs/image-optimization#density---dn).
|
|
856
|
+
density: nil,
|
|
835
857
|
# Distorts the shape of an image. Supports two modes:
|
|
836
858
|
#
|
|
837
859
|
# - Perspective distortion: `p-x1_y1_x2_y2_x3_y3_x4_y4` changes the position of
|
|
@@ -1028,6 +1050,7 @@ module Imagekitio
|
|
|
1028
1050
|
crop: Imagekitio::Transformation::Crop::OrSymbol,
|
|
1029
1051
|
crop_mode: Imagekitio::Transformation::CropMode::OrSymbol,
|
|
1030
1052
|
default_image: String,
|
|
1053
|
+
density: Imagekitio::Transformation::Density::Variants,
|
|
1031
1054
|
distort: String,
|
|
1032
1055
|
dpr: Float,
|
|
1033
1056
|
duration: Imagekitio::Transformation::Duration::Variants,
|
|
@@ -1361,6 +1384,26 @@ module Imagekitio
|
|
|
1361
1384
|
end
|
|
1362
1385
|
end
|
|
1363
1386
|
|
|
1387
|
+
# Sets the output image density in dots per inch (DPI). Accepts an integer from 1
|
|
1388
|
+
# to 1200 or an arithmetic expression using the `idn` variable, such as
|
|
1389
|
+
# `idn_mul_2`. For raster images, this updates density metadata without changing
|
|
1390
|
+
# dimensions. For vector images, it controls the DPI used during rasterization.
|
|
1391
|
+
# Cannot be used inside layers. See
|
|
1392
|
+
# [Density](https://imagekit.io/docs/image-optimization#density---dn).
|
|
1393
|
+
module Density
|
|
1394
|
+
extend Imagekitio::Internal::Type::Union
|
|
1395
|
+
|
|
1396
|
+
Variants = T.type_alias { T.any(Integer, String) }
|
|
1397
|
+
|
|
1398
|
+
sig do
|
|
1399
|
+
override.returns(
|
|
1400
|
+
T::Array[Imagekitio::Transformation::Density::Variants]
|
|
1401
|
+
)
|
|
1402
|
+
end
|
|
1403
|
+
def self.variants
|
|
1404
|
+
end
|
|
1405
|
+
end
|
|
1406
|
+
|
|
1364
1407
|
# Specifies the duration (in seconds) for trimming videos, e.g., `5` or `10.5`.
|
|
1365
1408
|
# Typically used with startOffset to indicate the length from the start offset.
|
|
1366
1409
|
# Arithmetic expressions are supported. See
|
data/rbi/imagekitio/models.rbi
CHANGED
|
@@ -96,6 +96,23 @@ module Imagekitio
|
|
|
96
96
|
|
|
97
97
|
Metadata = Imagekitio::Models::Metadata
|
|
98
98
|
|
|
99
|
+
NamedTransformation = Imagekitio::Models::NamedTransformation
|
|
100
|
+
|
|
101
|
+
NamedTransformationCreateParams =
|
|
102
|
+
Imagekitio::Models::NamedTransformationCreateParams
|
|
103
|
+
|
|
104
|
+
NamedTransformationDeleteParams =
|
|
105
|
+
Imagekitio::Models::NamedTransformationDeleteParams
|
|
106
|
+
|
|
107
|
+
NamedTransformationGetParams =
|
|
108
|
+
Imagekitio::Models::NamedTransformationGetParams
|
|
109
|
+
|
|
110
|
+
NamedTransformationListParams =
|
|
111
|
+
Imagekitio::Models::NamedTransformationListParams
|
|
112
|
+
|
|
113
|
+
NamedTransformationUpdateParams =
|
|
114
|
+
Imagekitio::Models::NamedTransformationUpdateParams
|
|
115
|
+
|
|
99
116
|
Overlay = Imagekitio::Models::Overlay
|
|
100
117
|
|
|
101
118
|
OverlayPosition = Imagekitio::Models::OverlayPosition
|
|
@@ -12,6 +12,7 @@ module Imagekitio
|
|
|
12
12
|
label: String,
|
|
13
13
|
name: String,
|
|
14
14
|
schema: Imagekitio::CustomMetadataFieldCreateParams::Schema::OrHash,
|
|
15
|
+
description: String,
|
|
15
16
|
request_options: Imagekitio::RequestOptions::OrHash
|
|
16
17
|
).returns(Imagekitio::CustomMetadataField)
|
|
17
18
|
end
|
|
@@ -25,14 +26,20 @@ module Imagekitio
|
|
|
25
26
|
# (including deleted) custom metadata fields.
|
|
26
27
|
name:,
|
|
27
28
|
schema:,
|
|
29
|
+
# Optional description for the custom metadata field. Can be up to 500 characters.
|
|
30
|
+
# This is shown as a hint to the users while setting the field's value on an asset
|
|
31
|
+
# in the media library UI.
|
|
32
|
+
description: nil,
|
|
28
33
|
request_options: {}
|
|
29
34
|
)
|
|
30
35
|
end
|
|
31
36
|
|
|
32
|
-
# This API updates the label or schema of an existing custom
|
|
37
|
+
# This API updates the label, description, or schema of an existing custom
|
|
38
|
+
# metadata field.
|
|
33
39
|
sig do
|
|
34
40
|
params(
|
|
35
41
|
id: String,
|
|
42
|
+
description: String,
|
|
36
43
|
label: String,
|
|
37
44
|
schema: Imagekitio::CustomMetadataFieldUpdateParams::Schema::OrHash,
|
|
38
45
|
request_options: Imagekitio::RequestOptions::OrHash
|
|
@@ -41,6 +48,11 @@ module Imagekitio
|
|
|
41
48
|
def update(
|
|
42
49
|
# Should be a valid custom metadata field id.
|
|
43
50
|
id,
|
|
51
|
+
# Optional description for the custom metadata field. Can be up to 500 characters.
|
|
52
|
+
# Send an empty string to clear an existing description. This is shown as a hint
|
|
53
|
+
# to the users while setting the field's value on an asset in the media library
|
|
54
|
+
# UI.
|
|
55
|
+
description: nil,
|
|
44
56
|
# Human readable name of the custom metadata field. This should be unique across
|
|
45
57
|
# all non deleted custom metadata fields. This name is displayed as form field
|
|
46
58
|
# label to the users while setting field value on an asset in the media library
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Resources
|
|
5
|
+
class NamedTransformations
|
|
6
|
+
# Creates a new named transformation and returns the created object.
|
|
7
|
+
#
|
|
8
|
+
# A named transformation is a short, reusable name for a transformation string.
|
|
9
|
+
# Use it in image and video URLs as `tr:n-<name>`, and update the underlying
|
|
10
|
+
# transformation later without changing existing URLs. Learn more about
|
|
11
|
+
# [named transformations](https://imagekit.io/docs/transformations#named-transformations).
|
|
12
|
+
#
|
|
13
|
+
# You can create up to 250 named transformations per account.
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
name: String,
|
|
17
|
+
transformation: String,
|
|
18
|
+
enabled: T::Boolean,
|
|
19
|
+
request_options: Imagekitio::RequestOptions::OrHash
|
|
20
|
+
).returns(Imagekitio::NamedTransformation)
|
|
21
|
+
end
|
|
22
|
+
def create(
|
|
23
|
+
# Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
|
|
24
|
+
# case-sensitive, contains only alphanumeric characters or `_` (underscore), and
|
|
25
|
+
# is unique across all named transformations for your account.
|
|
26
|
+
name:,
|
|
27
|
+
# The transformation string this named transformation refers to. Learn more about
|
|
28
|
+
# the [transformation string syntax](https://imagekit.io/docs/transformations).
|
|
29
|
+
transformation:,
|
|
30
|
+
# Whether the named transformation is currently enabled. When set to `false`,
|
|
31
|
+
# requests using this named transformation fail at delivery time.
|
|
32
|
+
enabled: nil,
|
|
33
|
+
request_options: {}
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Updates the named transformation identified by `id` and returns the updated
|
|
38
|
+
# object. Only the fields present in the request body are updated; other fields
|
|
39
|
+
# stay unchanged.
|
|
40
|
+
#
|
|
41
|
+
# Renaming or disabling a named transformation fails with a `409` error if it is
|
|
42
|
+
# still referenced (via the `n-<name>` token) by an upload pre-transformation or
|
|
43
|
+
# post-transformation setting. This check is best-effort and can't detect
|
|
44
|
+
# references in your own application code or in previously generated URLs.
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
id: String,
|
|
48
|
+
enabled: T::Boolean,
|
|
49
|
+
name: String,
|
|
50
|
+
transformation: String,
|
|
51
|
+
request_options: Imagekitio::RequestOptions::OrHash
|
|
52
|
+
).returns(Imagekitio::NamedTransformation)
|
|
53
|
+
end
|
|
54
|
+
def update(
|
|
55
|
+
# Unique identifier for a named transformation.
|
|
56
|
+
id,
|
|
57
|
+
# Whether the named transformation is enabled. Omit to leave the current value
|
|
58
|
+
# unchanged.
|
|
59
|
+
enabled: nil,
|
|
60
|
+
# Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
|
|
61
|
+
# case-sensitive, contains only alphanumeric characters or `_` (underscore), and
|
|
62
|
+
# is unique across all named transformations for your account.
|
|
63
|
+
name: nil,
|
|
64
|
+
# The transformation string this named transformation refers to. Learn more about
|
|
65
|
+
# the [transformation string syntax](https://imagekit.io/docs/transformations).
|
|
66
|
+
transformation: nil,
|
|
67
|
+
request_options: {}
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Returns an array of all named transformations configured for your account.
|
|
72
|
+
sig do
|
|
73
|
+
params(request_options: Imagekitio::RequestOptions::OrHash).returns(
|
|
74
|
+
T::Array[Imagekitio::NamedTransformation]
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
def list(request_options: {})
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Permanently deletes the named transformation identified by `id`.
|
|
81
|
+
#
|
|
82
|
+
# Deletion fails with a `409` error if the named transformation is still
|
|
83
|
+
# referenced (via the `n-<name>` token) by an upload pre-transformation or
|
|
84
|
+
# post-transformation setting. This check is best-effort and can't detect
|
|
85
|
+
# references in your own application code or in previously generated URLs.
|
|
86
|
+
sig do
|
|
87
|
+
params(
|
|
88
|
+
id: String,
|
|
89
|
+
request_options: Imagekitio::RequestOptions::OrHash
|
|
90
|
+
).void
|
|
91
|
+
end
|
|
92
|
+
def delete(
|
|
93
|
+
# Unique identifier for a named transformation.
|
|
94
|
+
id,
|
|
95
|
+
request_options: {}
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Retrieves the named transformation identified by `id`.
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
id: String,
|
|
103
|
+
request_options: Imagekitio::RequestOptions::OrHash
|
|
104
|
+
).returns(Imagekitio::NamedTransformation)
|
|
105
|
+
end
|
|
106
|
+
def get(
|
|
107
|
+
# Unique identifier for a named transformation.
|
|
108
|
+
id,
|
|
109
|
+
request_options: {}
|
|
110
|
+
)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @api private
|
|
114
|
+
sig { params(client: Imagekitio::Client).returns(T.attached_class) }
|
|
115
|
+
def self.new(client:)
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
data/sig/imagekitio/client.rbs
CHANGED
|
@@ -20,6 +20,8 @@ module Imagekitio
|
|
|
20
20
|
|
|
21
21
|
attr_reader saved_extensions: Imagekitio::Resources::SavedExtensions
|
|
22
22
|
|
|
23
|
+
attr_reader named_transformations: Imagekitio::Resources::NamedTransformations
|
|
24
|
+
|
|
23
25
|
attr_reader assets: Imagekitio::Resources::Assets
|
|
24
26
|
|
|
25
27
|
attr_reader cache: Imagekitio::Resources::Cache
|
|
@@ -99,6 +99,10 @@ module Imagekitio
|
|
|
99
99
|
| :DESC_SIZE
|
|
100
100
|
| :ASC_RELEVANCE
|
|
101
101
|
| :DESC_RELEVANCE
|
|
102
|
+
| :ASC_DURATION
|
|
103
|
+
| :DESC_DURATION
|
|
104
|
+
| :ASC_ORIGINAL_CREATION_DATE
|
|
105
|
+
| :DESC_ORIGINAL_CREATION_DATE
|
|
102
106
|
|
|
103
107
|
module Sort
|
|
104
108
|
extend Imagekitio::Internal::Type::Enum
|
|
@@ -117,6 +121,10 @@ module Imagekitio
|
|
|
117
121
|
DESC_SIZE: :DESC_SIZE
|
|
118
122
|
ASC_RELEVANCE: :ASC_RELEVANCE
|
|
119
123
|
DESC_RELEVANCE: :DESC_RELEVANCE
|
|
124
|
+
ASC_DURATION: :ASC_DURATION
|
|
125
|
+
DESC_DURATION: :DESC_DURATION
|
|
126
|
+
ASC_ORIGINAL_CREATION_DATE: :ASC_ORIGINAL_CREATION_DATE
|
|
127
|
+
DESC_ORIGINAL_CREATION_DATE: :DESC_ORIGINAL_CREATION_DATE
|
|
120
128
|
|
|
121
129
|
def self?.values: -> ::Array[Imagekitio::Models::AssetListParams::sort]
|
|
122
130
|
end
|
|
@@ -5,7 +5,9 @@ module Imagekitio
|
|
|
5
5
|
id: String,
|
|
6
6
|
label: String,
|
|
7
7
|
name: String,
|
|
8
|
-
schema: Imagekitio::CustomMetadataField::Schema
|
|
8
|
+
schema: Imagekitio::CustomMetadataField::Schema,
|
|
9
|
+
description: String,
|
|
10
|
+
reserved: bool
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
class CustomMetadataField < Imagekitio::Internal::Type::BaseModel
|
|
@@ -17,18 +19,30 @@ module Imagekitio
|
|
|
17
19
|
|
|
18
20
|
attr_accessor schema: Imagekitio::CustomMetadataField::Schema
|
|
19
21
|
|
|
22
|
+
attr_reader description: String?
|
|
23
|
+
|
|
24
|
+
def description=: (String) -> String
|
|
25
|
+
|
|
26
|
+
attr_reader reserved: bool?
|
|
27
|
+
|
|
28
|
+
def reserved=: (bool) -> bool
|
|
29
|
+
|
|
20
30
|
def initialize: (
|
|
21
31
|
id: String,
|
|
22
32
|
label: String,
|
|
23
33
|
name: String,
|
|
24
|
-
schema: Imagekitio::CustomMetadataField::Schema
|
|
34
|
+
schema: Imagekitio::CustomMetadataField::Schema,
|
|
35
|
+
?description: String,
|
|
36
|
+
?reserved: bool
|
|
25
37
|
) -> void
|
|
26
38
|
|
|
27
39
|
def to_hash: -> {
|
|
28
40
|
id: String,
|
|
29
41
|
label: String,
|
|
30
42
|
name: String,
|
|
31
|
-
schema: Imagekitio::CustomMetadataField::Schema
|
|
43
|
+
schema: Imagekitio::CustomMetadataField::Schema,
|
|
44
|
+
description: String,
|
|
45
|
+
reserved: bool
|
|
32
46
|
}
|
|
33
47
|
|
|
34
48
|
type schema =
|
|
@@ -4,7 +4,8 @@ module Imagekitio
|
|
|
4
4
|
{
|
|
5
5
|
label: String,
|
|
6
6
|
name: String,
|
|
7
|
-
schema: Imagekitio::CustomMetadataFieldCreateParams::Schema
|
|
7
|
+
schema: Imagekitio::CustomMetadataFieldCreateParams::Schema,
|
|
8
|
+
description: String
|
|
8
9
|
}
|
|
9
10
|
& Imagekitio::Internal::Type::request_parameters
|
|
10
11
|
|
|
@@ -18,10 +19,15 @@ module Imagekitio
|
|
|
18
19
|
|
|
19
20
|
attr_accessor schema: Imagekitio::CustomMetadataFieldCreateParams::Schema
|
|
20
21
|
|
|
22
|
+
attr_reader description: String?
|
|
23
|
+
|
|
24
|
+
def description=: (String) -> String
|
|
25
|
+
|
|
21
26
|
def initialize: (
|
|
22
27
|
label: String,
|
|
23
28
|
name: String,
|
|
24
29
|
schema: Imagekitio::CustomMetadataFieldCreateParams::Schema,
|
|
30
|
+
?description: String,
|
|
25
31
|
?request_options: Imagekitio::request_opts
|
|
26
32
|
) -> void
|
|
27
33
|
|
|
@@ -29,6 +35,7 @@ module Imagekitio
|
|
|
29
35
|
label: String,
|
|
30
36
|
name: String,
|
|
31
37
|
schema: Imagekitio::CustomMetadataFieldCreateParams::Schema,
|
|
38
|
+
description: String,
|
|
32
39
|
request_options: Imagekitio::RequestOptions
|
|
33
40
|
}
|
|
34
41
|
|
|
@@ -3,6 +3,7 @@ module Imagekitio
|
|
|
3
3
|
type custom_metadata_field_update_params =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
description: String,
|
|
6
7
|
label: String,
|
|
7
8
|
schema: Imagekitio::CustomMetadataFieldUpdateParams::Schema
|
|
8
9
|
}
|
|
@@ -14,6 +15,10 @@ module Imagekitio
|
|
|
14
15
|
|
|
15
16
|
attr_accessor id: String
|
|
16
17
|
|
|
18
|
+
attr_reader description: String?
|
|
19
|
+
|
|
20
|
+
def description=: (String) -> String
|
|
21
|
+
|
|
17
22
|
attr_reader label: String?
|
|
18
23
|
|
|
19
24
|
def label=: (String) -> String
|
|
@@ -26,6 +31,7 @@ module Imagekitio
|
|
|
26
31
|
|
|
27
32
|
def initialize: (
|
|
28
33
|
id: String,
|
|
34
|
+
?description: String,
|
|
29
35
|
?label: String,
|
|
30
36
|
?schema: Imagekitio::CustomMetadataFieldUpdateParams::Schema,
|
|
31
37
|
?request_options: Imagekitio::request_opts
|
|
@@ -33,6 +39,7 @@ module Imagekitio
|
|
|
33
39
|
|
|
34
40
|
def to_hash: -> {
|
|
35
41
|
id: String,
|
|
42
|
+
description: String,
|
|
36
43
|
label: String,
|
|
37
44
|
schema: Imagekitio::CustomMetadataFieldUpdateParams::Schema,
|
|
38
45
|
request_options: Imagekitio::RequestOptions
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Imagekitio
|
|
2
|
+
module Models
|
|
3
|
+
type named_transformation =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
enabled: bool,
|
|
8
|
+
name: String,
|
|
9
|
+
transformation: String
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class NamedTransformation < Imagekitio::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor created_at: Time
|
|
16
|
+
|
|
17
|
+
attr_accessor enabled: bool
|
|
18
|
+
|
|
19
|
+
attr_accessor name: String
|
|
20
|
+
|
|
21
|
+
attr_accessor transformation: String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
created_at: Time,
|
|
26
|
+
enabled: bool,
|
|
27
|
+
name: String,
|
|
28
|
+
transformation: String
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
created_at: Time,
|
|
34
|
+
enabled: bool,
|
|
35
|
+
name: String,
|
|
36
|
+
transformation: String
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Imagekitio
|
|
2
|
+
module Models
|
|
3
|
+
type named_transformation_create_params =
|
|
4
|
+
{ name: String, transformation: String, enabled: bool }
|
|
5
|
+
& Imagekitio::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class NamedTransformationCreateParams < Imagekitio::Internal::Type::BaseModel
|
|
8
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor name: String
|
|
12
|
+
|
|
13
|
+
attr_accessor transformation: String
|
|
14
|
+
|
|
15
|
+
attr_reader enabled: bool?
|
|
16
|
+
|
|
17
|
+
def enabled=: (bool) -> bool
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
name: String,
|
|
21
|
+
transformation: String,
|
|
22
|
+
?enabled: bool,
|
|
23
|
+
?request_options: Imagekitio::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
name: String,
|
|
28
|
+
transformation: String,
|
|
29
|
+
enabled: bool,
|
|
30
|
+
request_options: Imagekitio::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Imagekitio
|
|
2
|
+
module Models
|
|
3
|
+
type named_transformation_delete_params =
|
|
4
|
+
{ id: String } & Imagekitio::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NamedTransformationDeleteParams < Imagekitio::Internal::Type::BaseModel
|
|
7
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Imagekitio::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: Imagekitio::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Imagekitio
|
|
2
|
+
module Models
|
|
3
|
+
type named_transformation_get_params =
|
|
4
|
+
{ id: String } & Imagekitio::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NamedTransformationGetParams < Imagekitio::Internal::Type::BaseModel
|
|
7
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Imagekitio::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: Imagekitio::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Imagekitio
|
|
2
|
+
module Models
|
|
3
|
+
type named_transformation_list_params =
|
|
4
|
+
{ } & Imagekitio::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NamedTransformationListParams < Imagekitio::Internal::Type::BaseModel
|
|
7
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Imagekitio::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Imagekitio::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Imagekitio
|
|
2
|
+
module Models
|
|
3
|
+
type named_transformation_update_params =
|
|
4
|
+
{ id: String, enabled: bool, name: String, transformation: String }
|
|
5
|
+
& Imagekitio::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class NamedTransformationUpdateParams < Imagekitio::Internal::Type::BaseModel
|
|
8
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_reader enabled: bool?
|
|
14
|
+
|
|
15
|
+
def enabled=: (bool) -> bool
|
|
16
|
+
|
|
17
|
+
attr_reader name: String?
|
|
18
|
+
|
|
19
|
+
def name=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader transformation: String?
|
|
22
|
+
|
|
23
|
+
def transformation=: (String) -> String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
id: String,
|
|
27
|
+
?enabled: bool,
|
|
28
|
+
?name: String,
|
|
29
|
+
?transformation: String,
|
|
30
|
+
?request_options: Imagekitio::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
id: String,
|
|
35
|
+
enabled: bool,
|
|
36
|
+
name: String,
|
|
37
|
+
transformation: String,
|
|
38
|
+
request_options: Imagekitio::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|