bzapper 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a8e0c8a695ae7a7806613f902d9355715a0239d1f34b54bd795b9360ad54466
4
- data.tar.gz: d40cdd05ab273cc3bf98b9e14c5aabf23c4ff2ac44dc13f5bbb2fbcf855c40ab
3
+ metadata.gz: 316cbd15dfc092ac463fe8962cc28654cf759bd05b4beff64e6a416d1efb9bd0
4
+ data.tar.gz: 0a5366e02dde82845b9bfcb3052cf3729c65ff5768f5e2fc2ce09717fed6545e
5
5
  SHA512:
6
- metadata.gz: 0e79610714b42f6f9fd5e6d62ce9ef2864d351922885aec6a2a6aef979dbbc54a8daf7636b06c49ab93a4a40ab83868ad9a8779a69310c5a6b200d040706dded
7
- data.tar.gz: 663ff3dc3a6a50404724745ad2dbbeadf4b97d912b28c706b2b63822b9c0ee53119752f03dd8189cb6cf8e33a81541e9ca689757241899fd4abdd778770f92d4
6
+ metadata.gz: 6b0eaebe936d54f02ef34fb9157a2e586b4845b5e516618b6e0cf3035e915a744b53930bf12435f138ebba738bd4f771b20e4cae29720d750cd168dfd00a72dd
7
+ data.tar.gz: 553b87a95d514d5582b6a64cc59abf2d87ee5a0361eb3ce5e509726b92102ebd9d69759f521fd93924b5af7e6252f0359871ec055e0d62e1bbd39a7266566f3a
data/README.md CHANGED
@@ -10,13 +10,13 @@ Zero dependências de runtime (só biblioteca padrão: `net/http`, `json`, `open
10
10
  ## Instalação
11
11
 
12
12
  ```bash
13
- gem install bzapper -v 0.9.0
13
+ gem install bzapper -v 0.9.1
14
14
  ```
15
15
 
16
16
  Ou no `Gemfile` — **fixe a versão exata** (cada release declara se muda a superfície pública):
17
17
 
18
18
  ```ruby
19
- gem "bzapper", "0.9.0"
19
+ gem "bzapper", "0.9.1"
20
20
  ```
21
21
 
22
22
  ## Hello world
@@ -871,6 +871,12 @@ module Bzapper
871
871
  # language, with variations.
872
872
  # @param expiry_minutes [Integer, nil] (corpo) Optional — mentions the expiry in the generated
873
873
  # text.
874
+ # @param template [String, nil] (corpo) OFFICIAL RAIL ONLY, optional. Name of an approved
875
+ # AUTHENTICATION template to carry the code — used even inside the 24-hour window. Without it,
876
+ # the project's authentication template is used only when the window is closed. Ignored on the
877
+ # unofficial rail.
878
+ # @param language [String, nil] (corpo) Optional language of the authentication template (e.g.
879
+ # `pt_BR`).
874
880
  # @param idempotency_key [String, nil] chave de idempotência (senão a SDK gera uma).
875
881
  # @param timeout [Numeric, nil] segundos por tentativa (padrão: o do cliente).
876
882
  # @return [Hash, Array, nil] o JSON da resposta, inteiro (nil em 204).
@@ -878,7 +884,8 @@ module Bzapper
878
884
  def send_otp(to:, code:, instance_id: UNSET, pool_id: UNSET, sticky: UNSET,
879
885
  quoted_message_id: UNSET, quoted_participant: UNSET, client_reference: UNSET,
880
886
  mentions: UNSET, scheduled_at: UNSET, groups: UNSET, tags: UNSET, force: UNSET,
881
- body: UNSET, expiry_minutes: UNSET, idempotency_key: nil, timeout: nil)
887
+ body: UNSET, expiry_minutes: UNSET, template: UNSET, language: UNSET,
888
+ idempotency_key: nil, timeout: nil)
882
889
  payload = compact(
883
890
  "instance_id" => instance_id,
884
891
  "pool_id" => pool_id,
@@ -894,7 +901,9 @@ module Bzapper
894
901
  "force" => force,
895
902
  "code" => code,
896
903
  "body" => body,
897
- "expiry_minutes" => expiry_minutes
904
+ "expiry_minutes" => expiry_minutes,
905
+ "template" => template,
906
+ "language" => language
898
907
  )
899
908
  request("POST",
900
909
  "/messages/otp",
@@ -3,5 +3,5 @@
3
3
  module Bzapper
4
4
  # Versão da gem. O `scripts/release-sdks.sh` do monorepo bumpa a linha abaixo por regex
5
5
  # (ancorada no início da linha) e o `bzapper.gemspec` lê daqui — não mude o formato dela.
6
- VERSION = "0.9.0"
6
+ VERSION = "0.9.1"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bzapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Berni Software