@assinafy/sdk 3.0.1 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.1.0] - 2026-11-24
11
+
12
+ ### Added
13
+
14
+ - Scheduled assignments and envelopes through `client.scheduledSends`, including
15
+ listing, cancellation and immediate dispatch on supported staging deployments.
16
+ - Document watchers, signer capacities, notification delivery/open history and
17
+ envelope reminder cost estimates on staging.
18
+ - Typed PNG/JPEG signature-image upload options.
19
+
20
+ ### Fixed
21
+
22
+ - Preserve and validate assignment `sign_as` on creation and cost estimation.
23
+ - Use current cost estimates for certificate pricing in integration guidance.
24
+ - Require Axios 1.21.1, including its updated redirect dependency minimum.
25
+ - Reject malformed webhook signature entries with extra comma-separated data.
26
+
27
+ ### Changed
28
+
29
+ - GitHub builds and releases use Node.js 26 LTS, retaining Node.js 22/24 support.
30
+ - Keep local maintenance utilities outside version control; CI uses tracked
31
+ contract and packed-consumer tests.
32
+
33
+ ## [3.0.2] - 2026-11-12
34
+
35
+ ### Fixed
36
+
37
+ - `contracts.set()` accepts `auto_renew: null`, as the API does: a contract
38
+ resets auto-renewal to `false`, and a pending amendment drops it from its
39
+ terms. `IDocumentContractInput.auto_renew` is `boolean | null`.
40
+ - `assignments.estimateCost()` and `documents.estimateCostFromTemplate()` send
41
+ each signer's `step`, which the API reads to keep every `DigitalCertificate`
42
+ signer alone in its step, so estimates with several certificate signers in
43
+ their own steps succeed. Assignment estimates check the signing order as
44
+ creation does. `IAssignmentCostSigner` and `ITemplateCostSigner` accept `step`.
45
+
10
46
  ## [3.0.1] - 2026-11-11
11
47
 
12
48
  ### Fixed
@@ -1026,7 +1062,9 @@ signer fields with `cpf` and `whatsapp_phone_number`.
1026
1062
  - High-level `uploadAndRequestSignatures` helper on `AssinafyClient`.
1027
1063
  - `PaginatedResult<T>` with parsed `X-Pagination-*` header meta.
1028
1064
 
1029
- [Unreleased]: https://github.com/assinafy/typescript-sdk/compare/v3.0.1...HEAD
1065
+ [Unreleased]: https://github.com/assinafy/typescript-sdk/compare/v3.1.0...HEAD
1066
+ [3.1.0]: https://github.com/assinafy/typescript-sdk/releases/tag/v3.1.0
1067
+ [3.0.2]: https://github.com/assinafy/typescript-sdk/compare/v3.0.1...v3.0.2
1030
1068
  [3.0.1]: https://github.com/assinafy/typescript-sdk/compare/v3.0.0...v3.0.1
1031
1069
  [3.0.0]: https://github.com/assinafy/typescript-sdk/compare/v2.11.0...v3.0.0
1032
1070
  [2.11.0]: https://github.com/assinafy/typescript-sdk/compare/v2.10.0...v2.11.0
package/README.en.md CHANGED
@@ -10,6 +10,9 @@ session exchange is reserved for Assinafy's embed page), plus compatibility exte
10
10
  maintained by the API. The complete reference, including payloads, responses, errors, and examples
11
11
  for every resource, is in the **[English manual](docs/README.en.md)**.
12
12
 
13
+ Staging also exposes ten additional operations for scheduled sends, watchers, capacities,
14
+ notification history and envelope reminder estimates; see the [coverage map](docs/API_COVERAGE.md).
15
+
13
16
  ## Requirements
14
17
 
15
18
  - Node.js 22+ or Bun 1.4.4
@@ -100,6 +103,8 @@ factories.
100
103
  5. Deliver the signing URL, or show the signing screen inside your app with `client.embed`, and
101
104
  authenticate webhooks before processing events.
102
105
  6. Observe completion and download the signed document or certificate.
106
+ 7. Track contract terms with `client.contracts`; on staging, defer a request with
107
+ `client.scheduledSends` and monitor its `pending`, `sent` or `failed` state.
103
108
 
104
109
  WhatsApp, ID-document and face biometrics, ICP-Brasil digital certificates, and per-account
