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.
@@ -30,7 +30,7 @@ module Imagekitio
30
30
  )
31
31
  end
32
32
 
33
- # Access key for the bucket.
33
+ # Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
34
34
  sig { returns(String) }
35
35
  attr_accessor :access_key
36
36
 
@@ -42,7 +42,7 @@ module Imagekitio
42
42
  sig { returns(String) }
43
43
  attr_accessor :name
44
44
 
45
- # Secret key for the bucket.
45
+ # Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
46
46
  sig { returns(String) }
47
47
  attr_accessor :secret_key
48
48
 
@@ -70,6 +70,14 @@ module Imagekitio
70
70
  sig { params(prefix: String).void }
71
71
  attr_writer :prefix
72
72
 
73
+ # Use IAM role for authentication instead of access/secret keys. When set to
74
+ # `true`, send an empty string for both `accessKey` and `secretKey`.
75
+ sig { returns(T.nilable(T::Boolean)) }
76
+ attr_reader :use_iam_role
77
+
78
+ sig { params(use_iam_role: T::Boolean).void }
79
+ attr_writer :use_iam_role
80
+
73
81
  sig do
74
82
  params(
75
83
  access_key: String,
@@ -79,17 +87,18 @@ module Imagekitio
79
87
  base_url_for_canonical_header: String,
80
88
  include_canonical_header: T::Boolean,
81
89
  prefix: String,
90
+ use_iam_role: T::Boolean,
82
91
  type: Symbol
83
92
  ).returns(T.attached_class)
84
93
  end
85
94
  def self.new(
86
- # Access key for the bucket.
95
+ # Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
87
96
  access_key:,
88
97
  # S3 bucket name.
89
98
  bucket:,
90
99
  # Display name of the origin.
91
100
  name:,
92
- # Secret key for the bucket.
101
+ # Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
93
102
  secret_key:,
94
103
  # URL used in the Canonical header (if enabled).
95
104
  base_url_for_canonical_header: nil,
@@ -97,6 +106,9 @@ module Imagekitio
97
106
  include_canonical_header: nil,
98
107
  # Path prefix inside the bucket.
99
108
  prefix: nil,
109
+ # Use IAM role for authentication instead of access/secret keys. When set to
110
+ # `true`, send an empty string for both `accessKey` and `secretKey`.
111
+ use_iam_role: nil,
100
112
  type: :S3
101
113
  )
102
114
  end
@@ -111,7 +123,8 @@ module Imagekitio
111
123
  type: Symbol,
112
124
  base_url_for_canonical_header: String,
113
125
  include_canonical_header: T::Boolean,
114
- prefix: String
126
+ prefix: String,
127
+ use_iam_role: T::Boolean
115
128
  }
116
129
  )
117
130
  end
@@ -245,7 +258,7 @@ module Imagekitio
245
258
  )
246
259
  end
247
260
 
248
- # Access key for the bucket.
261
+ # Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
249
262
  sig { returns(String) }
250
263
  attr_accessor :access_key
251
264
 
@@ -257,7 +270,7 @@ module Imagekitio
257
270
  sig { returns(String) }
258
271
  attr_accessor :name
259
272
 
260
- # Secret key for the bucket.
273
+ # Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
261
274
  sig { returns(String) }
262
275
  attr_accessor :secret_key
263
276
 
@@ -285,6 +298,14 @@ module Imagekitio
285
298
  sig { params(prefix: String).void }
286
299
  attr_writer :prefix
287
300
 
301
+ # Use IAM role for authentication instead of access/secret keys. When set to
302
+ # `true`, send an empty string for both `accessKey` and `secretKey`.
303
+ sig { returns(T.nilable(T::Boolean)) }
304
+ attr_reader :use_iam_role
305
+
306
+ sig { params(use_iam_role: T::Boolean).void }
307
+ attr_writer :use_iam_role
308
+
288
309
  sig do
