bzapper 0.13.0 → 0.14.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: 13d0b6718949379d3a764faaf77d13171e968757442090fa66f87ad93ecf5363
4
- data.tar.gz: c66b3dc08012d3d925303f62dbb79c934a46a5a16f8fc33de9d7514c2c7332f5
3
+ metadata.gz: acbc008bcbe9d64fbfc677ce7c4bb983e9992dce7e5f740820ac46b99038afc4
4
+ data.tar.gz: 6ef2f940824d4dbf77c4208708e9edad6d9d588ebc5cbe705f41ed32de9ca3c4
5
5
  SHA512:
6
- metadata.gz: '09dff9e7a1caa6906746089c3b33e228280cb8662e74042e6c73e2ff6cb7fe4077321f03fd2100fba844696ea13b3d3828ffdfef2ebf0f20888e6f0fb6a8c4a1'
7
- data.tar.gz: c20b0d40090ea71d6da210790c7d0eeb654f5ab700f1022a98efef66f1b280c790b6b05778b695c0427ca6b60400b90590b6e0924edda6e879fea29a17e6b4e8
6
+ metadata.gz: dcc54fe61cd1ad90d748d8855821a5bf50e743fee2993e9f8aec7b8a58fc5274d6ea1d03fd5e28b04737171bb67db268eb6d981faffd2a850a54e6d172c8df97
7
+ data.tar.gz: 3756d3975a329735a51b581fca8e996df6349ec30eeccf88e31facb86e1bcf81ca578f88bc59d4534252aa82326435fc82aa238771d8492b66b847a329275a48
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.13.0
13
+ gem install bzapper -v 0.14.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.13.0"
19
+ gem "bzapper", "0.14.1"
20
20
  ```
21
21
 
22
22
  ## Hello world
@@ -314,6 +314,21 @@ module Bzapper
314
314
  timeout: timeout)
315
315
  end
316
316
 
317
+ # Quality and messaging-limit history of one number. `GET /official/numbers/{id}/health`
318
+ #
319
+ # Every change of quality rating and messaging limit (from Meta's webhook or a live check),
320
+ # newest first — what explains why the limit dropped or when quality worsened. Repeated states
321
+ # are not history and are not recorded.
322
+ #
323
+ # @param id [String] parâmetro de caminho
324
+ # @param timeout [Numeric, nil] segundos por tentativa (padrão: o do cliente).
325
+ # @return [Hash, Array, nil] o JSON da resposta, inteiro (nil em 204).
326
+ # @raise [Bzapper::Error] resposta fora de 2xx ou falha de rede.
327
+ # @raise [ArgumentError] parâmetro de caminho vazio, "." ou "..".
328
+ def get_official_number_health(id, timeout: nil)
329
+ request("GET", "/official/numbers/#{segment(id, "id")}/health", timeout: timeout)
330
+ end
331
+
317
332
  # Disconnect one number. `DELETE /official/numbers/{id}`
318
333
  #
319
334
  # The conversation history stays: the mirror instance is archived, not deleted. Removing the
@@ -306,9 +306,9 @@ module Bzapper
306
306
  #
307
307
  # Must be an APPROVED template of the Authentication category or — until Meta releases that
308
308
  # category for the account (business verification + 2,000 daily limit) — a provisional Utility
309
- # template with a copy-code button and at most one body variable; the code goes in the variable
310
- # and in the button. An empty `template_id` clears the choice (the first approved Authentication
311
- # template is used again).
309
+ # template with exactly one body variable, which receives the code (Meta does not accept the
310
+ # copy-code button in Utility). An empty `template_id` clears the choice (the first approved
311
+ # Authentication template is used again).
312
312
  #
313
313
  # @param template_id [String, nil] (corpo) Empty clears the choice.
314
314
  # @param idempotency_key [String, nil] chave de idempotência (senão a SDK gera uma).
@@ -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.13.0"
6
+ VERSION = "0.14.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.13.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Berni Software