105
110
  `Bypass` verification have specific prerequisites; `workspaces.get(id, { expand:
@@ -115,6 +120,7 @@ in their browser. See the [signing branches](docs/README.en.md#paid-signing-bran
115
120
  | `client.assignments` | Requests, costs, notifications, and identity review |
116
121
  | `client.envelopes` | Several documents to the same signers, one invitation and one charge |
117
122
  | `client.embed` | Embed origins and single-use sessions for in-app signing |
123
+ | `client.scheduledSends` | Deferred assignments and envelopes (staging) |
118
124
  | `client.contracts` | Terms, families, renewals, and contract termination |
119
125
  | `client.templates`, `client.tags`, `client.fields` | Reusable content and fields |
120
126
  | `client.workspaces`, `client.users` | Workspace, branding, usage, notification policy, preferences, and MFA/TOTP |
package/README.md CHANGED
@@ -10,6 +10,10 @@ O SDK mapeia as 147 operações do OpenAPI publicado (146 com métodos; a troca
10
10
  pela API. A referência completa, com payloads, respostas, erros e exemplos de cada recurso, está no
11
11
  **[manual em português](docs/README.md)**.
12
12
 
13
+ Staging também oferece dez operações adicionais para agendamentos, observadores, qualificação
14
+ dos signatários, histórico de notificações e estimativa de lembretes de envelopes; veja o
15
+ [mapa de cobertura](docs/API_COVERAGE.md).
16
+
13
17
  ## Requisitos
14
18
 
15
19
  - Node.js 22+ ou Bun 1.4.4
@@ -100,6 +104,8 @@ O [manual de configuração](docs/README.md#configuração) explica retentativas
100
104
  5. Entregue a URL de assinatura, ou exiba a tela de assinatura dentro do seu app com
101
105
  `client.embed`, e valide os webhooks antes de processar eventos.
102
106
  6. Acompanhe a conclusão e baixe o documento assinado ou o certificado.
107
+ 7. Gerencie termos com `client.contracts`; em staging, agende com
108
+ `client.scheduledSends` e acompanhe o estado `pending`, `sent` ou `failed`.
103
109
 
104
110
  WhatsApp, biometria com documento e face, certificado digital ICP-Brasil e a verificação `Bypass`
105
111
  (habilitada por conta) têm pré-requisitos específicos; `workspaces.get(id, { expand:
@@ -115,6 +121,7 @@ signatário no navegador. Consulte os [ramos de assinatura](docs/README.md#ramos
115
121
  | `client.assignments` | Solicitações, custos, notificações e revisão de identidade |
116
122
  | `client.envelopes` | Vários documentos aos mesmos signatários, um convite e uma cobrança |
117
123
  | `client.embed` | Origens e sessões de uso único para assinar dentro do seu app |
124
+ | `client.scheduledSends` | Assignments e envelopes agendados (staging) |
118
125
  | `client.contracts` | Termos, famílias, renovação e encerramento de contratos |
119
126
  | `client.templates`, `client.tags`, `client.fields` | Conteúdo reutilizável e campos |
120
127
  | `client.workspaces`, `client.users` | Workspace, tema, uso do plano, política de notificações, preferências e MFA/TOTP |
package/SECURITY.md CHANGED
@@ -69,8 +69,10 @@ opportunity to upgrade.
69
69
  JSON only after verification. The default five-minute timestamp tolerance
70
70
  blocks replayed deliveries; keep the receiver clock synchronized. Rotate the
71
71
  secret with `webhooks.rotateEndpointSecret()` when it may have leaked —
72
- rotation is immediate and the secret/rotate routes accept an API key only,
73
- not OAuth tokens. See `docs/COMPATIBILITY.md`.
72
+ rotation is immediate by default. Readback requires an API key; OAuth
73
+ applications with `webhooks:write` can rotate and receive the new secret.
74
+ For planned rotation, `{ keep_previous: true }` signs with both secrets for
75
+ 24 hours; omit it when the previous secret may be compromised. See `docs/COMPATIBILITY.md`.
74
76
  - Dependency changes must keep `bun.lock` synchronized and pass `bun run audit`.
75
77
  GitHub Actions are pinned to immutable commit SHAs and updated through
76
78
  Dependabot review.