289
310
  params(
290
311
  access_key: String,
@@ -294,17 +315,18 @@ module Imagekitio
294
315
  base_url_for_canonical_header: String,
295
316
  include_canonical_header: T::Boolean,
296
317
  prefix: String,
318
+ use_iam_role: T::Boolean,
297
319
  type: Symbol
298
320
  ).returns(T.attached_class)
299
321
  end
300
322
  def self.new(
301
- # Access key for the bucket.
323
+ # Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
302
324
  access_key:,
303
325
  # S3 bucket name.
304
326
  bucket:,
305
327
  # Display name of the origin.
306
328
  name:,
307
- # Secret key for the bucket.
329
+ # Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
308
330
  secret_key:,
309
331
  # URL used in the Canonical header (if enabled).
310
332
  base_url_for_canonical_header: nil,
@@ -312,6 +334,9 @@ module Imagekitio
312
334
  include_canonical_header: nil,
313
335
  # Path prefix inside the bucket.
314
336
  prefix: nil,
337
+ # Use IAM role for authentication instead of access/secret keys. When set to
338
+ # `true`, send an empty string for both `accessKey` and `secretKey`.
339
+ use_iam_role: nil,
315
340
  type: :CLOUDINARY_BACKUP
316
341
  )
317
342
  end
@@ -326,7 +351,8 @@ module Imagekitio
326
351
  type: Symbol,
327
352
  base_url_for_canonical_header: String,
328
353
  include_canonical_header: T::Boolean,
329
- prefix: String
354
+ prefix: String,
355
+ use_iam_role: T::Boolean
330
356
  }
331
357
  )
332
358
  end
@@ -56,6 +56,14 @@ module Imagekitio
56
56
  sig { params(base_url_for_canonical_header: String).void }
57
57
  attr_writer :base_url_for_canonical_header
58
58
 
59
+ # Whether the origin authenticates using an IAM role instead of access/secret
60
+ # keys.
61
+ sig { returns(T.nilable(T::Boolean)) }
62
+ attr_reader :use_iam_role
63
+
64
+ sig { params(use_iam_role: T::Boolean).void }
65
+ attr_writer :use_iam_role
66
+
59
67
  # Unique identifier for the origin. This is generated by ImageKit when you create
60
68
  # a new origin.
61
69
  sig { returns(String) }
@@ -69,6 +77,7 @@ module Imagekitio
69
77
  name: String,
70
78
  prefix: String,
71
79
  base_url_for_canonical_header: String,
80
+ use_iam_role: T::Boolean,
72
81
  type: Symbol
73
82
  ).returns(T.attached_class)
74
83
  end
@@ -86,6 +95,9 @@ module Imagekitio
86
95
  prefix:,
87
96
  # URL used in the Canonical header (if enabled).
88
97
  base_url_for_canonical_header: nil,
98
+ # Whether the origin authenticates using an IAM role instead of access/secret
99
+ # keys.
100
+ use_iam_role: nil,
89
101
  type: :S3
90
102
  )
91
103
  end
@@ -99,7 +111,8 @@ module Imagekitio
99
111
  name: String,
100
112
  prefix: String,
101
113
  type: Symbol,
102
- base_url_for_canonical_header: String
114
+ base_url_for_canonical_header: String,
115
+ use_iam_role: T::Boolean
103
116
  }
104
117
  )
105
118
  end
@@ -244,6 +257,14 @@ module Imagekitio
244
257
  sig { params(base_url_for_canonical_header: String).void }
245
258
  attr_writer :base_url_for_canonical_header
246
259
 
260
+ # Whether the origin authenticates using an IAM role instead of access/secret
261
+ # keys.
262
+ sig { returns(T.nilable(T::Boolean)) }
263
+ attr_reader :use_iam_role
264
+
265
+ sig { params(use_iam_role: T::Boolean).void }
266
+ attr_writer :use_iam_role
267
+
247
268
  # Unique identifier for the origin. This is generated by ImageKit when you create
248
269
  # a new origin.
249
270
  sig { returns(String) }
