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 +4 -4
- data/CHANGELOG.md +50 -6
- data/README.en.md +164 -1138
- data/README.md +29 -24
- data/docs/API_REFERENCE.md +114 -130
- data/docs/GUIDE.md +1079 -0
- data/lib/assinafy/client.rb +79 -45
- data/lib/assinafy/configuration.rb +8 -7
- data/lib/assinafy/oauth.rb +12 -15
- data/lib/assinafy/resources/account_resource.rb +13 -10
- data/lib/assinafy/resources/assignment_resource.rb +63 -92
- data/lib/assinafy/resources/base_resource.rb +66 -114
- data/lib/assinafy/resources/contract_resource.rb +17 -33
- data/lib/assinafy/resources/document_resource.rb +73 -61
- data/lib/assinafy/resources/envelope_resource.rb +10 -12
- data/lib/assinafy/resources/field_resource.rb +3 -11
- data/lib/assinafy/resources/oauth_resource.rb +26 -20
- data/lib/assinafy/resources/scheduled_send_resource.rb +10 -5
- data/lib/assinafy/resources/signer_document_resource.rb +24 -14
- data/lib/assinafy/resources/signer_resource.rb +46 -72
- data/lib/assinafy/resources/tag_resource.rb +16 -22
- data/lib/assinafy/resources/template_resource.rb +5 -6
- data/lib/assinafy/resources/user_resource.rb +7 -2
- data/lib/assinafy/resources/webhook_resource.rb +55 -47
- data/lib/assinafy/support/webhook_verifier.rb +2 -2
- data/lib/assinafy/utils.rb +14 -21
- data/lib/assinafy/validation.rb +80 -0
- data/lib/assinafy/version.rb +1 -1
- data/lib/assinafy.rb +1 -1
- data/sig/assinafy.rbs +7 -30
- metadata +6 -6
- data/lib/assinafy/resources/auth_resource.rb +0 -502
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77c7c406424e80502d197d6b11e40e8b23ea60a6dd02df04c60be5114fbd8e43
|
|
4
|
+
data.tar.gz: 712432b4ec51661b989a0d38e6a12387b697121576e1446e70c6d651d8042320
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
10
|
-
- Document watchers, signer capacities (`sign_as`), notification delivery/open history, and envelope reminder cost estimates
|
|
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 (
|
|
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
|
|
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.
|