@assinafy/sdk 2.1.1 → 2.2.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 +99 -1
- package/README.md +601 -117
- package/SECURITY.md +4 -2
- package/dist/index.d.mts +697 -316
- package/dist/index.d.ts +697 -316
- package/dist/index.js +3102 -1938
- package/dist/index.mjs +3100 -1938
- package/docs/API_COVERAGE.md +28 -30
- package/docs/COMPATIBILITY.md +279 -179
- package/docs/RELEASING.md +42 -11
- package/package.json +10 -9
package/docs/API_COVERAGE.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
# API coverage
|
|
2
2
|
|
|
3
|
-
This ledger maps the official
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
SHA-256 digest is
|
|
8
|
-
`7e5957082002e8e96c5abc2cadf7b4b463eaa5bd61b76e26f64b90a8b922088c`.
|
|
3
|
+
This ledger maps the official
|
|
4
|
+
[`GET /v1/docs/openapi.json`](https://api.assinafy.com.br/v1/docs/openapi.json)
|
|
5
|
+
contract to the public SDK API: 67 paths, 89 HTTP operations, and 39 component
|
|
6
|
+
schemas.
|
|
9
7
|
|
|
10
8
|
All paths below include the `/v1` prefix shown by the OpenAPI document. The
|
|
11
9
|
SDK's default `baseUrl` already ends in `/v1`, so resource implementations use
|
|
@@ -14,10 +12,9 @@ the corresponding relative path without repeating that prefix.
|
|
|
14
12
|
Status meanings:
|
|
15
13
|
|
|
16
14
|
- **Covered** — a public, typed SDK method sends the operation.
|
|
17
|
-
- **
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
from the current OpenAPI path set and excluded from the 89-operation total.
|
|
15
|
+
- **Compatibility extension** — route retained for existing integrations but
|
|
16
|
+
absent from the current OpenAPI path set and excluded from the 89-operation
|
|
17
|
+
total.
|
|
21
18
|
|
|
22
19
|
## Accounts — 10/10
|
|
23
20
|
|
|
@@ -46,12 +43,10 @@ Status meanings:
|
|
|
46
43
|
| `PUT` | `/v1/documents/{documentId}/assignments/{assignmentId}/reset-expiration` | `client.assignments.resetExpiration(documentId, assignmentId, expiresAt)` | Covered |
|
|
47
44
|
| `GET` | `/v1/documents/{documentId}/assignments/{assignmentId}/whatsapp-notifications` | `client.assignments.listWhatsAppNotifications(documentId, assignmentId)` | Covered |
|
|
48
45
|
|
|
49
|
-
## Authentication —
|
|
46
|
+
## Authentication — 9/9
|
|
50
47
|
|
|
51
48
|
| Method | Path | SDK method | Status |
|
|
52
49
|
| --- | --- | --- | --- |
|
|
53
|
-
| `GET` | `/v1/auth/authenticate` | `client.auth.getSocialLoginUrl(authClient?)` | URL helper |
|
|
54
|
-
| `GET` | `/v1/login-callback` | `client.auth.getSocialLoginCallbackUrl()` | URL helper |
|
|
55
50
|
| `POST` | `/v1/login` | `client.auth.login(email, password)` | Covered |
|
|
56
51
|
| `PUT` | `/v1/authentication/request-password-reset` | `client.auth.requestPasswordReset(email)` | Covered |
|
|
57
52
|
| `PUT` | `/v1/authentication/reset-password` | `client.auth.resetPassword(payload)` | Covered |
|
|
@@ -150,15 +145,17 @@ an optional fourth access-code argument only for legacy compatibility.
|
|
|
150
145
|
| --- | --- | --- | --- |
|
|
151
146
|
| `GET` | `/v1/accounts/{accountId}/templates` | `client.templates.list(params?, accountId?)` | Covered |
|
|
152
147
|
|
|
153
|
-
Five additional
|
|
154
|
-
[
|
|
148
|
+
Five additional routes are documented separately under
|
|
149
|
+
[Template compatibility routes](#template-compatibility-routes).
|
|
155
150
|
|
|
156
|
-
## Users —
|
|
151
|
+
## Users — 4/4
|
|
157
152
|
|
|
158
153
|
| Method | Path | SDK method | Status |
|
|
159
154
|
| --- | --- | --- | --- |
|
|
160
155
|
| `GET` | `/v1/users/self` | `client.users.getCurrent()` | Covered |
|
|
161
156
|
| `GET` | `/v1/users/self/stats` | `client.users.getStats(params?)` | Covered |
|
|
157
|
+
| `GET` | `/v1/users/self/notification-preferences` | `client.users.getNotificationPreferences()` | Covered |
|
|
158
|
+
| `PUT` | `/v1/users/self/notification-preferences` | `client.users.updateNotificationPreferences(preferences)` | Covered |
|
|
162
159
|
|
|
163
160
|
## Webhooks — 6/6
|
|
164
161
|
|
|
@@ -171,19 +168,19 @@ Five additional live routes are documented separately under
|
|
|
171
168
|
| `GET` | `/v1/accounts/{accountId}/webhooks` | `client.webhooks.listDispatches(params?, accountId?)` | Covered |
|
|
172
169
|
| `POST` | `/v1/accounts/{accountId}/webhooks/{historyId}/retry` | `client.webhooks.retryDispatch(historyId, accountId?)` | Covered |
|
|
173
170
|
|
|
174
|
-
##
|
|
171
|
+
## Template compatibility routes
|
|
175
172
|
|
|
176
|
-
These routes are available
|
|
177
|
-
|
|
178
|
-
|
|
173
|
+
These routes are available to existing integrations but do not appear in the
|
|
174
|
+
current OpenAPI path set. They are excluded from the official 89-operation
|
|
175
|
+
coverage count.
|
|
179
176
|
|
|
180
|
-
| Method |
|
|
177
|
+
| Method | Path | SDK method | Status |
|
|
181
178
|
| --- | --- | --- | --- |
|
|
182
|
-
| `POST` | `/v1/accounts/{accountId}/templates` | `client.templates.create(source, options?)` |
|
|
183
|
-
| `GET` | `/v1/accounts/{accountId}/templates/{templateId}` | `client.templates.get(templateId, accountId?)` |
|
|
184
|
-
| `PUT` | `/v1/accounts/{accountId}/templates/{templateId}` | `client.templates.update(templateId, payload, accountId?)` |
|
|
185
|
-
| `DELETE` | `/v1/accounts/{accountId}/templates/{templateId}` | `client.templates.delete(templateId, accountId?)` |
|
|
186
|
-
| `GET` | `/v1/accounts/{accountId}/templates/{templateId}/pages/{pageId}/download` | `client.templates.downloadPage(templateId, pageId, accountId?)` |
|
|
179
|
+
| `POST` | `/v1/accounts/{accountId}/templates` | `client.templates.create(source, options?)` | Compatibility extension |
|
|
180
|
+
| `GET` | `/v1/accounts/{accountId}/templates/{templateId}` | `client.templates.get(templateId, accountId?)` | Compatibility extension |
|
|
181
|
+
| `PUT` | `/v1/accounts/{accountId}/templates/{templateId}` | `client.templates.update(templateId, payload, accountId?)` | Compatibility extension |
|
|
182
|
+
| `DELETE` | `/v1/accounts/{accountId}/templates/{templateId}` | `client.templates.delete(templateId, accountId?)` | Compatibility extension |
|
|
183
|
+
| `GET` | `/v1/accounts/{accountId}/templates/{templateId}/pages/{pageId}/download` | `client.templates.downloadPage(templateId, pageId, accountId?)` | Compatibility extension |
|
|
187
184
|
|
|
188
185
|
## SDK conveniences
|
|
189
186
|
|
|
@@ -191,8 +188,9 @@ These helpers compose or derive official operations and therefore do not add to
|
|
|
191
188
|
the endpoint count:
|
|
192
189
|
|
|
193
190
|
- `client.uploadAndRequestSignatures(options)` validates the complete input,
|
|
194
|
-
uploads a document,
|
|
195
|
-
|
|
191
|
+
uploads a document, reuses or creates signers, creates its virtual assignment
|
|
192
|
+
while metadata may still be processing, and optionally polls before returning
|
|
193
|
+
current document details.
|
|
196
194
|
- `client.documents.waitUntilReady(documentId, options?)` polls the official
|
|
197
195
|
document-details operation with terminal-state and timeout handling.
|
|
198
196
|
- `client.documents.isFullySigned(documentId)` and
|
|
@@ -204,6 +202,6 @@ the endpoint count:
|
|
|
204
202
|
|
|
205
203
|
For request and response payload definitions, use the exported TypeScript
|
|
206
204
|
interfaces and each method's JSDoc examples together with the
|
|
207
|
-
[official API reference](https://api.assinafy.com.br/v1/docs).
|
|
208
|
-
|
|
205
|
+
[official API reference](https://api.assinafy.com.br/v1/docs). Deployment
|
|
206
|
+
variants that require compatibility handling are recorded in
|
|
209
207
|
[COMPATIBILITY.md](COMPATIBILITY.md).
|