@@ -257,6 +278,7 @@ module Imagekitio
257
278
  name: String,
258
279
  prefix: String,
259
280
  base_url_for_canonical_header: String,
281
+ use_iam_role: T::Boolean,
260
282
  type: Symbol
261
283
  ).returns(T.attached_class)
262
284
  end
@@ -274,6 +296,9 @@ module Imagekitio
274
296
  prefix:,
275
297
  # URL used in the Canonical header (if enabled).
276
298
  base_url_for_canonical_header: nil,
299
+ # Whether the origin authenticates using an IAM role instead of access/secret
300
+ # keys.
301
+ use_iam_role: nil,
277
302
  type: :CLOUDINARY_BACKUP
278
303
  )
279
304
  end
@@ -287,7 +312,8 @@ module Imagekitio
287
312
  name: String,
288
313
  prefix: String,
289
314
  type: Symbol,
290
- base_url_for_canonical_header: String
315
+ base_url_for_canonical_header: String,
316
+ use_iam_role: T::Boolean
291
317
  }
292
318
  )
293
319
  end
@@ -288,6 +288,12 @@ module Imagekitio
288
288
  sig { params(aperture_value: Float).void }
289
289
  attr_writer :aperture_value
290
290
 
291
+ sig { returns(T.nilable(Float)) }
292
+ attr_reader :brightness_value
293
+
294
+ sig { params(brightness_value: Float).void }
295
+ attr_writer :brightness_value
296
+
291
297
  sig { returns(T.nilable(Integer)) }
292
298
  attr_reader :color_space
293
299
 
@@ -372,12 +378,18 @@ module Imagekitio
372
378
  sig { params(f_number: Float).void }
373
379
  attr_writer :f_number
374
380
 
375
- sig { returns(T.nilable(Integer)) }
381
+ sig { returns(T.nilable(Float)) }
376
382
  attr_reader :focal_length
377
383
 
378
- sig { params(focal_length: Integer).void }
384
+ sig { params(focal_length: Float).void }
379
385
  attr_writer :focal_length
380
386
 
387
+ sig { returns(T.nilable(Integer)) }
388
+ attr_reader :focal_length_in35mm_format
389
+
390
+ sig { params(focal_length_in35mm_format: Integer).void }
391
+ attr_writer :focal_length_in35mm_format
392
+
381
393
  sig { returns(T.nilable(Integer)) }
382
394
  attr_reader :focal_plane_resolution_unit
383
395
 
@@ -408,6 +420,24 @@ module Imagekitio
408
420
  sig { params(iso: Integer).void }
409
421
  attr_writer :iso
410
422
 
423
+ sig { returns(T.nilable(String)) }
424
+ attr_reader :lens_model
425
+
426
+ sig { params(lens_model: String).void }
427
+ attr_writer :lens_model
428
+
429
+ sig { returns(T.nilable(Integer)) }
430
+ attr_reader :light_source
431
+
432
+ sig { params(light_source: Integer).void }
433
+ attr_writer :light_source
434
+
435
+ sig { returns(T.nilable(Float)) }
436
+ attr_reader :max_aperture_value
437
+
438
+ sig { params(max_aperture_value: Float).void }
439
+ attr_writer :max_aperture_value
440
+
411
441
  sig { returns(T.nilable(Integer)) }
412
442
  attr_reader :metering_mode
413
443
 
@@ -420,6 +450,18 @@ module Imagekitio
420
450
  sig { params(scene_capture_type: Integer).void }
421
451
  attr_writer :scene_capture_type
422
452
 
453
+ sig { returns(T.nilable(String)) }
454
+ attr_reader :scene_type
455
+
456
+ sig { params(scene_type: String).void }
457
+ attr_writer :scene_type
458
+
459
+ sig { returns(T.nilable(Integer)) }
460
+ attr_reader :sensing_method
461
+
462
+ sig { params(sensing_method: Integer).void }
463
+ attr_writer :sensing_method
464
+
423
465
  sig { returns(T.nilable(Float)) }
