@assinafy/sdk 3.0.0 → 3.0.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.
- package/CHANGELOG.md +10 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -5
- package/dist/index.mjs +4 -5
- package/docs/COMPATIBILITY.md +3 -1
- package/docs/README.en.md +2 -2
- package/docs/README.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.0.1] - 2026-11-11
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `DigitalCertificate` and `IdDocumentFaceMatchBasic` signers accept the
|
|
15
|
+
`Bypass` notification on assignment, template and envelope requests and cost
|
|
16
|
+
estimates, as the API does.
|
|
17
|
+
|
|
10
18
|
## [3.0.0] - 2026-11-11
|
|
11
19
|
|
|
12
20
|
### Breaking changes
|
|
@@ -1018,7 +1026,8 @@ signer fields with `cpf` and `whatsapp_phone_number`.
|
|
|
1018
1026
|
- High-level `uploadAndRequestSignatures` helper on `AssinafyClient`.
|
|
1019
1027
|
- `PaginatedResult<T>` with parsed `X-Pagination-*` header meta.
|
|
1020
1028
|
|
|
1021
|
-
[Unreleased]: https://github.com/assinafy/typescript-sdk/compare/v3.0.
|
|
1029
|
+
[Unreleased]: https://github.com/assinafy/typescript-sdk/compare/v3.0.1...HEAD
|
|
1030
|
+
[3.0.1]: https://github.com/assinafy/typescript-sdk/compare/v3.0.0...v3.0.1
|
|
1022
1031
|
[3.0.0]: https://github.com/assinafy/typescript-sdk/compare/v2.11.0...v3.0.0
|
|
1023
1032
|
[2.11.0]: https://github.com/assinafy/typescript-sdk/compare/v2.10.0...v2.11.0
|
|
1024
1033
|
[2.10.0]: https://github.com/assinafy/typescript-sdk/compare/v2.9.1...v2.10.0
|
package/dist/index.d.mts
CHANGED
|
@@ -42,8 +42,8 @@ type AssignmentMethod = 'virtual' | 'collect';
|
|
|
42
42
|
* verification code travels on the notification channel, so `Email` pairs only
|
|
43
43
|
* with `Email` and `Whatsapp` only with `Whatsapp`. `DigitalCertificate`
|
|
44
44
|
* and `IdDocumentFaceMatchBasic` carry no OTP and may be announced over either
|
|
45
|
-
* channel; `Bypass` may also use the `Bypass` notification, which
|
|
46
|
-
* invitation. The SDK rejects an invalid pairing before the request; the API
|
|
45
|
+
* channel; those and `Bypass` may also use the `Bypass` notification, which
|
|
46
|
+
* sends no invitation. The SDK rejects an invalid pairing before the request; the API
|
|
47
47
|
* answers `400`. `embedded` signers use `Email`, `Whatsapp` or `Bypass`.
|
|
48
48
|
*
|
|
49
49
|
* Send neither field to get `Email`/`Email`; send one and the other is
|
|
@@ -132,7 +132,7 @@ interface ISignerIdentityReview {
|
|
|
132
132
|
* | --- | --- | --- |
|
|
133
133
|
* | `Email` | An `email`. | 0 credits |
|
|
134
134
|
* | `Whatsapp` | A `whatsapp_phone_number`; paid plan. | 0.45 credits |
|
|
135
|
-
* | `Bypass` | Sends nothing;
|
|
135
|
+
* | `Bypass` | Sends nothing; with `Bypass`, `DigitalCertificate` or `IdDocumentFaceMatchBasic` verification. Your app delivers the link, e.g. an embed session. | — |
|
|
136
136
|
*
|
|
137
137
|
* Notifications are charged when the assignment is created and again on every
|
|
138
138
|
* resend. See {@link AssignmentVerificationMethod} for the pairing rules.
|
package/dist/index.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ type AssignmentMethod = 'virtual' | 'collect';
|
|
|
42
42
|
* verification code travels on the notification channel, so `Email` pairs only
|
|
43
43
|
* with `Email` and `Whatsapp` only with `Whatsapp`. `DigitalCertificate`
|
|
44
44
|
* and `IdDocumentFaceMatchBasic` carry no OTP and may be announced over either
|
|
45
|
-
* channel; `Bypass` may also use the `Bypass` notification, which
|
|
46
|
-
* invitation. The SDK rejects an invalid pairing before the request; the API
|
|
45
|
+
* channel; those and `Bypass` may also use the `Bypass` notification, which
|
|
46
|
+
* sends no invitation. The SDK rejects an invalid pairing before the request; the API
|
|
47
47
|
* answers `400`. `embedded` signers use `Email`, `Whatsapp` or `Bypass`.
|
|
48
48
|
*
|
|
49
49
|
* Send neither field to get `Email`/`Email`; send one and the other is
|
|
@@ -132,7 +132,7 @@ interface ISignerIdentityReview {
|
|
|
132
132
|
* | --- | --- | --- |
|
|
133
133
|
* | `Email` | An `email`. | 0 credits |
|
|
134
134
|
* | `Whatsapp` | A `whatsapp_phone_number`; paid plan. | 0.45 credits |
|
|
135
|
-
* | `Bypass` | Sends nothing;
|
|
135
|
+
* | `Bypass` | Sends nothing; with `Bypass`, `DigitalCertificate` or `IdDocumentFaceMatchBasic` verification. Your app delivers the link, e.g. an embed session. | — |
|
|
136
136
|
*
|
|
137
137
|
* Notifications are charged when the assignment is created and again on every
|
|
138
138
|
* resend. See {@link AssignmentVerificationMethod} for the pairing rules.
|
package/dist/index.js
CHANGED
|
@@ -763,7 +763,7 @@ var import_axios2 = __toESM(require("axios"));
|
|
|
763
763
|
// package.json
|
|
764
764
|
var package_default = {
|
|
765
765
|
name: "@assinafy/sdk",
|
|
766
|
-
version: "3.0.
|
|
766
|
+
version: "3.0.1",
|
|
767
767
|
packageManager: "bun@1.4.4",
|
|
768
768
|
description: "TypeScript SDK for Assinafy API - Digital signature platform",
|
|
769
769
|
type: "commonjs",
|
|
@@ -1122,15 +1122,14 @@ var VERIFICATION_METHODS = /* @__PURE__ */ new Set([
|
|
|
1122
1122
|
"IdDocumentFaceMatchBasic",
|
|
1123
1123
|
"Bypass"
|
|
1124
1124
|
]);
|
|
1125
|
-
var
|
|
1126
|
-
var NOTIFICATION_METHODS = /* @__PURE__ */ new Set([...MESSAGE_CHANNELS, "Bypass"]);
|
|
1125
|
+
var NOTIFICATION_METHODS = /* @__PURE__ */ new Set(["Email", "Whatsapp", "Bypass"]);
|
|
1127
1126
|
var EMBEDDED_VERIFICATION_METHODS = /* @__PURE__ */ new Set(["Email", "Whatsapp", "Bypass"]);
|
|
1128
1127
|
var DIGITAL_CERTIFICATE_REQUIRES_VIRTUAL_METHOD = "digital_certificate_requires_virtual_method";
|
|
1129
1128
|
var ALLOWED_NOTIFICATION_METHODS = {
|
|
1130
1129
|
Email: /* @__PURE__ */ new Set(["Email"]),
|
|
1131
1130
|
Whatsapp: /* @__PURE__ */ new Set(["Whatsapp"]),
|
|
1132
|
-
DigitalCertificate:
|
|
1133
|
-
IdDocumentFaceMatchBasic:
|
|
1131
|
+
DigitalCertificate: NOTIFICATION_METHODS,
|
|
1132
|
+
IdDocumentFaceMatchBasic: NOTIFICATION_METHODS,
|
|
1134
1133
|
Bypass: NOTIFICATION_METHODS
|
|
1135
1134
|
};
|
|
1136
1135
|
function validateAssignmentSignerOptions(signer, label = "signer") {
|
package/dist/index.mjs
CHANGED
|
@@ -699,7 +699,7 @@ import axios2 from "axios";
|
|
|
699
699
|
// package.json
|
|
700
700
|
var package_default = {
|
|
701
701
|
name: "@assinafy/sdk",
|
|
702
|
-
version: "3.0.
|
|
702
|
+
version: "3.0.1",
|
|
703
703
|
packageManager: "bun@1.4.4",
|
|
704
704
|
description: "TypeScript SDK for Assinafy API - Digital signature platform",
|
|
705
705
|
type: "commonjs",
|
|
@@ -1058,15 +1058,14 @@ var VERIFICATION_METHODS = /* @__PURE__ */ new Set([
|
|
|
1058
1058
|
"IdDocumentFaceMatchBasic",
|
|
1059
1059
|
"Bypass"
|
|
1060
1060
|
]);
|
|
1061
|
-
var
|
|
1062
|
-
var NOTIFICATION_METHODS = /* @__PURE__ */ new Set([...MESSAGE_CHANNELS, "Bypass"]);
|
|
1061
|
+
var NOTIFICATION_METHODS = /* @__PURE__ */ new Set(["Email", "Whatsapp", "Bypass"]);
|
|
1063
1062
|
var EMBEDDED_VERIFICATION_METHODS = /* @__PURE__ */ new Set(["Email", "Whatsapp", "Bypass"]);
|
|
1064
1063
|
var DIGITAL_CERTIFICATE_REQUIRES_VIRTUAL_METHOD = "digital_certificate_requires_virtual_method";
|
|
1065
1064
|
var ALLOWED_NOTIFICATION_METHODS = {
|
|
1066
1065
|
Email: /* @__PURE__ */ new Set(["Email"]),
|
|
1067
1066
|
Whatsapp: /* @__PURE__ */ new Set(["Whatsapp"]),
|
|
1068
|
-
DigitalCertificate:
|
|
1069
|
-
IdDocumentFaceMatchBasic:
|
|
1067
|
+
DigitalCertificate: NOTIFICATION_METHODS,
|
|
1068
|
+
IdDocumentFaceMatchBasic: NOTIFICATION_METHODS,
|
|
1070
1069
|
Bypass: NOTIFICATION_METHODS
|
|
1071
1070
|
};
|
|
1072
1071
|
function validateAssignmentSignerOptions(signer, label = "signer") {
|
package/docs/COMPATIBILITY.md
CHANGED
|
@@ -627,7 +627,9 @@ the production route is available.
|
|
|
627
627
|
answers a retry with `400`.
|
|
628
628
|
- `Bypass` verification and notification are enabled per account and absent
|
|
629
629
|
from the published request enums; the SDK accepts them with the pairing the
|
|
630
|
-
API applies
|
|
630
|
+
API applies: the `Bypass` notification with `Bypass`, `DigitalCertificate` or
|
|
631
|
+
`IdDocumentFaceMatchBasic` verification, and `Bypass` verification with any
|
|
632
|
+
notification.
|
|
631
633
|
- The embed session exchange route belongs to Assinafy's embed page and is not
|
|
632
634
|
exposed.
|
|
633
635
|
|
package/docs/README.en.md
CHANGED
|
@@ -1042,8 +1042,8 @@ to `Email`.
|
|
|
1042
1042
|
| --- | --- | --- | --- |
|
|
1043
1043
|
| `Email` *(default)* | One-time code (OTP) by email | `Email` | Free |
|
|
1044
1044
|
| `Whatsapp` | One-time code (OTP) by WhatsApp | `Whatsapp` | 0.45 credit (the notification), paid plans only |
|
|
1045
|
-
| `DigitalCertificate` | The signer signs with their **own ICP-Brasil certificate — A1 or A3 —** through the Web PKI extension, producing a **qualified PAdES signature**; requires `method: 'virtual'` | `Email` **or** `Whatsapp` | 0.5 credits + the notification |
|
|
1046
|
-
| `IdDocumentFaceMatchBasic` | Hosted identity-document, face and liveness verification | `Email` **or** `Whatsapp` | Use `estimateCost()` |
|
|
1045
|
+
| `DigitalCertificate` | The signer signs with their **own ICP-Brasil certificate — A1 or A3 —** through the Web PKI extension, producing a **qualified PAdES signature**; requires `method: 'virtual'` | `Email` **or** `Whatsapp` (or `Bypass`) | 0.5 credits + the notification |
|
|
1046
|
+
| `IdDocumentFaceMatchBasic` | Hosted identity-document, face and liveness verification | `Email` **or** `Whatsapp` (or `Bypass`) | Use `estimateCost()` |
|
|
1047
1047
|
| `Bypass` | No code: your app has already authenticated the signer. Enabled per account by Assinafy | `Email`, `Whatsapp` **or** `Bypass` (sends no invitation) | The notification |
|
|
1048
1048
|
|
|
1049
1049
|
Check what the plan allows before offering a method:
|
package/docs/README.md
CHANGED
|
@@ -996,8 +996,8 @@ que faltar é inferido. Sem nenhum dos dois, ambos assumem `Email`.
|
|
|
996
996
|
| --- | --- | --- | --- |
|
|
997
997
|
| `Email` *(padrão)* | Código de uso único (OTP) por e-mail | `Email` | Gratuito |
|
|
998
998
|
| `Whatsapp` | Código de uso único (OTP) por WhatsApp | `Whatsapp` | 0,45 crédito (a notificação), só em planos pagos |
|
|
999
|
-
| `DigitalCertificate` | O signatário assina com o **próprio certificado ICP-Brasil — A1 ou A3 —** pela extensão Web PKI, gerando uma assinatura **PAdES qualificada**; exige `method: 'virtual'` | `Email` **ou** `Whatsapp` | 0,5 crédito + a notificação |
|
|
1000
|
-
| `IdDocumentFaceMatchBasic` | Documento de identidade, foto e prova de vida em sessão hospedada | `Email` **ou** `Whatsapp` | Consulte `estimateCost()` |
|
|
999
|
+
| `DigitalCertificate` | O signatário assina com o **próprio certificado ICP-Brasil — A1 ou A3 —** pela extensão Web PKI, gerando uma assinatura **PAdES qualificada**; exige `method: 'virtual'` | `Email` **ou** `Whatsapp` (ou `Bypass`) | 0,5 crédito + a notificação |
|
|
1000
|
+
| `IdDocumentFaceMatchBasic` | Documento de identidade, foto e prova de vida em sessão hospedada | `Email` **ou** `Whatsapp` (ou `Bypass`) | Consulte `estimateCost()` |
|
|
1001
1001
|
| `Bypass` | Sem código: seu app já autenticou o signatário. Habilitado por conta pela Assinafy | `Email`, `Whatsapp` **ou** `Bypass` (não envia convite) | A notificação |
|
|
1002
1002
|
|
|
1003
1003
|
Confira o que o plano permite antes de oferecer um método:
|