Skip to content

Commit 3d07367

Browse files
fix(api): fix references of schema
1 parent 0325862 commit 3d07367

13 files changed

Lines changed: 1 addition & 740 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-7c4c23556be689ded6bcafd05e1645b82239521c9c841c0f7e76336e2eefcffa.yml
33
openapi_spec_hash: eca5b039a0066c6536296248c3a80854
4-
config_hash: e3c2679d25f6235381dfb11962fbf3d9
4+
config_hash: f914ebc9670f6e7c7751660caa4e5556

lib/imagekitio/models/beta/v2/file_upload_response.rb

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -260,37 +260,6 @@ class FileUploadResponse < Imagekitio::Internal::Type::BaseModel
260260
#
261261
# @param width [Float] Width of the image in pixels (Only for Images)
262262

263-
class AITag < Imagekitio::Internal::Type::BaseModel
264-
# @!attribute confidence
265-
# Confidence score of the tag.
266-
#
267-
# @return [Float, nil]
268-
optional :confidence, Float
269-
270-
# @!attribute name
271-
# Name of the tag.
272-
#
273-
# @return [String, nil]
274-
optional :name, String
275-
276-
# @!attribute source
277-
# Source of the tag. Possible values are `google-auto-tagging` and
278-
# `aws-auto-tagging`.
279-
#
280-
# @return [String, nil]
281-
optional :source, String
282-
283-
# @!method initialize(confidence: nil, name: nil, source: nil)
284-
# Some parameter documentations has been truncated, see
285-
# {Imagekitio::Models::Beta::V2::FileUploadResponse::AITag} for more details.
286-
#
287-
# @param confidence [Float] Confidence score of the tag.
288-
#
289-
# @param name [String] Name of the tag.
290-
#
291-
# @param source [String] Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-taggi
292-
end
293-
294263
# @see Imagekitio::Models::Beta::V2::FileUploadResponse#extension_status
295264
class ExtensionStatus < Imagekitio::Internal::Type::BaseModel
296265
# @!attribute ai_auto_description
@@ -405,28 +374,6 @@ module RemoveBg
405374
# @return [Array<Symbol>]
406375
end
407376
end
408-
409-
# @see Imagekitio::Models::Beta::V2::FileUploadResponse#version_info
410-
class VersionInfo < Imagekitio::Internal::Type::BaseModel
411-
# @!attribute id
412-
# Unique identifier of the file version.
413-
#
414-
# @return [String, nil]
415-
optional :id, String
416-
417-
# @!attribute name
418-
# Name of the file version.
419-
#
420-
# @return [String, nil]
421-
optional :name, String
422-
423-
# @!method initialize(id: nil, name: nil)
424-
# An object containing the file or file version's `id` (versionId) and `name`.
425-
#
426-
# @param id [String] Unique identifier of the file version.
427-
#
428-
# @param name [String] Name of the file version.
429-
end
430377
end
431378
end
432379
end

lib/imagekitio/models/file.rb

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -265,37 +265,6 @@ class File < Imagekitio::Internal::Type::BaseModel
265265
#
266266
# @param width [Float] Width of the file.
267267

268-
class AITag < Imagekitio::Internal::Type::BaseModel
269-
# @!attribute confidence
270-
# Confidence score of the tag.
271-
#
272-
# @return [Float, nil]
273-
optional :confidence, Float
274-
275-
# @!attribute name
276-
# Name of the tag.
277-
#
278-
# @return [String, nil]
279-
optional :name, String
280-
281-
# @!attribute source
282-
# Source of the tag. Possible values are `google-auto-tagging` and
283-
# `aws-auto-tagging`.
284-
#
285-
# @return [String, nil]
286-
optional :source, String
287-
288-
# @!method initialize(confidence: nil, name: nil, source: nil)
289-
# Some parameter documentations has been truncated, see
290-
# {Imagekitio::Models::File::AITag} for more details.
291-
#
292-
# @param confidence [Float] Confidence score of the tag.
293-
#
294-
# @param name [String] Name of the tag.
295-
#
296-
# @param source [String] Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-taggi
297-
end
298-
299268
# Type of the asset.
300269
#
301270
# @see Imagekitio::Models::File#type
@@ -308,28 +277,6 @@ module Type
308277
# @!method self.values
309278
# @return [Array<Symbol>]
310279
end
311-
312-
# @see Imagekitio::Models::File#version_info
313-
class VersionInfo < Imagekitio::Internal::Type::BaseModel
314-
# @!attribute id
315-
# Unique identifier of the file version.
316-
#
317-
# @return [String, nil]
318-
optional :id, String
319-
320-
# @!attribute name
321-
# Name of the file version.
322-
#
323-
# @return [String, nil]
324-
optional :name, String
325-
326-
# @!method initialize(id: nil, name: nil)
327-
# An object containing the file or file version's `id` (versionId) and `name`.
328-
#
329-
# @param id [String] Unique identifier of the file version.
330-
#
331-
# @param name [String] Name of the file version.
332-
end
333280
end
334281
end
335282
end

