Skip to content
Open
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 @@
{
".": "1.2.0"
".": "1.3.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-05a30711e18b0023520a660352d75595a050d1299bf0e3ee4a8cf55ded36aea2.yml
openapi_spec_hash: 8d0e1115a7d864f27c55cec3255d1e77
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-41fdbb36b66c713e8073c04937010aa4b861a99b105966856e211c9aaee1fe34.yml
openapi_spec_hash: daadd24dfc43587bb323a137089edd7d
config_hash: 91cf2dcefb99c39eb9cd3e98e15d6011
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 1.3.0 (2026-04-17)

Full Changelog: [v1.2.0...v1.3.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v1.2.0...v1.3.0)

### Features

* **api:** api update ([51cf238](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/51cf238020c1726eed5601387902175c0a911963))
* **api:** api update ([d7243b6](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/d7243b67c34ed41991ffbfd05c20c3fe91bf6b7a))
* **api:** api update ([7dbc953](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/7dbc953284d17ffdab94cc0cce1c1577bb5bb37d))
* **api:** api update ([fdc7418](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/fdc741818cf6202016e5b94278590f8d1aa44079))
* **api:** api update ([3613e92](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/3613e92029d5702a7b86753162c3dddda5ef88d2))
* **api:** api update ([c523c67](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/c523c67ab269e7b2c2d6f6f50d93960d1a14da09))
* **api:** api update ([22d1e77](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/22d1e77b4b4cfd0df257f1e8018187de16ea93a0))
* **api:** api update ([f07badc](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/f07badc8bf3ef80fe032793339c05cb1f74fe2c2))


### Bug Fixes

* multipart encoding for file arrays ([a4d91a7](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/a4d91a72d7bb1a80f9d24c9914e744437eaecbb3))

## 1.2.0 (2026-04-03)

Full Changelog: [v1.1.0...v1.2.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v1.1.0...v1.2.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 (1.2.0)
brand.dev (1.3.0)
cgi
connection_pool

Expand Down
12 changes: 6 additions & 6 deletions 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", "~> 1.2.0"
gem "brand.dev", "~> 1.3.0"
```

<!-- x-release-please-end -->
Expand Down Expand Up @@ -206,25 +206,25 @@ brand_dev.brand.retrieve(**params)
Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:

```ruby
# :albanian
puts(BrandDev::BrandRetrieveParams::ForceLanguage::ALBANIAN)
# :afrikaans
puts(BrandDev::BrandRetrieveParams::ForceLanguage::AFRIKAANS)

# Revealed type: `T.all(BrandDev::BrandRetrieveParams::ForceLanguage, Symbol)`
T.reveal_type(BrandDev::BrandRetrieveParams::ForceLanguage::ALBANIAN)
T.reveal_type(BrandDev::BrandRetrieveParams::ForceLanguage::AFRIKAANS)
```

Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:

```ruby
# Using the enum constants preserves the tagged type information:
brand_dev.brand.retrieve(
force_language: BrandDev::BrandRetrieveParams::ForceLanguage::ALBANIAN,
force_language: BrandDev::BrandRetrieveParams::ForceLanguage::AFRIKAANS,
# …
)

# Literal values are also permissible:
brand_dev.brand.retrieve(
force_language: :albanian,
force_language: :afrikaans,
# …
)
```
Expand Down
4 changes: 3 additions & 1 deletion lib/brand_dev/internal/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ def encode_query_params(query)
#
# @return [Array(String, Enumerable<String>)]
private def encode_multipart_streaming(body)
# rubocop:disable Style/CaseEquality
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
boundary = SecureRandom.urlsafe_base64(46)

Expand All @@ -619,7 +620,7 @@ def encode_query_params(query)
in Hash
body.each do |key, val|
case val
in Array if val.all? { primitive?(_1) }
in Array if val.all? { primitive?(_1) || BrandDev::Internal::Type::FileInput === _1 }
val.each do |v|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
end
Expand All @@ -635,6 +636,7 @@ def encode_query_params(query)

fused_io = fused_enum(strio) { closing.each(&:call) }
[boundary, fused_io]
# rubocop:enable Style/CaseEquality
end

# @api private
Expand Down
65 changes: 65 additions & 0 deletions lib/brand_dev/models/brand_identify_from_transaction_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,61 +346,126 @@ module CountryGl
module ForceLanguage
extend BrandDev::Internal::Type::Enum

AFRIKAANS = :afrikaans
ALBANIAN = :albanian
AMHARIC = :amharic
ARABIC = :arabic
ARMENIAN = :armenian
ASSAMESE = :assamese
AYMARA = :aymara
AZERI = :azeri
BASQUE = :basque
BELARUSIAN = :belarusian
BENGALI = :bengali
BOSNIAN = :bosnian
BULGARIAN = :bulgarian
BURMESE = :burmese
CANTONESE = :cantonese
CATALAN = :catalan
CEBUANO = :cebuano
CHINESE = :chinese
CORSICAN = :corsican
CROATIAN = :croatian
CZECH = :czech
DANISH = :danish
DUTCH = :dutch
ENGLISH = :english
ESPERANTO = :esperanto
ESTONIAN = :estonian
FARSI = :farsi
FIJIAN = :fijian
FINNISH = :finnish
FRENCH = :french
GALICIAN = :galician
GEORGIAN = :georgian
GERMAN = :german
GREEK = :greek
GUARANI = :guarani
GUJARATI = :gujarati
HAITIAN_CREOLE = :"haitian-creole"
HAUSA = :hausa
HAWAIIAN = :hawaiian
HEBREW = :hebrew
HINDI = :hindi
HMONG = :hmong
HUNGARIAN = :hungarian
ICELANDIC = :icelandic
IGBO = :igbo
INDONESIAN = :indonesian
IRISH = :irish
ITALIAN = :italian
JAPANESE = :japanese
JAVANESE = :javanese
KANNADA = :kannada
KAZAKH = :kazakh
KHMER = :khmer
KINYARWANDA = :kinyarwanda
KOREAN = :korean
KURDISH = :kurdish
KYRGYZ = :kyrgyz
LAO = :lao
LATIN = :latin
LATVIAN = :latvian
LINGALA = :lingala
LITHUANIAN = :lithuanian
LUXEMBOURGISH = :luxembourgish
MACEDONIAN = :macedonian
MALAGASY = :malagasy
MALAY = :malay
MALAYALAM = :malayalam
MALTESE = :maltese
MAORI = :maori
MARATHI = :marathi
MONGOLIAN = :mongolian
NEPALI = :nepali
NORWEGIAN = :norwegian
ODIA = :odia
OROMO = :oromo
PASHTO = :pashto
PIDGIN = :pidgin
POLISH = :polish
PORTUGUESE = :portuguese
PUNJABI = :punjabi
QUECHUA = :quechua
ROMANIAN = :romanian
RUSSIAN = :russian
SAMOAN = :samoan
SCOTTISH_GAELIC = :"scottish-gaelic"
SERBIAN = :serbian
SESOTHO = :sesotho
SHONA = :shona
SINDHI = :sindhi
SINHALA = :sinhala
SLOVAK = :slovak
SLOVENE = :slovene
SOMALI = :somali
SPANISH = :spanish
SUNDANESE = :sundanese
SWAHILI = :swahili
SWEDISH = :swedish
TAGALOG = :tagalog
TAJIK = :tajik
TAMIL = :tamil
TATAR = :tatar
TELUGU = :telugu
THAI = :thai
TIBETAN = :tibetan
TIGRINYA = :tigrinya
TONGAN = :tongan
TSWANA = :tswana
TURKISH = :turkish
TURKMEN = :turkmen
UKRAINIAN = :ukrainian
URDU = :urdu
UYGHUR = :uyghur
UZBEK = :uzbek
VIETNAMESE = :vietnamese
WELSH = :welsh
WOLOF = :wolof
XHOSA = :xhosa
YIDDISH = :yiddish
YORUBA = :yoruba
ZULU = :zulu

# @!method self.values
# @return [Array<Symbol>]
Expand Down
Loading
Loading