bzapper 0.13.0 → 0.14.0

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: 44067da186178cfce4bd82f70f3057a2e61ce61ab38db61d538f970a66304036
4
+ data.tar.gz: 0bcdb27ae8f2184bfc4aea8125e9f6bcff86b8487e9e3398bc0a5bc52137cead
5
5
  SHA512:
6
- metadata.gz: '09dff9e7a1caa6906746089c3b33e228280cb8662e74042e6c73e2ff6cb7fe4077321f03fd2100fba844696ea13b3d3828ffdfef2ebf0f20888e6f0fb6a8c4a1'
7
- data.tar.gz: c20b0d40090ea71d6da210790c7d0eeb654f5ab700f1022a98efef66f1b280c790b6b05778b695c0427ca6b60400b90590b6e0924edda6e879fea29a17e6b4e8
6
+ metadata.gz: ec2e9f839e328e17a4977c05d06517d9f8d8e1aae992d42fb778de06740c18a774f1c7dfb9e8d6984260fb394ef803af93730c1a4f85368c97e7b9bb641fc073
7
+ data.tar.gz: 165dab6da31497cf3fc7dbdea0f94b86f78a8e82de2378d32e8b19ea400ad5c9c35e3f6a8385c89893e405b610926e2562fe05df8469b2e787095c18e26333b3
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.0
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.0"
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
@@ -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.0"
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.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Berni Software