lib/imagekitio/models/file_upload_response.rb

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -256,37 +256,6 @@ class FileUploadResponse < Imagekitio::Internal::Type::BaseModel
256256
#
257257
# @param width [Float] Width of the image in pixels (Only for Images)
258258

259-
class AITag < Imagekitio::Internal::Type::BaseModel
260-
# @!attribute confidence
261-
# Confidence score of the tag.
262-
#
263-
# @return [Float, nil]
264-
optional :confidence, Float
265-
266-
# @!attribute name
267-
# Name of the tag.
268-
#
269-
# @return [String, nil]
270-
optional :name, String
271-
272-
# @!attribute source
273-
# Source of the tag. Possible values are `google-auto-tagging` and
274-
# `aws-auto-tagging`.
275-
#
276-
# @return [String, nil]
277-
optional :source, String
278-
279-
# @!method initialize(confidence: nil, name: nil, source: nil)
280-
# Some parameter documentations has been truncated, see
281-
# {Imagekitio::Models::FileUploadResponse::AITag} for more details.
282-
#
283-
# @param confidence [Float] Confidence score of the tag.
284-
#
285-
# @param name [String] Name of the tag.
286-
#
287-
# @param source [String] Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-taggi
288-
end
289-
290259
# @see Imagekitio::Models::FileUploadResponse#extension_status
291260
class ExtensionStatus < Imagekitio::Internal::Type::BaseModel
292261
# @!attribute ai_auto_description
@@ -401,28 +370,6 @@ module RemoveBg
401370
# @return [Array<Symbol>]
402371
end
403372
end
404-
405-
# @see Imagekitio::Models::FileUploadResponse#version_info
406-
class VersionInfo < Imagekitio::Internal::Type::BaseModel
407-
# @!attribute id
408-
# Unique identifier of the file version.
409-
#
410-
# @return [String, nil]
411-
optional :id, String
412-
413-
# @!attribute name
414-
# Name of the file version.
415-
#
416-
# @return [String, nil]
417-
optional :name, String
418-
419-
# @!method initialize(id: nil, name: nil)
420-
# An object containing the file or file version's `id` (versionId) and `name`.
421-
#
422-
# @param id [String] Unique identifier of the file version.
423-
#
424-
# @param name [String] Name of the file version.
425-
end
426373
end
427374
end
428375
end

lib/imagekitio/models/upload_pre_transform_success_event.rb

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -297,38 +297,6 @@ class Data < Imagekitio::Internal::Type::BaseModel
297297
#
298298
# @param width [Float] Width of the image in pixels (Only for Images)
299299

300-
class AITag < Imagekitio::Internal::Type::BaseModel
301-
# @!attribute confidence
302-
# Confidence score of the tag.
303-
#
304-
# @return [Float, nil]
305-
optional :confidence, Float
306-
307-
# @!attribute name
308-
# Name of the tag.
309-
#
310-
# @return [String, nil]
311-
optional :name, String
312-
313-
# @!attribute source
314-
# Source of the tag. Possible values are `google-auto-tagging` and
315-
# `aws-auto-tagging`.
316-
#
317-
# @return [String, nil]
318-
optional :source, String
319-
320-
# @!method initialize(confidence: nil, name: nil, source: nil)
321-
# Some parameter documentations has been truncated, see
322-
# {Imagekitio::Models::UploadPreTransformSuccessEvent::Data::AITag} for more
323-
# details.
324-
#
325-
# @param confidence [Float] Confidence score of the tag.
326-
#
327-
# @param name [String] Name of the tag.
328-
#
329-
# @param source [String] Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-taggi
330-
end
331-
332300
# @see Imagekitio::Models::UploadPreTransformSuccessEvent::Data#extension_status
333301
class ExtensionStatus < Imagekitio::Internal::Type::BaseModel
334302
# @!attribute ai_auto_description
@@ -449,28 +417,6 @@ module RemoveBg
449417
# @return [Array<Symbol>]
450418
end
451419
end
452-
453-
# @see Imagekitio::Models::UploadPreTransformSuccessEvent::Data#version_info
454-
class VersionInfo < Imagekitio::Internal::Type::BaseModel
455-
# @!attribute id
456-
# Unique identifier of the file version.
457-
#
458-
# @return [String, nil]
459-
optional :id, String
460-
461-
# @!attribute name
462-
# Name of the file version.
463-
#
464-
# @return [String, nil]
465-
optional :name, String
466-
467-
# @!method initialize(id: nil, name: nil)
468-
# An object containing the file or file version's `id` (versionId) and `name`.
469-
#
470-
# @param id [String] Unique identifier of the file version.
471-
#
472-
# @param name [String] Name of the file version.
473-
end
474420
end
475421

