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