assinafy 2.3.0 → 2.4.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: 0f488fc7c84952ceacc1c347c568fa80236a16da81b3d0c52ce8c65059488316
4
- data.tar.gz: 407ed8967da231155348739babf34033185c7eae926dccccbb18f8c1669cfc25
3
+ metadata.gz: a54cde9279319d2f6ddb19d388233ba2c84c8f4e511da1080c053d38a81edb6f
4
+ data.tar.gz: 05d0fca6542219eb98dc22603227fcc5967d2b5c0d5b9ff20c3bae95736ad576
5
5
  SHA512:
6
- metadata.gz: c4bc9ae570a8e0807194a76d70064b90f775988c16298dfe910370e991ee07fc61f108feae018fee2c37b5f677bd8146287d3eddbb0f1f144b059db10a5e3f31
7
- data.tar.gz: 355bc37d3b84d6c5104e6b5f6563dc29f4ebea978709b027c6729f4cc17624d1435a7027f03c25ebabe7bcedf228d45b99f706df481e21689820822b5a0f452b
6
+ metadata.gz: 7c92693869e32acd3f7ba39ec845d43e29c4d94f90f9d28960c58a8af70e27825a253dfc78ee53020a26706d9b283d36ecb31cb8658a542e18cc851af7c50cd4
7
+ data.tar.gz: 6587a7eb34e4b8a7dba0972c44cf5e5337a348de2861c0fa7a901996ba82c8cb93eee5942b8f2aed44d9af2277e4d4b2fc04a6d69eb1b3603ccbe516d3246933
data/CHANGELOG.md CHANGED
@@ -2,12 +2,64 @@
2
2
 
3
3
  All notable changes to the `assinafy` Ruby gem are documented here.
4
4
 
5
+ ## [2.4.1] - 2026-12-02
6
+
7
+ ### Changed
8
+
9
+ - The API reference and pinned contract describe the current 147-operation v1 API.
10
+ - GitHub Actions use `ruby/setup-ruby` 1.345.0 and `configure-rubygems-credentials` 2.2.0.
11
+
12
+ ## [2.4.0] - 2026-11-30
13
+
14
+ ### Added
15
+
16
+ - `DocumentResource#cancel` stops a document that is out for signature or awaiting identity review and keeps it,
17
+ with its files and history, as `rejected_by_user`.
18
+ - Document uploads accept DOC, DOCX and ODT files, which the API converts to PDF.
19
+ - Signature and initial images can be JPEG as well as PNG.
20
+ - `Client#upload_and_request_signatures` accepts each signer's `verification_method`, `notification_methods`,
21
+ `step`, `sign_as` and `embedded`, plus `max_total_credits:`, and checks that every signer has the email or
22
+ WhatsApp number its notification needs before anything is uploaded.
23
+ - `docs/GUIDE.md`, the end-to-end integration guide with the calls for every resource.
24
+ - CI validates the syntax of the shipped RBS signatures.
25
+
26
+ ### Changed
27
+
28
+ - The default timeout is 60 seconds, so a signed page render that waits up to 30 seconds can answer in time.
29
+ - `OAuthResource#authorization_server_metadata` without a URL discovers the authorization server from the
30
+ protected-resource metadata.
31
+ - `Assinafy::OAuth.authorization_url` requires at least one scope.
32
+ - `SignerDocumentResource#download` requires `signer_access_code:` and serves only the `original` artifact.
33
+ - `SignerResource#confirm_data` sends only the email, WhatsApp number and terms acceptance that the API reads.
34
+ - Tag colors are sent without a leading `#`.
35
+ - Account updates and notification-policy updates reject an empty body before a request.
36
+ - Page sizes are no longer capped locally; the API answers at most 50 rows a page.
37
+ - Programming errors raised while sending a request propagate unchanged instead of being wrapped in
38
+ `Assinafy::Error`; transport and response-parsing failures are still wrapped.
39
+ - Cost documentation follows the plan-dependent prices and the `FreePlanEmailLimit` refusal.
40
+
41
+ ### Removed
42
+
43
+ - `Client#auth` and `AuthResource`: login, password, two-factor, social-login and API-key operations.
44
+ Authenticate with an API key or an OAuth client created in the Assinafy app; `token:` takes an OAuth access
45
+ token.
46
+
47
+ ### Fixed
48
+
49
+ - `ContractResource#get` and `#related` return `nil` only when the document has no contract terms; an unknown
50
+ document raises `ApiError`.
51
+ - Contract `metadata` keys are sent exactly as given.
52
+ - `DocumentResource#wait_until_ready` treats `certificating` and `pending_identity_review` as ready.
53
+ - Document and signer-document searches keep a `search:` filter passed in parameters when no query is given.
54
+ - Assignment signers treat `embedded: nil` as omitted, and a collect page may carry no fields.
55
+ - Signer updates resolve the `phone` and `name` aliases once, so an explicit canonical value always wins.
56
+
5
57
  ## [2.3.0] - 2026-11-24
