assinafy 2.2.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: 073433eee6179fd50ee1c3d99d4bff3e2f04f4129ad3275fc04f846e39b7d517
4
- data.tar.gz: e2af09f0adb1e6617b899edd87f8ade5d0b9cea2cf5dd3390042c6c03593e215
3
+ metadata.gz: 77c7c406424e80502d197d6b11e40e8b23ea60a6dd02df04c60be5114fbd8e43
4
+ data.tar.gz: 712432b4ec51661b989a0d38e6a12387b697121576e1446e70c6d651d8042320
5
5
  SHA512:
6
- metadata.gz: a177feaf3de3dd3ee8c61709e3dc18e9116cceafd78a99bf2d713f858291f7b6ae5c3dd27d32469a470ecfc09604bd02ac17aa68205a4c00707e7f93a3ce73dc
7
- data.tar.gz: ac13456281928324c7b80bee3c061648d3da5d5dcb67ba339383a561e794cffa0f07dbda8a94ee2ae9213efaaa653e9c7b2e35cb3803eeba6ef6c63aad078025
6
+ metadata.gz: 926b67bc0e23739b642ceba50ea7e8ecb8919f049a6ec70a89692ada55dfda00cf148572398ceee5900ed564e0e2e86ee7e69480c3fa694b90c1776981e2e967
7
+ data.tar.gz: a858ff44006be0b60ff25cdd0ec952138b7906a4e62e68ccea342f0d517f6fd9ab5f81dd06d7f6cef233e37db06299ecd95c4377f31e3f2a99ee914c88bd0fd1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,68 @@
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
+
50
+ ## [2.3.0] - 2026-11-24
51
+
52
+ ### Added
53
+
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.
56
+
57
+ ### Fixed
58
+
59
+ - Virtual assignments can be signed with an empty item array; collect items can carry empty String values.
60
+ - Signer updates preserve explicit null or empty contact and government-ID fields so they can be cleared.
61
+ - Single and batch field validation preserve explicit null values for optional fields.
62
+
63
+ ### Changed
64
+
65
+ - Development uses Ruby 4.0.10, including the latest Ruby security fixes.
66
+
5
67
  ## [2.2.0] - 2026-11-11
6
68
 
7
69
  ### Added
@@ -159,7 +221,7 @@ All notable changes to the `assinafy` Ruby gem are documented here.
159
221
  - The OAuth guides cover refresh-token rotation (every refresh returns a new refresh token valid for 30 days and
160
222
  retires the old one): storing the new tokens and rebuilding the client, never resending a refresh token after
161
223
  an ambiguous failure, and revoking the refresh token currently stored on disconnect. They also cover checking
162
- `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)
163
225
  and finding the connected workspace through `GET /accounts`.
164
226
 
165
227
  ## 1.8.1
@@ -294,7 +356,7 @@ All notable changes to the `assinafy` Ruby gem are documented here.
294
356
  - `AuthResource#link_social_login` (`POST /auth/link-social-login`).
295
357
  - `SignerResource#upload_signature` accepts an optional `reuse:` flag.
296
358
  - An opt-in live integration suite (`spec/integration/`, gated by `ASSINAFY_LIVE=1`)
297
- that drives representative workflows against the sandbox and self-cleans.
359
+ that drives representative workflows against a live workspace and self-cleans.
298
360
  - A `.github/dependabot.yml` (bundler + github-actions) so dependency advisories are
299
361
  caught automatically.
300
362
 
@@ -357,8 +419,7 @@ documentation at <https://api.assinafy.com.br/v1/docs>.
357
419
  `event_data` is deprecated in favor of `#event_payload`/`#event_object`.
358
420
  - `DocumentResource#send_token` validates `recipient`/`channel` before the request.
359
421
  - `SignerResource#find_by_email` now paginates through all result pages instead of
360
- relying on a single oversized page (the API clamps `per-page` to its own maximum —
361
- observed as 50 on the sandbox).
422
+ relying on a single oversized page (the API clamps `per-page` to its own maximum of 50).
362
423
  - `Client#upload_and_request_signatures` raises a clear `ApiError` if a created
363
424
  signer comes back without an ID, rather than building an assignment with `nil` IDs.
364
425
  - `TagResource#update` rejects an empty payload or a blank name before issuing a no-op PUT.