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 +4 -4
- data/CHANGELOG.md +57 -6
- data/README.en.md +164 -1138
- data/README.md +29 -24
- data/docs/API_REFERENCE.md +113 -137
- 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: a54cde9279319d2f6ddb19d388233ba2c84c8f4e511da1080c053d38a81edb6f
|
|
4
|
+
data.tar.gz: 05d0fca6542219eb98dc22603227fcc5967d2b5c0d5b9ff20c3bae95736ad576
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
10
|
-
- Document watchers, signer capacities (`sign_as`), notification delivery/open history, and envelope reminder cost estimates
|
|
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 (
|
|
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
|
|
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.
|