File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 47
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-f4cd00365ba96133e0675eae3d5d3c6ac13874789e2ce69a84310ab64a4f87dd .yml
3- openapi_spec_hash : dce632cfbb5464a98c0f5d8eb9573d68
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-3234424a3a5871f31f5d6dcb8173593fc6c1db14802a0e71f14f3527ad16c871 .yml
3+ openapi_spec_hash : 017a8ab68d905ed9e163022f68d8be78
44config_hash : 17e408231b0b01676298010c7405f483
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ class DamFileVersionCreateEvent < Imagekitio::Models::BaseWebhookEvent
1010 required :created_at , Time
1111
1212 # @!attribute data
13+ # Object containing details of a file or file version.
1314 #
14- # @return [Object ]
15- required :data , Imagekitio ::Internal :: Type :: Unknown
15+ # @return [Imagekitio::Models::File ]
16+ required :data , -> { Imagekitio ::File }
1617
1718 # @!attribute type
1819 # Type of the webhook event.
@@ -25,7 +26,7 @@ class DamFileVersionCreateEvent < Imagekitio::Models::BaseWebhookEvent
2526 #
2627 # @param created_at [Time] Timestamp of when the event occurred in ISO8601 format.
2728 #
28- # @param data [Object]
29+ # @param data [Imagekitio::Models::File] Object containing details of a file or file version.
2930 #
3031 # @param type [Symbol, :"file-version.created"] Type of the webhook event.
3132 end
Original file line number Diff line number Diff line change @@ -15,30 +15,39 @@ module Imagekitio
1515 sig { returns ( Time ) }
1616 attr_accessor :created_at
1717
18- sig { returns ( T . anything ) }
19- attr_accessor :data
18+ # Object containing details of a file or file version.
19+ sig { returns ( Imagekitio ::File ) }
20+ attr_reader :data
21+
22+ sig { params ( data : Imagekitio ::File ::OrHash ) . void }
23+ attr_writer :data
2024
2125 # Type of the webhook event.
2226 sig { returns ( Symbol ) }
2327 attr_accessor :type
2428
2529 # Triggered when a file version is created.
2630 sig do
27- params ( created_at : Time , data : T . anything , type : Symbol ) . returns (
28- T . attached_class
29- )
31+ params (
32+ created_at : Time ,
33+ data : Imagekitio ::File ::OrHash ,
34+ type : Symbol
35+ ) . returns ( T . attached_class )
3036 end
3137 def self . new (
3238 # Timestamp of when the event occurred in ISO8601 format.
3339 created_at :,
40+ # Object containing details of a file or file version.
3441 data :,
3542 # Type of the webhook event.
3643 type : :"file-version.created"
3744 )
3845 end
3946
4047 sig do
41- override . returns ( { created_at : Time , data : T . anything , type : Symbol } )
48+ override . returns (
49+ { created_at : Time , data : Imagekitio ::File , type : Symbol }
50+ )
4251 end
4352 def to_hash
4453 end
Original file line number Diff line number Diff line change 11module Imagekitio
22 module Models
33 type dam_file_version_create_event =
4- { created_at: Time, data: top , type : :"file-version.created" }
4+ {
5+ created_at: Time,
6+ data: Imagekitio::File,
7+ type : :"file-version.created"
8+ }
59
610 class DamFileVersionCreateEvent < Imagekitio::Models::BaseWebhookEvent
711 def created_at : -> Time
812
913 def created_at= : (Time _) -> Time
1014
11- def data : -> top
15+ def data : -> Imagekitio::File
1216
13- def data= : (top _) -> top
17+ def data= : (Imagekitio::File _) -> Imagekitio::File
1418
1519 def `type` : -> :"file-version.created"
1620
1721 def type= : (:"file-version.created" _) -> :"file-version.created"
1822
1923 def initialize : (
2024 created_at: Time,
21- data: top ,
25+ data: Imagekitio::File ,
2226 ?type : :"file-version.created"
2327 ) -> void
2428
2529 def to_hash : -> {
2630 created_at: Time,
27- data: top ,
31+ data: Imagekitio::File ,
2832 type : :"file-version.created"
2933 }
3034 end
You can’t perform that action at this time.
0 commit comments