Skip to content

Commit e3f5264

Browse files
feat(api): manual updates
1 parent ebaaa42 commit e3f5264

21 files changed

+4106
-4
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-103a28182099d9866bc8c40db00f3356fe5be36302874e7ee84ee4fd2f593859.yml
3-
openapi_spec_hash: 30241efa79f9aab6e430c29383d9a2cf
4-
config_hash: 4ab8d35881cc0191126ff443317e03ba
1+
configured_endpoints: 9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-3f6d4c0f819a0d3128951d315ad216df22050fbc47c5f601d261d56f8b1d80a5.yml
3+
openapi_spec_hash: 8e7953259a1b6bd7440a780eccad1742
4+
config_hash: 6ce904be333b502d5fd8b746088aad6d

lib/brand_dev.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@
6262
require_relative "brand_dev/models/brand_retrieve_naics_response"
6363
require_relative "brand_dev/models/brand_retrieve_params"
6464
require_relative "brand_dev/models/brand_retrieve_response"
65+
require_relative "brand_dev/models/brand_screenshot_params"
66+
require_relative "brand_dev/models/brand_screenshot_response"
6567
require_relative "brand_dev/models/brand_search_params"
6668
require_relative "brand_dev/models/brand_search_response"
69+
require_relative "brand_dev/models/brand_styleguide_params"
70+
require_relative "brand_dev/models/brand_styleguide_response"
6771
require_relative "brand_dev/models"
6872
require_relative "brand_dev/resources/brand"

lib/brand_dev/models.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ module BrandDev
5151

5252
BrandRetrieveParams = BrandDev::Models::BrandRetrieveParams
5353

54+
BrandScreenshotParams = BrandDev::Models::BrandScreenshotParams
55+
5456
BrandSearchParams = BrandDev::Models::BrandSearchParams
57+
58+
BrandStyleguideParams = BrandDev::Models::BrandStyleguideParams
5559
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# frozen_string_literal: true
2+
3+
module BrandDev
4+
module Models
5+
# @see BrandDev::Resources::Brand#screenshot
6+
class BrandScreenshotParams < BrandDev::Internal::Type::BaseModel
7+
extend BrandDev::Internal::Type::RequestParameters::Converter
8+
include BrandDev::Internal::Type::RequestParameters
9+
10+
# @!attribute domain
11+
# Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The
12+
# domain will be automatically normalized and validated.
13+
#
14+
# @return [String]
15+
required :domain, String
16+
17+
# @!attribute full_screenshot
18+
# Optional parameter to determine screenshot type. If 'true', takes a full page
19+
# screenshot capturing all content. If 'false' or not provided, takes a viewport
20+
# screenshot (standard browser view).
21+
#
22+
# @return [Symbol, BrandDev::Models::BrandScreenshotParams::FullScreenshot, nil]
23+
optional :full_screenshot, enum: -> { BrandDev::BrandScreenshotParams::FullScreenshot }
24+
25+
# @!method initialize(domain:, full_screenshot: nil, request_options: {})
26+
# Some parameter documentations has been truncated, see
27+
# {BrandDev::Models::BrandScreenshotParams} for more details.
28+
#
29+
# @param domain [String] Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The domai
30+
#
31+
# @param full_screenshot [Symbol, BrandDev::Models::BrandScreenshotParams::FullScreenshot] Optional parameter to determine screenshot type. If 'true', takes a full page sc
32+
#
33+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
34+
35+
# Optional parameter to determine screenshot type. If 'true', takes a full page
36+
# screenshot capturing all content. If 'false' or not provided, takes a viewport
37+
# screenshot (standard browser view).
38+
module FullScreenshot
39+
extend BrandDev::Internal::Type::Enum
40+
41+
TRUE = :true
42+
FALSE = :false
43+
44+
# @!method self.values
45+
# @return [Array<Symbol>]
46+
end
47+
end
48+
end
49+
end
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# frozen_string_literal: true
2+
3+
module BrandDev
4+
module Models
5+
# @see BrandDev::Resources::Brand#screenshot
6+
class BrandScreenshotResponse < BrandDev::Internal::Type::BaseModel
7+
# @!attribute code
8+
# HTTP status code
9+
#
10+
# @return [Integer, nil]
11+
optional :code, Integer
12+
13+
# @!attribute domain
14+
# The normalized domain that was processed
15+
#
16+
# @return [String, nil]
17+
optional :domain, String
18+
19+
# @!attribute screenshot
20+
# Public URL of the uploaded screenshot image
21+
#
22+
# @return [String, nil]
23+
optional :screenshot, String
24+
25+
# @!attribute screenshot_type
26+
# Type of screenshot that was captured
27+
#
28+
# @return [Symbol, BrandDev::Models::BrandScreenshotResponse::ScreenshotType, nil]
29+
optional :screenshot_type,
30+
enum: -> { BrandDev::Models::BrandScreenshotResponse::ScreenshotType },
31+
api_name: :screenshotType
32+
33+
# @!attribute status
34+
# Status of the response, e.g., 'ok'
35+
#
36+
# @return [String, nil]
37+
optional :status, String
38+
39+
# @!method initialize(code: nil, domain: nil, screenshot: nil, screenshot_type: nil, status: nil)
40+
# @param code [Integer] HTTP status code
41+
#
42+
# @param domain [String] The normalized domain that was processed
43+
#
44+
# @param screenshot [String] Public URL of the uploaded screenshot image
45+
#
46+
# @param screenshot_type [Symbol, BrandDev::Models::BrandScreenshotResponse::ScreenshotType] Type of screenshot that was captured
47+
#
48+
# @param status [String] Status of the response, e.g., 'ok'
49+
50+
# Type of screenshot that was captured
51+
#
52+
# @see BrandDev::Models::BrandScreenshotResponse#screenshot_type
53+
module ScreenshotType
54+
extend BrandDev::Internal::Type::Enum
55+
56+
VIEWPORT = :viewport
57+
FULL_PAGE = :fullPage
58+
59+
# @!method self.values
60+
# @return [Array<Symbol>]
61+
end
62+
end
63+
end
64+
end
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# frozen_string_literal: true
2+
3+
module BrandDev
4+
module Models
5+
# @see BrandDev::Resources::Brand#styleguide
6+
class BrandStyleguideParams < BrandDev::Internal::Type::BaseModel
7+
extend BrandDev::Internal::Type::RequestParameters::Converter
8+
include BrandDev::Internal::Type::RequestParameters
9+
10+
# @!attribute domain
11+
# Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
12+
# domain will be automatically normalized and validated.
13+
#
14+
# @return [String]
15+
required :domain, String
16+
17+
# @!attribute timeout_ms
18+
# Optional timeout in milliseconds for the request. If the request takes longer
19+
# than this value, it will be aborted with a 408 status code. Maximum allowed
20+
# value is 300000ms (5 minutes).
21+
#
22+
# @return [Integer, nil]
23+
optional :timeout_ms, Integer
24+
25+
# @!method initialize(domain:, timeout_ms: nil, request_options: {})
26+
# Some parameter documentations has been truncated, see
27+
# {BrandDev::Models::BrandStyleguideParams} for more details.
28+
#
29+
# @param domain [String] Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
30+
#
31+
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
32+
#
33+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
34+
end
35+
end
36+
end

0 commit comments

Comments
 (0)