@assinafy/cli 2.7.1 → 2.8.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.
Files changed (52) hide show
  1. package/.env.example +2 -0
  2. package/README.en.md +14 -8
  3. package/README.md +11 -3
  4. package/dist/api.cjs +517 -61
  5. package/dist/api.cjs.map +1 -1
  6. package/dist/api.js +514 -61
  7. package/dist/api.js.map +1 -1
  8. package/dist/cli.cjs +1009 -169
  9. package/dist/types/api/client.d.ts +5 -0
  10. package/dist/types/api/client.d.ts.map +1 -1
  11. package/dist/types/api/envelope-types.d.ts +73 -0
  12. package/dist/types/api/envelope-types.d.ts.map +1 -0
  13. package/dist/types/api/index.d.ts +3 -0
  14. package/dist/types/api/index.d.ts.map +1 -1
  15. package/dist/types/api/resources/assignments.d.ts.map +1 -1
  16. package/dist/types/api/resources/contracts.d.ts +3 -1
  17. package/dist/types/api/resources/contracts.d.ts.map +1 -1
  18. package/dist/types/api/resources/documents.d.ts +21 -6
  19. package/dist/types/api/resources/documents.d.ts.map +1 -1
  20. package/dist/types/api/resources/embed.d.ts +14 -0
  21. package/dist/types/api/resources/embed.d.ts.map +1 -0
  22. package/dist/types/api/resources/envelopes.d.ts +31 -0
  23. package/dist/types/api/resources/envelopes.d.ts.map +1 -0
  24. package/dist/types/api/resources/signer-documents.d.ts +23 -11
  25. package/dist/types/api/resources/signer-documents.d.ts.map +1 -1
  26. package/dist/types/api/resources/signers.d.ts +1 -1
  27. package/dist/types/api/resources/signers.d.ts.map +1 -1
  28. package/dist/types/api/resources/users.d.ts +3 -1
  29. package/dist/types/api/resources/users.d.ts.map +1 -1
  30. package/dist/types/api/resources/webhooks.d.ts +6 -2
  31. package/dist/types/api/resources/webhooks.d.ts.map +1 -1
  32. package/dist/types/api/resources/workspaces.d.ts +9 -2
  33. package/dist/types/api/resources/workspaces.d.ts.map +1 -1
  34. package/dist/types/api/types.d.ts +103 -7
  35. package/dist/types/api/types.d.ts.map +1 -1
  36. package/dist/types/api/utils.d.ts +6 -0
  37. package/dist/types/api/utils.d.ts.map +1 -1
  38. package/docs/README.md +3 -1
  39. package/docs/api-operations.json +234 -2
  40. package/docs/api-reference.md +11533 -3716
  41. package/docs/assignments.md +16 -14
  42. package/docs/contracts.md +4 -3
  43. package/docs/documents.md +44 -27
  44. package/docs/embed.md +119 -0
  45. package/docs/envelopes.md +210 -0
  46. package/docs/sdk-reference.md +215 -29
  47. package/docs/send.md +15 -11
  48. package/docs/signer.md +84 -3
  49. package/docs/users.md +41 -0
  50. package/docs/webhooks.md +22 -6
  51. package/docs/workspaces.md +66 -3
  52. package/package.json +1 -1
package/docs/signer.md CHANGED
@@ -11,10 +11,15 @@ Options:
11
11
  -h, --help display help for command
12
12
 
13
13
  Commands:
14
+ theme [options] Read the signing workspace brand
15
+ logo [options] Download the signing workspace logo
16
+ certified-copy [options] Send a new certified-copy link to the original signing contact
17
+ download-copy [options] Download a PDF using a certified-copy link token
18
+ resend-download-link [options] Send a new link using an expired download token
14
19
  document [options] <signerId> Fetch the signer's current document
15
20
  documents [options] <signerId> List the signer's documents
16
21
  search [options] <signerId> <query> Search the signer's documents
17
- download [options] <signerId> <documentId> <artifact> Download a signer document artifact
22
+ download [options] <signerId> <documentId> <artifact> Download the original with a signer code; use download-copy for certified files
18
23
  self [options] Fetch the signer's own profile
19
24
  identity-status [options] Fetch biometric verification status and the private capture URL