424
466
  attr_reader :shutter_speed_value
425
467
 
@@ -432,6 +474,12 @@ module Imagekitio
432
474
  sig { params(sub_sec_time: String).void }
433
475
  attr_writer :sub_sec_time
434
476
 
477
+ sig { returns(T.nilable(String)) }
478
+ attr_reader :user_comment
479
+
480
+ sig { params(user_comment: String).void }
481
+ attr_writer :user_comment
482
+
435
483
  sig { returns(T.nilable(Integer)) }
436
484
  attr_reader :white_balance
437
485
 
@@ -442,6 +490,7 @@ module Imagekitio
442
490
  sig do
443
491
  params(
444
492
  aperture_value: Float,
493
+ brightness_value: Float,
445
494
  color_space: Integer,
446
495
  create_date: String,
447
496
  custom_rendered: Integer,
@@ -456,21 +505,29 @@ module Imagekitio
456
505
  flash: Integer,
457
506
  flashpix_version: String,
458
507
  f_number: Float,
459
- focal_length: Integer,
508
+ focal_length: Float,
509
+ focal_length_in35mm_format: Integer,
460
510
  focal_plane_resolution_unit: Integer,
461
511
  focal_plane_x_resolution: Float,
462
512
  focal_plane_y_resolution: Float,
463
513
  interop_offset: Integer,
464
514
  iso: Integer,
515
+ lens_model: String,
516
+ light_source: Integer,
517
+ max_aperture_value: Float,
465
518
  metering_mode: Integer,
466
519
  scene_capture_type: Integer,
520
+ scene_type: String,
521
+ sensing_method: Integer,
467
522
  shutter_speed_value: Float,
468
523
  sub_sec_time: String,
524
+ user_comment: String,
469
525
  white_balance: Integer
470
526
  ).returns(T.attached_class)
471
527
  end
472
528
  def self.new(
473
529
  aperture_value: nil,
530
+ brightness_value: nil,
474
531
  color_space: nil,
475
532
  create_date: nil,
476
533
  custom_rendered: nil,
@@ -486,15 +543,22 @@ module Imagekitio
486
543
  flashpix_version: nil,
487
544
  f_number: nil,
488
545
  focal_length: nil,
546
+ focal_length_in35mm_format: nil,
489
547
  focal_plane_resolution_unit: nil,
490
548
  focal_plane_x_resolution: nil,
491
549
  focal_plane_y_resolution: nil,
492
550
  interop_offset: nil,
493
551
  iso: nil,
552
+ lens_model: nil,
553
+ light_source: nil,
554
+ max_aperture_value: nil,
494
555
  metering_mode: nil,
495
556
  scene_capture_type: nil,
557
+ scene_type: nil,
558
+ sensing_method: nil,
496
559
  shutter_speed_value: nil,
497
560
  sub_sec_time: nil,
561
+ user_comment: nil,
498
562
  white_balance: nil
499
563
  )
500
564
  end
@@ -503,6 +567,7 @@ module Imagekitio
503
567
  override.returns(
504
568
  {
505
569
  aperture_value: Float,
570
+ brightness_value: Float,
506
571
  color_space: Integer,
507
572
  create_date: String,
508
573
  custom_rendered: Integer,
@@ -517,16 +582,23 @@ module Imagekitio
517
582
  flash: Integer,
518
583
  flashpix_version: String,
519
584
  f_number: Float,
520
- focal_length: Integer,
585
+ focal_length: Float,
586
+ focal_length_in35mm_format: Integer,
521
587
  focal_plane_resolution_unit: Integer,
522
588
  focal_plane_x_resolution: Float,
523
589
  focal_plane_y_resolution: Float,
524
590
  interop_offset: Integer,
525
591
  iso: Integer,
592
+ lens_model: String,
593
+ light_source: Integer,
594
+ max_aperture_value: Float,
526
595
  metering_mode: Integer,
527
596
  scene_capture_type: Integer,
597
+ scene_type: String,
598
+ sensing_method: Integer,
528
599
  shutter_speed_value: Float,
529
600
  sub_sec_time: String,
601
+ user_comment: String,
530
602
  white_balance: Integer
531
603
  }
532
604
  )