6
58
 
7
59
  ### Added
8
60
 
9
- - Scheduled assignment and envelope creation, listing, cancellation and immediate delivery for environments that publish scheduled sends.
10
- - Document watchers, signer capacities (`sign_as`), notification delivery/open history, and envelope reminder cost estimates on staging.
61
+ - Scheduled assignment and envelope creation, listing, cancellation and immediate delivery.
62
+ - Document watchers, signer capacities (`sign_as`), notification delivery/open history, and envelope reminder cost estimates.
11
63
 
12
64
  ### Fixed
13
65
 
@@ -176,7 +228,7 @@ All notable changes to the `assinafy` Ruby gem are documented here.
176
228
  - The OAuth guides cover refresh-token rotation (every refresh returns a new refresh token valid for 30 days and
177
229
  retires the old one): storing the new tokens and rebuilding the client, never resending a refresh token after
178
230
  an ambiguous failure, and revoking the refresh token currently stored on disconnect. They also cover checking
179
- `state` and `iss` against the values stored for each authorization attempt (the sandbox has its own issuer)
231
+ `state` and `iss` against the values stored for each authorization attempt (each environment has its own issuer)
180
232
  and finding the connected workspace through `GET /accounts`.
181
233
 
182
234
  ## 1.8.1
@@ -311,7 +363,7 @@ All notable changes to the `assinafy` Ruby gem are documented here.
311
363
  - `AuthResource#link_social_login` (`POST /auth/link-social-login`).
312
364
  - `SignerResource#upload_signature` accepts an optional `reuse:` flag.
313
365
  - An opt-in live integration suite (`spec/integration/`, gated by `ASSINAFY_LIVE=1`)
314
- that drives representative workflows against the sandbox and self-cleans.
366
+ that drives representative workflows against a live workspace and self-cleans.
315
367
  - A `.github/dependabot.yml` (bundler + github-actions) so dependency advisories are
316
368
  caught automatically.
317
369
 
@@ -374,8 +426,7 @@ documentation at <https://api.assinafy.com.br/v1/docs>.
374
426
  `event_data` is deprecated in favor of `#event_payload`/`#event_object`.
375
427
  - `DocumentResource#send_token` validates `recipient`/`channel` before the request.
376
428
  - `SignerResource#find_by_email` now paginates through all result pages instead of
377
- relying on a single oversized page (the API clamps `per-page` to its own maximum —
378
- observed as 50 on the sandbox).
429
+ relying on a single oversized page (the API clamps `per-page` to its own maximum of 50).
379
430
  - `Client#upload_and_request_signatures` raises a clear `ApiError` if a created
380
431
  signer comes back without an ID, rather than building an assignment with `nil` IDs.
381
432
  - `TagResource#update` rejects an empty payload or a blank name before issuing a no-op PUT.