Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.25.0"
".": "0.26.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 16
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-98ef96cef5b06ad7a29dadba48258da7d9ea0a2b3938dc9e714ae06eb9afa1a3.yml
openapi_spec_hash: 9e957a30999dff7d4ada925e437bd202
config_hash: c3aaaa9794dba44d524c06591ab17894
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-2cdd67823c6ac9d1ab68032a695c31a098ad285ffb0c073b9dfc00afe5de9b88.yml
openapi_spec_hash: ac8a965beb9b667b6204a5c573507219
config_hash: 4cd3173ea1cce7183640aae49cfbb374
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.26.0 (2026-02-23)

Full Changelog: [v0.25.0...v0.26.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.25.0...v0.26.0)

### Features

* **api:** manual updates ([bfe9b29](https://github.com/brand-dot-dev/ruby-sdk/commit/bfe9b298f2c51f4d2762da550344251c2b0b7256))

## 0.25.0 (2026-02-22)

Full Changelog: [v0.24.0...v0.25.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.24.0...v0.25.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
brand.dev (0.25.0)
brand.dev (0.26.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "brand.dev", "~> 0.25.0"
gem "brand.dev", "~> 0.26.0"
```

<!-- x-release-please-end -->
Expand Down
8 changes: 8 additions & 0 deletions lib/brand_dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,13 @@
require_relative "brand_dev/models/brand_screenshot_response"
require_relative "brand_dev/models/brand_styleguide_params"
require_relative "brand_dev/models/brand_styleguide_response"
require_relative "brand_dev/models/brand_web_scrape_html_params"
require_relative "brand_dev/models/brand_web_scrape_html_response"
require_relative "brand_dev/models/brand_web_scrape_images_params"
require_relative "brand_dev/models/brand_web_scrape_images_response"
require_relative "brand_dev/models/brand_web_scrape_md_params"
require_relative "brand_dev/models/brand_web_scrape_md_response"
require_relative "brand_dev/models/brand_web_scrape_sitemap_params"
require_relative "brand_dev/models/brand_web_scrape_sitemap_response"
require_relative "brand_dev/models"
require_relative "brand_dev/resources/brand"
8 changes: 8 additions & 0 deletions lib/brand_dev/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,12 @@ module BrandDev
BrandScreenshotParams = BrandDev::Models::BrandScreenshotParams

BrandStyleguideParams = BrandDev::Models::BrandStyleguideParams

BrandWebScrapeHTMLParams = BrandDev::Models::BrandWebScrapeHTMLParams

BrandWebScrapeImagesParams = BrandDev::Models::BrandWebScrapeImagesParams

BrandWebScrapeMdParams = BrandDev::Models::BrandWebScrapeMdParams

BrandWebScrapeSitemapParams = BrandDev::Models::BrandWebScrapeSitemapParams
end
22 changes: 22 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_html_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_html
class BrandWebScrapeHTMLParams < BrandDev::Internal::Type::BaseModel
extend BrandDev::Internal::Type::RequestParameters::Converter
include BrandDev::Internal::Type::RequestParameters

# @!attribute url
# Full URL to scrape (must include http:// or https:// protocol)
#
# @return [String]
required :url, String

# @!method initialize(url:, request_options: {})
# @param url [String] Full URL to scrape (must include http:// or https:// protocol)
#
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
end
end
end
45 changes: 45 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_html_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_html
class BrandWebScrapeHTMLResponse < BrandDev::Internal::Type::BaseModel
# @!attribute html
# Raw HTML content of the page
#
# @return [String]
required :html, String

# @!attribute success
# Indicates success
#
# @return [Boolean, BrandDev::Models::BrandWebScrapeHTMLResponse::Success]
required :success, enum: -> { BrandDev::Models::BrandWebScrapeHTMLResponse::Success }

# @!attribute url
# The URL that was scraped
#
# @return [String]
required :url, String

# @!method initialize(html:, success:, url:)
# @param html [String] Raw HTML content of the page
#
# @param success [Boolean, BrandDev::Models::BrandWebScrapeHTMLResponse::Success] Indicates success
#
# @param url [String] The URL that was scraped

# Indicates success
#
# @see BrandDev::Models::BrandWebScrapeHTMLResponse#success
module Success
extend BrandDev::Internal::Type::Enum

TRUE = true

# @!method self.values
# @return [Array<Boolean>]
end
end
end
end
22 changes: 22 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_images_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_images
class BrandWebScrapeImagesParams < BrandDev::Internal::Type::BaseModel
extend BrandDev::Internal::Type::RequestParameters::Converter
include BrandDev::Internal::Type::RequestParameters

# @!attribute url
# Full URL to scrape images from (must include http:// or https:// protocol)
#
# @return [String]
required :url, String

# @!method initialize(url:, request_options: {})
# @param url [String] Full URL to scrape images from (must include http:// or https:// protocol)
#
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
end
end
end
111 changes: 111 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_images_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_images
class BrandWebScrapeImagesResponse < BrandDev::Internal::Type::BaseModel
# @!attribute images
# Array of scraped images
#
# @return [Array<BrandDev::Models::BrandWebScrapeImagesResponse::Image>]
required :images,
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandWebScrapeImagesResponse::Image] }

# @!attribute success
# Indicates success
#
# @return [Boolean, BrandDev::Models::BrandWebScrapeImagesResponse::Success]
required :success, enum: -> { BrandDev::Models::BrandWebScrapeImagesResponse::Success }

# @!attribute url
# The URL that was scraped
#
# @return [String]
required :url, String

# @!method initialize(images:, success:, url:)
# @param images [Array<BrandDev::Models::BrandWebScrapeImagesResponse::Image>] Array of scraped images
#
# @param success [Boolean, BrandDev::Models::BrandWebScrapeImagesResponse::Success] Indicates success
#
# @param url [String] The URL that was scraped

class Image < BrandDev::Internal::Type::BaseModel
# @!attribute alt
# Alt text of the image, or null if not present
#
# @return [String, nil]
required :alt, String, nil?: true

# @!attribute element
# The HTML element the image was found in
#
# @return [Symbol, BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element]
required :element, enum: -> { BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element }

# @!attribute src
# The image source - can be a URL, inline HTML (for SVGs), or a base64 data URI
#
# @return [String]
required :src, String

# @!attribute type
# The type/format of the src value
#
# @return [Symbol, BrandDev::Models::BrandWebScrapeImagesResponse::Image::Type]
required :type, enum: -> { BrandDev::Models::BrandWebScrapeImagesResponse::Image::Type }

# @!method initialize(alt:, element:, src:, type:)
# @param alt [String, nil] Alt text of the image, or null if not present
#
# @param element [Symbol, BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element] The HTML element the image was found in
#
# @param src [String] The image source - can be a URL, inline HTML (for SVGs), or a base64 data URI
#
# @param type [Symbol, BrandDev::Models::BrandWebScrapeImagesResponse::Image::Type] The type/format of the src value

# The HTML element the image was found in
#
# @see BrandDev::Models::BrandWebScrapeImagesResponse::Image#element
module Element
extend BrandDev::Internal::Type::Enum

IMG = :img
SVG = :svg
LINK = :link
SOURCE = :source
VIDEO = :video

# @!method self.values
# @return [Array<Symbol>]
end

# The type/format of the src value
#
# @see BrandDev::Models::BrandWebScrapeImagesResponse::Image#type
module Type
extend BrandDev::Internal::Type::Enum

URL = :url
HTML = :html
BASE64 = :base64

# @!method self.values
# @return [Array<Symbol>]
end
end

# Indicates success
#
# @see BrandDev::Models::BrandWebScrapeImagesResponse#success
module Success
extend BrandDev::Internal::Type::Enum

TRUE = true

# @!method self.values
# @return [Array<Boolean>]
end
end
end
end
42 changes: 42 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_md_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_md
class BrandWebScrapeMdParams < BrandDev::Internal::Type::BaseModel
extend BrandDev::Internal::Type::RequestParameters::Converter
include BrandDev::Internal::Type::RequestParameters

# @!attribute url
# Full URL to scrape and convert to markdown (must include http:// or https://
# protocol)
#
# @return [String]
required :url, String

# @!attribute include_images
# Include image references in Markdown output
#
# @return [Boolean, nil]
optional :include_images, BrandDev::Internal::Type::Boolean

# @!attribute include_links
# Preserve hyperlinks in Markdown output
#
# @return [Boolean, nil]
optional :include_links, BrandDev::Internal::Type::Boolean

# @!method initialize(url:, include_images: nil, include_links: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {BrandDev::Models::BrandWebScrapeMdParams} for more details.
#
# @param url [String] Full URL to scrape and convert to markdown (must include http:// or https:// pro
#
# @param include_images [Boolean] Include image references in Markdown output
#
# @param include_links [Boolean] Preserve hyperlinks in Markdown output
#
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
end
end
end
45 changes: 45 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_md_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_md
class BrandWebScrapeMdResponse < BrandDev::Internal::Type::BaseModel
# @!attribute markdown
# Page content converted to GitHub Flavored Markdown
#
# @return [String]
required :markdown, String

# @!attribute success
# Indicates success
#
# @return [Boolean, BrandDev::Models::BrandWebScrapeMdResponse::Success]
required :success, enum: -> { BrandDev::Models::BrandWebScrapeMdResponse::Success }

# @!attribute url
# The URL that was scraped
#
# @return [String]
required :url, String

# @!method initialize(markdown:, success:, url:)
# @param markdown [String] Page content converted to GitHub Flavored Markdown
#
# @param success [Boolean, BrandDev::Models::BrandWebScrapeMdResponse::Success] Indicates success
#
# @param url [String] The URL that was scraped

# Indicates success
#
# @see BrandDev::Models::BrandWebScrapeMdResponse#success
module Success
extend BrandDev::Internal::Type::Enum

TRUE = true

# @!method self.values
# @return [Array<Boolean>]
end
end
end
end
26 changes: 26 additions & 0 deletions lib/brand_dev/models/brand_web_scrape_sitemap_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# frozen_string_literal: true

module BrandDev
module Models
# @see BrandDev::Resources::Brand#web_scrape_sitemap
class BrandWebScrapeSitemapParams < BrandDev::Internal::Type::BaseModel
extend BrandDev::Internal::Type::RequestParameters::Converter
include BrandDev::Internal::Type::RequestParameters

# @!attribute domain
# Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
# automatically normalized and validated.
#
# @return [String]
required :domain, String

# @!method initialize(domain:, request_options: {})
# Some parameter documentations has been truncated, see
# {BrandDev::Models::BrandWebScrapeSitemapParams} for more details.
#
# @param domain [String] Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be auto
#
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
end
end
end
Loading
Loading