@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/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 (env: ASSINAFY_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 (env: ASSINAFY_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 display help for command
11
+ -h, --help display help for command
12
12
 
13
13
  Commands:
14
- endpoints Manage webhook endpoints and their signing secrets
15
- register [options] Register (or replace) the account's oldest webhook
16
- endpoint
17
- get Show the account's oldest webhook endpoint
18
- inactivate Inactivate the account's oldest webhook endpoint without
19
- deleting it
20
- event-types List supported webhook event types
21
- dispatches [options] List webhook delivery history
22
- retry <dispatchId> Retry delivery of a specific dispatch
23
- help [command] display help for command
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.0",
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://github.com/assinafy/assinafy-cli#readme",
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",