@assinafy/cli 2.5.0 → 2.5.2
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/README.en.md +7 -4
- package/README.md +5 -3
- package/dist/api.cjs +65 -38
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +65 -38
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +127 -70
- package/dist/types/api/errors.d.ts +9 -0
- package/dist/types/api/errors.d.ts.map +1 -1
- package/dist/types/api/resources/documents.d.ts +4 -3
- package/dist/types/api/resources/documents.d.ts.map +1 -1
- package/dist/types/api/resources/oauth.d.ts +1 -1
- package/dist/types/api/resources/oauth.d.ts.map +1 -1
- package/dist/types/api/resources/signer-documents.d.ts +9 -4
- package/dist/types/api/resources/signer-documents.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +25 -20
- package/dist/types/api/types.d.ts.map +1 -1
- package/dist/types/api/utils.d.ts.map +1 -1
- package/docs/api-operations.json +1 -1
- package/docs/api-reference.md +74 -39
- package/docs/documents.md +5 -6
- package/docs/migration-v2.md +1 -1
- package/docs/sdk-reference.md +13 -14
- package/docs/signer.md +4 -2
- package/docs/webhooks.md +34 -11
- package/package.json +2 -2
package/docs/signer.md
CHANGED
|
@@ -57,7 +57,8 @@ Arguments:
|
|
|
57
57
|
signerId Signer ID
|
|
58
58
|
|
|
59
59
|
Options:
|
|
60
|
-
--access-code <code> Signer access code (
|
|
60
|
+
--access-code <code> Signer access code (omit to use your API key or token)
|
|
61
|
+
(env: ASSINAFY_SIGNER_ACCESS_CODE)
|
|
61
62
|
--page <n> Page number to fetch
|
|
62
63
|
--per-page <n> Items per page
|
|
63
64
|
--search <query> Filter by a search query
|
|
@@ -77,7 +78,8 @@ Arguments:
|
|
|
77
78
|
query Search text
|
|
78
79
|
|
|
79
80
|
Options:
|
|
80
|
-
--access-code <code> Signer access code (
|
|
81
|
+
--access-code <code> Signer access code (omit to use your API key or token)
|
|
82
|
+
(env: ASSINAFY_SIGNER_ACCESS_CODE)
|
|
81
83
|
-h, --help display help for command
|
|
82
84
|
```
|
|
83
85
|
|
package/docs/webhooks.md
CHANGED
|
@@ -8,19 +8,23 @@ Usage: assinafy webhooks [options] [command]
|
|
|
8
8
|
Manage webhook endpoints, the primary subscription, and delivery history
|
|
9
9
|
|
|
10
10
|
Options:
|
|
11
|
-
-h, --help
|
|
11
|
+
-h, --help display help for command
|
|
12
12
|
|
|
13
13
|
Commands:
|
|
14
|
-
endpoints
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
endpoints Manage webhook endpoints and their signing
|
|
15
|
+
secrets
|
|
16
|
+
register [options] Register (or replace) the account's oldest
|
|
17
|
+
webhook endpoint
|
|
18
|
+
get Show the account's oldest webhook endpoint
|
|
19
|
+
inactivate Inactivate the account's oldest webhook endpoint
|
|
20
|
+
without deleting it
|
|
21
|
+
event-types List supported webhook event types
|
|
22
|
+
dispatches [options] List webhook delivery history
|
|
23
|
+
retry <dispatchId> Retry delivery of a specific dispatch
|
|
24
|
+
verify [options] <bodyFile> Verify a signed delivery (Standard Webhooks)
|
|
25
|
+
against ASSINAFY_WEBHOOK_SECRET or the profile
|
|
26
|
+
secret
|
|
27
|
+
help [command] display help for command
|
|
24
28
|
```
|
|
25
29
|
|
|
26
30
|
### `assinafy webhooks endpoints`
|
|
@@ -241,3 +245,22 @@ Arguments:
|
|
|
241
245
|
Options:
|
|
242
246
|
-h, --help display help for command
|
|
243
247
|
```
|
|
248
|
+
|
|
249
|
+
### `assinafy webhooks verify`
|
|
250
|
+
|
|
251
|
+
```text
|
|
252
|
+
Usage: assinafy webhooks verify [options] <bodyFile>
|
|
253
|
+
|
|
254
|
+
Verify a signed delivery (Standard Webhooks) against ASSINAFY_WEBHOOK_SECRET or
|
|
255
|
+
the profile secret
|
|
256
|
+
|
|
257
|
+
Arguments:
|
|
258
|
+
bodyFile Raw request body exactly as received
|
|
259
|
+
|
|
260
|
+
Options:
|
|
261
|
+
--id <value> webhook-id header
|
|
262
|
+
--timestamp <seconds> webhook-timestamp header
|
|
263
|
+
--signature <value> webhook-signature header
|
|
264
|
+
--tolerance <seconds> Accepted clock difference in seconds (default: "300")
|
|
265
|
+
-h, --help display help for command
|
|
266
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assinafy/cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "The official command-line interface for the Assinafy digital-signature API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"bugs": {
|
|
55
55
|
"url": "https://github.com/assinafy/assinafy-cli/issues"
|
|
56
56
|
},
|
|
57
|
-
"homepage": "https://
|
|
57
|
+
"homepage": "https://www.assinafy.com.br",
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "tsx src/cli.ts",
|
|
60
60
|
"dev:watch": "tsx --watch src/cli.ts",
|