@@ -544,6 +616,66 @@ module Imagekitio
544
616
  )
545
617
  end
546
618
 
619
+ sig { returns(T.nilable(Float)) }
620
+ attr_reader :gps_altitude
621
+
622
+ sig { params(gps_altitude: Float).void }
623
+ attr_writer :gps_altitude
624
+
625
+ sig { returns(T.nilable(Integer)) }
626
+ attr_reader :gps_altitude_ref
627
+
628
+ sig { params(gps_altitude_ref: Integer).void }
629
+ attr_writer :gps_altitude_ref
630
+
631
+ sig { returns(T.nilable(String)) }
632
+ attr_reader :gps_date_stamp
633
+
634
+ sig { params(gps_date_stamp: String).void }
635
+ attr_writer :gps_date_stamp
636
+
637
+ sig { returns(T.nilable(Float)) }
638
+ attr_reader :gps_img_direction
639
+
640
+ sig { params(gps_img_direction: Float).void }
641
+ attr_writer :gps_img_direction
642
+
643
+ sig { returns(T.nilable(String)) }
644
+ attr_reader :gps_img_direction_ref
645
+
646
+ sig { params(gps_img_direction_ref: String).void }
647
+ attr_writer :gps_img_direction_ref
648
+
649
+ sig { returns(T.nilable(T::Array[Float])) }
650
+ attr_reader :gps_latitude
651
+
652
+ sig { params(gps_latitude: T::Array[Float]).void }
653
+ attr_writer :gps_latitude
654
+
655
+ sig { returns(T.nilable(String)) }
656
+ attr_reader :gps_latitude_ref
657
+
658
+ sig { params(gps_latitude_ref: String).void }
659
+ attr_writer :gps_latitude_ref
660
+
661
+ sig { returns(T.nilable(T::Array[Float])) }
662
+ attr_reader :gps_longitude
663
+
664
+ sig { params(gps_longitude: T::Array[Float]).void }
665
+ attr_writer :gps_longitude
666
+
667
+ sig { returns(T.nilable(String)) }
668
+ attr_reader :gps_longitude_ref
669
+
670
+ sig { params(gps_longitude_ref: String).void }
671
+ attr_writer :gps_longitude_ref
672
+
673
+ sig { returns(T.nilable(T::Array[Float])) }
674
+ attr_reader :gps_time_stamp
675
+
676
+ sig { params(gps_time_stamp: T::Array[Float]).void }
677
+ attr_writer :gps_time_stamp
678
+
547
679
  sig { returns(T.nilable(T::Array[Integer])) }
548
680
  attr_reader :gps_version_id
549
681
 
@@ -552,12 +684,52 @@ module Imagekitio
552
684
 
553
685
  # Object containing GPS information.
554
686
  sig do
555
- params(gps_version_id: T::Array[Integer]).returns(T.attached_class)
687
+ params(
688
+ gps_altitude: Float,
689
+ gps_altitude_ref: Integer,
690
+ gps_date_stamp: String,
691
+ gps_img_direction: Float,
692
+ gps_img_direction_ref: String,
693
+ gps_latitude: T::Array[Float],
694
+ gps_latitude_ref: String,
695
+ gps_longitude: T::Array[Float],
696
+ gps_longitude_ref: String,
697
+ gps_time_stamp: T::Array[Float],
698
+ gps_version_id: T::Array[Integer]
699
+ ).returns(T.attached_class)
556
700
  end
