@assinafy/cli 1.0.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.
@@ -0,0 +1,342 @@
1
+ # `assinafy documents`
2
+
3
+ ## `assinafy documents`
4
+
5
+ ```text
6
+ Usage: assinafy documents [options] [command]
7
+
8
+ Upload, list, download, and manage documents
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ upload [options] <file> Upload a PDF to the workspace
15
+ list [options] List workspace documents
16
+ get <id> Show details for a document
17
+ download [options] <id> Download a document artifact
18
+ thumbnail [options] <id> Download the document thumbnail (JPEG)
19
+ download-page [options] <id> <pageId> Download a single document page (JPEG)
20
+ activities <id> Show the activity log for a document
21
+ delete|rm [options] <id> Delete a document
22
+ tags <id> List the tags attached to a document
23
+ tags-set <id> [names...] Replace a document tag set (names; unknown names are auto-created)
24
+ tags-add <id> <names...> Attach additional tags by name without removing existing ones
25
+ tags-remove <id> <tagId> Detach a single tag from a document
26
+ create-from-template [options] <templateId> Create a document from a template
27
+ estimate-template-cost [options] <templateId> Estimate the credit cost of creating a document from a template
28
+ verify <hash> Verify a document by its signature hash
29
+ statuses List every possible document status
30
+ public <id> Public (unauthenticated) lookup of basic document info
31
+ send-token [options] <id> Send a 6-digit verification token to a signer
32
+ progress <id> Show signing progress for a document
33
+ wait [options] <id> Poll a document until it is ready (or fails / times out)
34
+ help [command] display help for command
35
+ ```
36
+
37
+ ### `assinafy documents upload`
38
+
39
+ ```text
40
+ Usage: assinafy documents upload [options] <file>
41
+
42
+ Upload a PDF to the workspace
43
+
44
+ Arguments:
45
+ file Path to the PDF file
46
+
47
+ Options:
48
+ --name <name> Override the document name (defaults to the file name)
49
+ --metadata <json> JSON object of metadata to attach
50
+ --wait Wait until the document finishes processing
51
+ -h, --help display help for command
52
+ ```
53
+
54
+ ### `assinafy documents list`
55
+
56
+ ```text
57
+ Usage: assinafy documents list [options]
58
+
59
+ List workspace documents
60
+
61
+ Options:
62
+ --status <status> Filter by document status
63
+ --method <method> Filter by signature method (virtual or collect)
64
+ --tags <ids> Comma-separated tag IDs (AND semantics)
65
+ --page <n> Page number to fetch
66
+ --per-page <n> Items per page
67
+ --search <query> Filter results by a search query
68
+ --sort <field> Sort by field (prefix with - for descending)
69
+ -h, --help display help for command
70
+ ```
71
+
72
+ ### `assinafy documents get`
73
+
74
+ ```text
75
+ Usage: assinafy documents get [options] <id>
76
+
77
+ Show details for a document
78
+
79
+ Arguments:
80
+ id Document ID
81
+
82
+ Options:
83
+ -h, --help display help for command
84
+ ```
85
+
86
+ ### `assinafy documents download`
87
+
88
+ ```text
89
+ Usage: assinafy documents download [options] <id>
90
+
91
+ Download a document artifact
92
+
93
+ Arguments:
94
+ id Document ID
95
+
96
+ Options:
97
+ --artifact <name> original | certificated | certificate-page | bundle
98
+ (default: "certificated")
99
+ -o, --output <path> Output file path
100
+ -h, --help display help for command
101
+ ```
102
+
103
+ ### `assinafy documents thumbnail`
104
+
105
+ ```text
106
+ Usage: assinafy documents thumbnail [options] <id>
107
+
108
+ Download the document thumbnail (JPEG)
109
+
110
+ Arguments:
111
+ id Document ID
112
+
113
+ Options:
114
+ -o, --output <path> Output file path
115
+ -h, --help display help for command
116
+ ```
117
+
118
+ ### `assinafy documents download-page`
119
+
120
+ ```text
121
+ Usage: assinafy documents download-page [options] <id> <pageId>
122
+
123
+ Download a single document page (JPEG)
124
+
125
+ Arguments:
126
+ id Document ID
127
+ pageId Page ID
128
+
129
+ Options:
130
+ -o, --output <path> Output file path
131
+ -h, --help display help for command
132
+ ```
133
+
134
+ ### `assinafy documents activities`
135
+
136
+ ```text
137
+ Usage: assinafy documents activities [options] <id>
138
+
139
+ Show the activity log for a document
140
+
141
+ Arguments:
142
+ id Document ID
143
+
144
+ Options:
145
+ -h, --help display help for command
146
+ ```
147
+
148
+ ### `assinafy documents delete`
149
+
150
+ ```text
151
+ Usage: assinafy documents delete|rm [options] <id>
152
+
153
+ Delete a document
154
+
155
+ Arguments:
156
+ id Document ID
157
+
158
+ Options:
159
+ -y, --yes Skip the confirmation prompt
160
+ -h, --help display help for command
161
+ ```
162
+
163
+ ### `assinafy documents tags`
164
+
165
+ ```text
166
+ Usage: assinafy documents tags [options] <id>
167
+
168
+ List the tags attached to a document
169
+
170
+ Arguments:
171
+ id Document ID
172
+
173
+ Options:
174
+ -h, --help display help for command
175
+ ```
176
+
177
+ ### `assinafy documents tags-set`
178
+
179
+ ```text
180
+ Usage: assinafy documents tags-set [options] <id> [names...]
181
+
182
+ Replace a document tag set (names; unknown names are auto-created)
183
+
184
+ Arguments:
185
+ id Document ID
186
+ names Tag names (pass none to detach all)
187
+
188
+ Options:
189
+ -h, --help display help for command
190
+ ```
191
+
192
+ ### `assinafy documents tags-add`
193
+
194
+ ```text
195
+ Usage: assinafy documents tags-add [options] <id> <names...>
196
+
197
+ Attach additional tags by name without removing existing ones
198
+
199
+ Arguments:
200
+ id Document ID
201
+ names Tag names to attach
202
+
203
+ Options:
204
+ -h, --help display help for command
205
+ ```
206
+
207
+ ### `assinafy documents tags-remove`
208
+
209
+ ```text
210
+ Usage: assinafy documents tags-remove [options] <id> <tagId>
211
+
212
+ Detach a single tag from a document
213
+
214
+ Arguments:
215
+ id Document ID
216
+ tagId Tag ID to detach
217
+
218
+ Options:
219
+ -h, --help display help for command
220
+ ```
221
+
222
+ ### `assinafy documents create-from-template`
223
+
224
+ ```text
225
+ Usage: assinafy documents create-from-template [options] <templateId>
226
+
227
+ Create a document from a template
228
+
229
+ Arguments:
230
+ templateId Template ID
231
+
232
+ Options:
233
+ --signers <json> JSON array of signers, e.g.
234
+ '[{"role_id":"r","id":"s","verification_method":"Email","notification_methods":["Email"]}]'
235
+ --name <name> Document name
236
+ --message <message> Message shown to signers
237
+ --expires-at <iso8601> Expiration timestamp
238
+ --tags <names> Comma-separated tag names to attach
239
+ --editor-fields <json> JSON array of editor field placements
240
+ -h, --help display help for command
241
+ ```
242
+
243
+ ### `assinafy documents estimate-template-cost`
244
+
245
+ ```text
246
+ Usage: assinafy documents estimate-template-cost [options] <templateId>
247
+
248
+ Estimate the credit cost of creating a document from a template
249
+
250
+ Arguments:
251
+ templateId Template ID
252
+
253
+ Options:
254
+ --signers <json> JSON array of signers
255
+ -h, --help display help for command
256
+ ```
257
+
258
+ ### `assinafy documents verify`
259
+
260
+ ```text
261
+ Usage: assinafy documents verify [options] <hash>
262
+
263
+ Verify a document by its signature hash
264
+
265
+ Arguments:
266
+ hash Signature hash
267
+
268
+ Options:
269
+ -h, --help display help for command
270
+ ```
271
+
272
+ ### `assinafy documents statuses`
273
+
274
+ ```text
275
+ Usage: assinafy documents statuses [options]
276
+
277
+ List every possible document status
278
+
279
+ Options:
280
+ -h, --help display help for command
281
+ ```
282
+
283
+ ### `assinafy documents public`
284
+
285
+ ```text
286
+ Usage: assinafy documents public [options] <id>
287
+
288
+ Public (unauthenticated) lookup of basic document info
289
+
290
+ Arguments:
291
+ id Document ID
292
+
293
+ Options:
294
+ -h, --help display help for command
295
+ ```
296
+
297
+ ### `assinafy documents send-token`
298
+
299
+ ```text
300
+ Usage: assinafy documents send-token [options] <id>
301
+
302
+ Send a 6-digit verification token to a signer
303
+
304
+ Arguments:
305
+ id Document ID
306
+
307
+ Options:
308
+ --recipient <value> Email address or phone number
309
+ --channel <channel> email or whatsapp (default: "email")
310
+ -h, --help display help for command
311
+ ```
312
+
313
+ ### `assinafy documents progress`
314
+
315
+ ```text
316
+ Usage: assinafy documents progress [options] <id>
317
+
318
+ Show signing progress for a document
319
+
320
+ Arguments:
321
+ id Document ID
322
+
323
+ Options:
324
+ -h, --help display help for command
325
+ ```
326
+
327
+ ### `assinafy documents wait`
328
+
329
+ ```text
330
+ Usage: assinafy documents wait [options] <id>
331
+
332
+ Poll a document until it is ready (or fails / times out)
333
+
334
+ Arguments:
335
+ id Document ID
336
+
337
+ Options:
338
+ --timeout <ms> Maximum time to wait in milliseconds (default: "30000")
339
+ --interval <ms> Poll interval in milliseconds (default: "2000")
340
+ -h, --help display help for command
341
+ ```
342
+
package/docs/fields.md ADDED
@@ -0,0 +1,143 @@
1
+ # `assinafy fields`
2
+
3
+ ## `assinafy fields`
4
+
5
+ ```text
6
+ Usage: assinafy fields [options] [command]
7
+
8
+ Manage custom field definitions used by collect assignments
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ create [options] Create a custom field definition
15
+ list [options] List field definitions
16
+ get <id> Show a field definition by ID
17
+ update [options] <id> Update a field definition
18
+ delete|rm [options] <id> Delete a field definition
19
+ validate [options] <id> <value> Validate a value against a field definition
20
+ validate-multiple [options] Validate multiple field values at once
21
+ types List the platform's supported field types
22
+ help [command] display help for command
23
+ ```
24
+
25
+ ### `assinafy fields create`
26
+
27
+ ```text
28
+ Usage: assinafy fields create [options]
29
+
30
+ Create a custom field definition
31
+
32
+ Options:
33
+ --type <type> Field type (see `fields types`)
34
+ --name <name> Field name
35
+ --regex <regex> Validation regex
36
+ --required Mark the field as required
37
+ --inactive Create the field inactive
38
+ -h, --help display help for command
39
+ ```
40
+
41
+ ### `assinafy fields list`
42
+
43
+ ```text
44
+ Usage: assinafy fields list [options]
45
+
46
+ List field definitions
47
+
48
+ Options:
49
+ --include-inactive Include inactive fields
50
+ --include-standard Include standard fields (signature, initial, …)
51
+ -h, --help display help for command
52
+ ```
53
+
54
+ ### `assinafy fields get`
55
+
56
+ ```text
57
+ Usage: assinafy fields get [options] <id>
58
+
59
+ Show a field definition by ID
60
+
61
+ Arguments:
62
+ id Field ID
63
+
64
+ Options:
65
+ -h, --help display help for command
66
+ ```
67
+
68
+ ### `assinafy fields update`
69
+
70
+ ```text
71
+ Usage: assinafy fields update [options] <id>
72
+
73
+ Update a field definition
74
+
75
+ Arguments:
76
+ id Field ID
77
+
78
+ Options:
79
+ --type <type> Field type
80
+ --name <name> Field name
81
+ --regex <regex> Validation regex
82
+ --required Mark as required
83
+ --optional Mark as not required
84
+ --active Activate the field
85
+ --inactive Deactivate the field
86
+ -h, --help display help for command
87
+ ```
88
+
89
+ ### `assinafy fields delete`
90
+
91
+ ```text
92
+ Usage: assinafy fields delete|rm [options] <id>
93
+
94
+ Delete a field definition
95
+
96
+ Arguments:
97
+ id Field ID
98
+
99
+ Options:
100
+ -y, --yes Skip the confirmation prompt
101
+ -h, --help display help for command
102
+ ```
103
+
104
+ ### `assinafy fields validate`
105
+
106
+ ```text
107
+ Usage: assinafy fields validate [options] <id> <value>
108
+
109
+ Validate a value against a field definition
110
+
111
+ Arguments:
112
+ id Field ID
113
+ value Value to validate
114
+
115
+ Options:
116
+ --signer-access-code <code> Signer access code (for signer-side validation)
117
+ -h, --help display help for command
118
+ ```
119
+
120
+ ### `assinafy fields validate-multiple`
121
+
122
+ ```text
123
+ Usage: assinafy fields validate-multiple [options]
124
+
125
+ Validate multiple field values at once
126
+
127
+ Options:
128
+ --entries <json> JSON array of { field_id, value } entries
129
+ --signer-access-code <code> Signer access code
130
+ -h, --help display help for command
131
+ ```
132
+
133
+ ### `assinafy fields types`
134
+
135
+ ```text
136
+ Usage: assinafy fields types [options]
137
+
138
+ List the platform's supported field types
139
+
140
+ Options:
141
+ -h, --help display help for command
142
+ ```
143
+
package/docs/login.md ADDED
@@ -0,0 +1,14 @@
1
+ # `assinafy login`
2
+
3
+ ## `assinafy login`
4
+
5
+ ```text
6
+ Usage: assinafy login [options]
7
+
8
+ Store an API key and account ID in a profile (interactive). Reads the global
9
+ --api-key, --account-id, --base-url flags when supplied.
10
+
11
+ Options:
12
+ -h, --help display help for command
13
+ ```
14
+
package/docs/logout.md ADDED
@@ -0,0 +1,13 @@
1
+ # `assinafy logout`
2
+
3
+ ## `assinafy logout`
4
+
5
+ ```text
6
+ Usage: assinafy logout [options]
7
+
8
+ Remove stored credentials from the active profile
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+ ```
13
+
package/docs/send.md ADDED
@@ -0,0 +1,24 @@
1
+ # `assinafy send`
2
+
3
+ ## `assinafy send`
4
+
5
+ ```text
6
+ Usage: assinafy send [options] <file>
7
+
8
+ Upload a PDF, create signers, and request signatures in one step
9
+
10
+ Arguments:
11
+ file Path to the PDF file
12
+
13
+ Options:
14
+ --signer <spec> Signer as "Name <email-or-phone>" (repeatable)
15
+ (default: [])
16
+ --signers <json> JSON array of signer objects (overrides --signer)
17
+ --message <message> Message shown to signers
18
+ --expires-at <iso8601> Expiration timestamp
19
+ --copy-receivers <csv> Comma-separated emails to CC
20
+ --metadata <json> JSON object of metadata to attach to the document
21
+ --no-wait Do not wait for the document to finish processing
22
+ -h, --help display help for command
23
+ ```
24
+