20
25
  identity-start [options] Open a biometric verification session with the signer’s explicit consent
@@ -33,6 +38,75 @@ Commands:
33
38
  help [command] display help for command
34
39
  ```
35
40
 
41
+ ### `assinafy signer theme`
42
+
43
+ ```text
44
+ Usage: assinafy signer theme [options]
45
+
46
+ Read the signing workspace brand
47
+
48
+ Options:
49
+ --access-code <code> Signer access code (env: ASSINAFY_SIGNER_ACCESS_CODE)
50
+ -h, --help display help for command
51
+ ```
52
+
53
+ ### `assinafy signer logo`
54
+
55
+ ```text
56
+ Usage: assinafy signer logo [options]
57
+
58
+ Download the signing workspace logo
59
+
60
+ Options:
61
+ --access-code <code> Signer access code (env: ASSINAFY_SIGNER_ACCESS_CODE)
62
+ -o, --output <path> Output file path
63
+ --force Overwrite the output file if it already exists
64
+ -h, --help display help for command
65
+ ```
66
+
67
+ ### `assinafy signer certified-copy`
68
+
69
+ ```text
70
+ Usage: assinafy signer certified-copy [options]
71
+
72
+ Send a new certified-copy link to the original signing contact
73
+
74
+ Options:
75
+ --access-code <code> Signer access code (env: ASSINAFY_SIGNER_ACCESS_CODE)
76
+ --document-id <id> Another document in the same envelope
77
+ -h, --help display help for command
78
+ ```
79
+
80
+ ### `assinafy signer download-copy`
81
+
82
+ ```text
83
+ Usage: assinafy signer download-copy [options]
84
+
85
+ Download a PDF using a certified-copy link token
86
+
87
+ Options:
88
+ --download-token <token> Private certified-copy link token (env:
89
+ ASSINAFY_DOWNLOAD_TOKEN)
90
+ -o, --output <path> Output file path
91
+ --force Overwrite the output file if it already exists
92
+ --artifact <name> PDF artifact (choices: "certificated", "pades",
93
+ default: "certificated")
94
+ -h, --help display help for command
95
+ ```
96
+
97
+ ### `assinafy signer resend-download-link`
98
+
99
+ ```text
100
+ Usage: assinafy signer resend-download-link [options]
101
+
102
+ Send a new link using an expired download token
103
+
104
+ Options:
105
+ --download-token <token> Private certified-copy link token (env:
106
+ ASSINAFY_DOWNLOAD_TOKEN)
107
+ -h, --help display help for command
108
+ ```
109
+
36
110
  ### `assinafy signer document`
37
111
 
38
112
  ```text
@@ -45,6 +119,7 @@ Arguments:
45
119
 
46
120
  Options:
47
121
  --access-code <code> Signer access code (env: ASSINAFY_SIGNER_ACCESS_CODE)
122
+ --expand <relation> Include the envelope (choices: "envelope")
48
123
  -h, --help display help for command
49
124
  ```
50
125
 
@@ -59,6 +134,7 @@ Arguments:
59
134
  signerId Signer ID
60
135
 
61
136
  Options:
137
+ --envelope <id> Filter by envelope ID
62
138
  --access-code <code> Signer access code (omit to use your API key or token)
63
139
  (env: ASSINAFY_SIGNER_ACCESS_CODE)
64
140
  --page <n> Page number to fetch
@@ -80,6 +156,7 @@ Arguments:
80
156
  query Search text
81
157
 
82
158
  Options:
159
+ --envelope <id> Filter by envelope ID
83
160
  --access-code <code> Signer access code (omit to use your API key or token)
84
161
  (env: ASSINAFY_SIGNER_ACCESS_CODE)
85
162
  -h, --help display help for command
@@ -90,7 +167,7 @@ Options:
90
167
  ```text
91
168
  Usage: assinafy signer download [options] <signerId> <documentId> <artifact>
92
169
 
93
- Download a signer document artifact
170
+ Download the original with a signer code; use download-copy for certified files
94
171
 
95
172
  Arguments:
96
173
  signerId Signer ID
@@ -99,7 +176,7 @@ Arguments:
99
176
  bundle
100
177
 
101
178
  Options:
102
- --access-code <code> Optional signer identity preflight code (env:
179
+ --access-code <code> Signer access code (required by the current API) (env:
103
180
  ASSINAFY_SIGNER_ACCESS_CODE)
104
181
  -o, --output <path> Output file path
105
182
  --force Overwrite the output file if it already exists
@@ -176,6 +253,7 @@ Usage: assinafy signer certificate-start [options]
176
253
  Start an ICP-Brasil A1/A3 signature and return the Web PKI token
177
254
 
178
255
  Options:
256
+ --document-id <id> Select a document of the same envelope
179
257
  --access-code <code> Signer access code (env: ASSINAFY_SIGNER_ACCESS_CODE)
180
258
  -h, --help display help for command
181
259
  ```
@@ -188,6 +266,7 @@ Usage: assinafy signer certificate-complete [options]
188
266
  Complete an ICP-Brasil A1/A3 signature after Web PKI has signed the token
189
267
 
190
268
  Options:
269
+ --document-id <id> Select a document of the same envelope
191
270
  --access-code <code> Signer access code (env:
192
271
  ASSINAFY_SIGNER_ACCESS_CODE)
193
272
  --certificate-token <token> Operation token returned by certificate-start
@@ -257,8 +336,10 @@ Usage: assinafy signer assignment [options]
257
336
  Fetch the assignment as the signer sees it
258
337
 
259
338
  Options:
339
+ --document-id <id> Select another document of the same envelope
260
340
  --access-code <code> Signer access code (env: ASSINAFY_SIGNER_ACCESS_CODE)
261
341
  --accept-terms Pass has_accepted_terms=true
342
+ --expand <relation> Include the envelope (choices: "envelope")
262
343
  -h, --help display help for command
263
344
  ```
264
345
 
package/docs/users.md CHANGED
@@ -17,6 +17,8 @@ Commands:
17
17
  accounts
18
18
  notification-preferences|preferences Manage owner-facing email notification
19
19
  preferences
20
+ push-preferences Manage mobile push notification
21
+ preferences
20
22
  help [command] display help for command
21
23
  ```
22
24
 
@@ -84,3 +86,42 @@ Options:
84
86
  --set <json> JSON object mapping notification codes to booleans
85
87
  -h, --help display help for command
86
88
  ```
89
+
90
+ ### `assinafy users push-preferences`
91
+
92
+ ```text
93
+ Usage: assinafy users push-preferences [options] [command]
94
+
95
+ Manage mobile push notification preferences
96
+
97
+ Options:
98
+ -h, --help display help for command
99
+
100
+ Commands:
101
+ get Read push preferences
102
+ update [options] Merge push preference booleans
103
+ help [command] display help for command
104
+ ```
105
+
106
+ #### `assinafy users push-preferences get`
107
+
108
+ ```text
109
+ Usage: assinafy users push-preferences get [options]
110
+
111
+ Read push preferences
112
+
113
+ Options:
114
+ -h, --help display help for command
115
+ ```
116
+
117
+ #### `assinafy users push-preferences update`
118
+
119
+ ```text
120
+ Usage: assinafy users push-preferences update [options]
121
+
122
+ Merge push preference booleans
123
+
124
+ Options:
125
+ --set <json> Partial map of notification codes to booleans
126
+ -h, --help display help for command
127
+ ```
package/docs/webhooks.md CHANGED
@@ -38,6 +38,8 @@ Options:
38
38
  -h, --help display help for command
39
39
 
40
40
  Commands:
41
+ test <endpointId> Send one webhook_test, even if inactive
42
+ or paused
41
43
  list|ls [options] List webhook endpoints, oldest first
42
44
  create [options] Register a webhook endpoint (1 per
43
45
  account, up to 3 on paid plans)
@@ -51,11 +53,24 @@ Commands:
51
53
  secret <endpointId> Print the endpoint signing secret
52
54
  (signing must be enabled; not available
53
55
  via OAuth)
54
- rotate-secret [options] <endpointId> Replace the endpoint signing secret; the
55
- old one stops working immediately
56
+ rotate-secret [options] <endpointId> Replace the endpoint signing secret
56
57
  help [command] display help for command
57
58
  ```
58
59
 
60
+ #### `assinafy webhooks endpoints test`
61
+
62
+ ```text
63
+ Usage: assinafy webhooks endpoints test [options] <endpointId>
64
+
65
+ Send one webhook_test, even if inactive or paused
66
+
67
+ Arguments:
68
+ endpointId Webhook endpoint ID
69
+
70
+ Options:
71
+ -h, --help display help for command
72
+ ```
73
+
59
74
  #### `assinafy webhooks endpoints list`
60
75
 
61
76
  ```text
@@ -171,14 +186,15 @@ Options:
171
186
  ```text
172
187
  Usage: assinafy webhooks endpoints rotate-secret [options] <endpointId>
173
188
 
174
- Replace the endpoint signing secret; the old one stops working immediately
189
+ Replace the endpoint signing secret
175
190
 
176
191
  Arguments:
177
- endpointId Endpoint ID
192
+ endpointId Endpoint ID
178
193
 
179
194
  Options:
180
- -y, --yes Skip the confirmation prompt
181
- -h, --help display help for command
195
+ --keep-previous Keep the replaced secret signing for 24 hours
196
+ -y, --yes Skip the confirmation prompt
197
+ -h, --help display help for command
182
198
  ```
183
199
 
184
200
  ### `assinafy webhooks register`
@@ -11,9 +11,11 @@ Options:
11
11
  -h, --help display help for command
12
12
 
13
13
  Commands:
14
+ usage <id> Read plan allowances and balances
15
+ notification-policy Workspace-wide notification rules
14
16
  create [options] Create a workspace (account)
15
17
  list List workspaces you can access
16
- get <id> Show a workspace by ID
18
+ get [options] <id> Show a workspace by ID
17
19
  theme <id> Show public branding for a workspace
18
20
  stats [options] <id> Show document KPIs for a workspace
19
21
  logo Manage a workspace logo
@@ -22,6 +24,65 @@ Commands:
22
24
  help [command] display help for command
23
25
  ```
24
26
 
27
+ ### `assinafy workspaces usage`
28
+
29
+ ```text
30
+ Usage: assinafy workspaces usage [options] <id>
31
+
32
+ Read plan allowances and balances
33
+
34
+ Arguments:
35
+ id Account/workspace ID
36
+
37
+ Options:
38
+ -h, --help display help for command
39
+ ```
40
+
41
+ ### `assinafy workspaces notification-policy`
42
+
43
+ ```text
44
+ Usage: assinafy workspaces notification-policy [options] [command]
45
+
46
+ Workspace-wide notification rules
47
+
48
+ Options:
49
+ -h, --help display help for command
50
+
51
+ Commands:
52
+ get <id> Read the policy
53
+ update [options] <id> Merge policy fields (workspace owners only)
54
+ help [command] display help for command
55
+ ```
56
+
57
+ #### `assinafy workspaces notification-policy get`
58
+
59
+ ```text
60
+ Usage: assinafy workspaces notification-policy get [options] <id>
61
+
62
+ Read the policy
63
+
64
+ Arguments:
65
+ id Account/workspace ID
66
+
67
+ Options:
68
+ -h, --help display help for command
69
+ ```
70
+
71
+ #### `assinafy workspaces notification-policy update`
72
+
73
+ ```text
74
+ Usage: assinafy workspaces notification-policy update [options] <id>
75
+
76
+ Merge policy fields (workspace owners only)
77
+
78
+ Arguments:
79
+ id Account/workspace ID
80
+
81
+ Options:
82
+ --data <json> Partial JSON: events and/or owners_receive_all
83
+ -h, --help display help for command
84
+ ```
85
+
25
86
  ### `assinafy workspaces create`
26
87
 
27
88
  ```text
@@ -57,10 +118,12 @@ Usage: assinafy workspaces get [options] <id>
57
118
  Show a workspace by ID
58
119
 
59
120
  Arguments:
60
- id Account/workspace ID
121
+ id Account/workspace ID
61
122
 
62
123
  Options:
63
- -h, --help display help for command
124
+ --expand <relation> Include signing feature flags (choices:
125
+ "signing_features")
126
+ -h, --help display help for command
64
127
  ```
65
128
 
66
129
  ### `assinafy workspaces theme`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assinafy/cli",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "description": "The official command-line interface for the Assinafy digital-signature API",
5
5
  "license": "MIT",
6
6
  "type": "module",