557
- def self.new(gps_version_id: nil)
701
+ def self.new(
702
+ gps_altitude: nil,
703
+ gps_altitude_ref: nil,
704
+ gps_date_stamp: nil,
705
+ gps_img_direction: nil,
706
+ gps_img_direction_ref: nil,
707
+ gps_latitude: nil,
708
+ gps_latitude_ref: nil,
709
+ gps_longitude: nil,
710
+ gps_longitude_ref: nil,
711
+ gps_time_stamp: nil,
712
+ gps_version_id: nil
713
+ )
558
714
  end
559
715
 
560
- sig { override.returns({ gps_version_id: T::Array[Integer] }) }
716
+ sig do
717
+ override.returns(
718
+ {
719
+ gps_altitude: Float,
720
+ gps_altitude_ref: Integer,
721
+ gps_date_stamp: String,
722
+ gps_img_direction: Float,
723
+ gps_img_direction_ref: String,
724
+ gps_latitude: T::Array[Float],
725
+ gps_latitude_ref: String,
726
+ gps_longitude: T::Array[Float],
727
+ gps_longitude_ref: String,
728
+ gps_time_stamp: T::Array[Float],
729
+ gps_version_id: T::Array[Integer]
730
+ }
731
+ )
732
+ end
561
733
  def to_hash
562
734
  end
563
735
  end
@@ -571,6 +743,18 @@ module Imagekitio
571
743
  )
572
744
  end
573
745
 
746
+ sig { returns(T.nilable(String)) }
747
+ attr_reader :artist
748
+
749
+ sig { params(artist: String).void }
750
+ attr_writer :artist
751
+
752
+ sig { returns(T.nilable(String)) }
753
+ attr_reader :copyright
754
+
755
+ sig { params(copyright: String).void }
756
+ attr_writer :copyright
757
+
574
758
  sig { returns(T.nilable(Integer)) }
575
759
  attr_reader :exif_offset
576
760
 
@@ -583,6 +767,12 @@ module Imagekitio
583
767
  sig { params(gps_info: Integer).void }
584
768
  attr_writer :gps_info
585
769
 
770
+ sig { returns(T.nilable(String)) }
771
+ attr_reader :image_description
772
+
773
+ sig { params(image_description: String).void }
774
+ attr_writer :image_description
775
+
586
776
  sig { returns(T.nilable(String)) }
587
777
  attr_reader :make
588
778
 
@@ -619,10 +809,10 @@ module Imagekitio
619
809
  sig { params(software: String).void }
620
810
  attr_writer :software
621
811
 
622
- sig { returns(T.nilable(Integer)) }
812
+ sig { returns(T.nilable(Float)) }
623
813
  attr_reader :x_resolution
624
814
 
625
- sig { params(x_resolution: Integer).void }
815
+ sig { params(x_resolution: Float).void }
626
816
  attr_writer :x_resolution
627
817
 
628
818
  sig { returns(T.nilable(Integer)) }
@@ -631,31 +821,37 @@ module Imagekitio
631
821
  sig { params(y_cb_cr_positioning: Integer).void }
632
822
  attr_writer :y_cb_cr_positioning
633
823
 
634
- sig { returns(T.nilable(Integer)) }
824
+ sig { returns(T.nilable(Float)) }
635
825
  attr_reader :y_resolution
636
826
 
637
- sig { params(y_resolution: Integer).void }
827
+ sig { params(y_resolution: Float).void }
638
828
  attr_writer :y_resolution
639
829
 
640
830
  # Object containing EXIF image information.
641
831
  sig do
642
832
  params(
833
+ artist: String,
834
+ copyright: String,
643
835
  exif_offset: Integer,
644
836
  gps_info: Integer,
837
+ image_description: String,
645
838
  make: String,
646
839
  model: String,
647
840
  modify_date: String,
648
841
  orientation: Integer,
649
842
  resolution_unit: Integer,
650
843
  software: String,
651
- x_resolution: Integer,
844
+ x_resolution: Float,
652
845
  y_cb_cr_positioning: Integer,
653
- y_resolution: Integer
846
+ y_resolution: Float
654
847
  ).returns(T.attached_class)