476422
class Request < Imagekitio::Internal::Type::BaseModel

rbi/imagekitio/models/beta/v2/file_upload_response.rbi

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -436,62 +436,6 @@ module Imagekitio
436436
def to_hash
437437
end
438438

439-
class AITag < Imagekitio::Internal::Type::BaseModel
440-
OrHash =
441-
T.type_alias do
442-
T.any(
443-
Imagekitio::Models::Beta::V2::FileUploadResponse::AITag,
444-
Imagekitio::Internal::AnyHash
445-
)
446-
end
447-
448-
# Confidence score of the tag.
449-
sig { returns(T.nilable(Float)) }
450-
attr_reader :confidence
451-
452-
sig { params(confidence: Float).void }
453-
attr_writer :confidence
454-
455-
# Name of the tag.
456-
sig { returns(T.nilable(String)) }
457-
attr_reader :name
458-
459-
sig { params(name: String).void }
460-
attr_writer :name
461-
462-
# Source of the tag. Possible values are `google-auto-tagging` and
463-
# `aws-auto-tagging`.
464-
sig { returns(T.nilable(String)) }
465-
attr_reader :source
466-
467-
sig { params(source: String).void }
468-
attr_writer :source
469-
470-
sig do
471-
params(confidence: Float, name: String, source: String).returns(
472-
T.attached_class
473-
)
474-
end
475-
def self.new(
476-
# Confidence score of the tag.
477-
confidence: nil,
478-
# Name of the tag.
479-
name: nil,
480-
# Source of the tag. Possible values are `google-auto-tagging` and
481-
# `aws-auto-tagging`.
482-
source: nil
483-
)
484-
end
485-
486-
sig do
487-
override.returns(
488-
{ confidence: Float, name: String, source: String }
489-
)
490-
end
491-
def to_hash
492-
end
493-
end
494-
495439
class ExtensionStatus < Imagekitio::Internal::Type::BaseModel
496440
OrHash =
497441
T.type_alias do
@@ -832,44 +776,6 @@ module Imagekitio
832776
end
833777
end
834778
end
835-
836-
class VersionInfo < Imagekitio::Internal::Type::BaseModel
837-
OrHash =
838-
T.type_alias do
839-
T.any(
840-
Imagekitio::Models::Beta::V2::FileUploadResponse::VersionInfo,
841-
Imagekitio::Internal::AnyHash
842-
)
843-
end
844-
845-
# Unique identifier of the file version.
846-
sig { returns(T.nilable(String)) }
847-
attr_reader :id
848-
849-
sig { params(id: String).void }
850-
attr_writer :id
851-
852-
# Name of the file version.
853-
sig { returns(T.nilable(String)) }
854-
attr_reader :name
855-
856-
sig { params(name: String).void }
857-
attr_writer :name
858-
859-
# An object containing the file or file version's `id` (versionId) and `name`.
860-
sig { params(id: String, name: String).returns(T.attached_class) }
861-
def self.new(
862-
# Unique identifier of the file version.
863-
id: nil,
864-
# Name of the file version.
865-
name: nil
866-
)
867-
end
868-
869-
sig { override.returns({ id: String, name: String }) }
870-
def to_hash
871-
end
872-
end
873779
end
874780
end
875781
end

0 commit comments

Comments
 (0)