655
848
  end
656
849
  def self.new(
850
+ artist: nil,
851
+ copyright: nil,
657
852
  exif_offset: nil,
658
853
  gps_info: nil,
854
+ image_description: nil,
659
855
  make: nil,
660
856
  model: nil,
661
857
  modify_date: nil,
@@ -671,17 +867,20 @@ module Imagekitio
671
867
  sig do
672
868
  override.returns(
673
869
  {
870
+ artist: String,
871
+ copyright: String,
674
872
  exif_offset: Integer,
675
873
  gps_info: Integer,
874
+ image_description: String,
676
875
  make: String,
677
876
  model: String,
678
877
  modify_date: String,
679
878
  orientation: Integer,
680
879
  resolution_unit: Integer,
681
880
  software: String,
682
- x_resolution: Integer,
881
+ x_resolution: Float,
683
882
  y_cb_cr_positioning: Integer,
684
- y_resolution: Integer
883
+ y_resolution: Float
685
884
  }
686
885
  )
687
886
  end
@@ -759,16 +958,16 @@ module Imagekitio
759
958
  sig { params(thumbnail_offset: Integer).void }
760
959
  attr_writer :thumbnail_offset
761
960
 
762
- sig { returns(T.nilable(Integer)) }
961
+ sig { returns(T.nilable(Float)) }
763
962
  attr_reader :x_resolution
764
963
 
765
- sig { params(x_resolution: Integer).void }
964
+ sig { params(x_resolution: Float).void }
766
965
  attr_writer :x_resolution
767
966
 
768
- sig { returns(T.nilable(Integer)) }
967
+ sig { returns(T.nilable(Float)) }
769
968
  attr_reader :y_resolution
770
969
 
771
- sig { params(y_resolution: Integer).void }
970
+ sig { params(y_resolution: Float).void }
772
971
  attr_writer :y_resolution
773
972
 
774
973
  # Object containing Thumbnail information.
@@ -778,8 +977,8 @@ module Imagekitio
778
977
  resolution_unit: Integer,
779
978
  thumbnail_length: Integer,
780
979
  thumbnail_offset: Integer,
781
- x_resolution: Integer,
782
- y_resolution: Integer
980
+ x_resolution: Float,
981
+ y_resolution: Float
783
982
  ).returns(T.attached_class)
784
983
  end
785
984
  def self.new(
@@ -799,8 +998,8 @@ module Imagekitio
799
998
  resolution_unit: Integer,
800
999
  thumbnail_length: Integer,
801
1000
  thumbnail_offset: Integer,
802
- x_resolution: Integer,
803
- y_resolution: Integer
1001
+ x_resolution: Float,
1002
+ y_resolution: Float
804
1003
  }
805
1004
  )
806
1005
  end
@@ -203,7 +203,7 @@ module Imagekitio
203
203
  #
204
204
  # - `co-color` - Color to apply (e.g., `red`, `blue`, `FF0022`). Default is gray
205
205
  # color.
206
- # - `in-intensity` - Intensity of the color (0-100). Default is 35. See
206
+ # - `in-intensity` - Intensity of the color (0-100). Default is 100. See
207
207
  # [Colorize](https://imagekit.io/docs/effects-and-enhancements#colorize---e-colorize).
208
208
  sig { returns(T.nilable(String)) }
209
209
  attr_reader :colorize
@@ -804,7 +804,7 @@ module Imagekitio
804
804
  #
805
805
  # - `co-color` - Color to apply (e.g., `red`, `blue`, `FF0022`). Default is gray
806
806
  # color.
807
- # - `in-intensity` - Intensity of the color (0-100). Default is 35. See
807
+ # - `in-intensity` - Intensity of the color (0-100). Default is 100. See
808
808
  # [Colorize](https://imagekit.io/docs/effects-and-enhancements#colorize---e-colorize).
809
809
  colorize: nil,
810
810
  # Indicates whether the output image should retain the original color profile. See