@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.
package/docs/signer.md ADDED
@@ -0,0 +1,240 @@
1
+ # `assinafy signer`
2
+
3
+ ## `assinafy signer`
4
+
5
+ ```text
6
+ Usage: assinafy signer [options] [command]
7
+
8
+ Signer-side flows authenticated by a signer access code
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ document [options] <signerId> Fetch the signer's current document
15
+ documents [options] <signerId> List the signer's documents
16
+ download [options] <signerId> <documentId> <artifact> Download a signer document artifact
17
+ self [options] Fetch the signer's own profile
18
+ accept-terms [options] Accept the platform terms as the signer
19
+ verify-email [options] Verify the email OTP for a signer
20
+ confirm-data [options] <documentId> Confirm a signer's contact data
21
+ upload-signature [options] Upload the signer's signature or initial image
22
+ download-signature [options] Download the signer's signature or initial image
23
+ assignment [options] Fetch the assignment as the signer sees it
24
+ sign [options] <documentId> <assignmentId> Sign a document as the signer
25
+ decline [options] <documentId> <assignmentId> Decline an assignment as the signer
26
+ sign-multiple [options] Sign multiple documents at once
27
+ decline-multiple [options] Decline multiple documents at once
28
+ help [command] display help for command
29
+ ```
30
+
31
+ ### `assinafy signer document`
32
+
33
+ ```text
34
+ Usage: assinafy signer document [options] <signerId>
35
+
36
+ Fetch the signer's current document
37
+
38
+ Arguments:
39
+ signerId Signer ID
40
+
41
+ Options:
42
+ --access-code <code> Signer access code
43
+ -h, --help display help for command
44
+ ```
45
+
46
+ ### `assinafy signer documents`
47
+
48
+ ```text
49
+ Usage: assinafy signer documents [options] <signerId>
50
+
51
+ List the signer's documents
52
+
53
+ Arguments:
54
+ signerId Signer ID
55
+
56
+ Options:
57
+ --access-code <code> Signer access code
58
+ --page <n> Page number to fetch
59
+ --per-page <n> Items per page
60
+ --search <query> Filter results by a search query
61
+ --sort <field> Sort by field (prefix with - for descending)
62
+ -h, --help display help for command
63
+ ```
64
+
65
+ ### `assinafy signer download`
66
+
67
+ ```text
68
+ Usage: assinafy signer download [options] <signerId> <documentId> <artifact>
69
+
70
+ Download a signer document artifact
71
+
72
+ Arguments:
73
+ signerId Signer ID
74
+ documentId Document ID
75
+ artifact original | certificated | certificate-page | bundle
76
+
77
+ Options:
78
+ --access-code <code> Signer access code
79
+ -o, --output <path> Output file path
80
+ -h, --help display help for command
81
+ ```
82
+
83
+ ### `assinafy signer self`
84
+
85
+ ```text
86
+ Usage: assinafy signer self [options]
87
+
88
+ Fetch the signer's own profile
89
+
90
+ Options:
91
+ --access-code <code> Signer access code
92
+ -h, --help display help for command
93
+ ```
94
+
95
+ ### `assinafy signer accept-terms`
96
+
97
+ ```text
98
+ Usage: assinafy signer accept-terms [options]
99
+
100
+ Accept the platform terms as the signer
101
+
102
+ Options:
103
+ --access-code <code> Signer access code
104
+ -h, --help display help for command
105
+ ```
106
+
107
+ ### `assinafy signer verify-email`
108
+
109
+ ```text
110
+ Usage: assinafy signer verify-email [options]
111
+
112
+ Verify the email OTP for a signer
113
+
114
+ Options:
115
+ --access-code <code> Signer access code
116
+ --code <otp> Verification code
117
+ -h, --help display help for command
118
+ ```
119
+
120
+ ### `assinafy signer confirm-data`
121
+
122
+ ```text
123
+ Usage: assinafy signer confirm-data [options] <documentId>
124
+
125
+ Confirm a signer's contact data
126
+
127
+ Arguments:
128
+ documentId Document ID
129
+
130
+ Options:
131
+ --access-code <code> Signer access code
132
+ --email <email> Email to confirm
133
+ --phone <number> WhatsApp phone number to confirm
134
+ --accept-terms Also accept the platform terms
135
+ -h, --help display help for command
136
+ ```
137
+
138
+ ### `assinafy signer upload-signature`
139
+
140
+ ```text
141
+ Usage: assinafy signer upload-signature [options]
142
+
143
+ Upload the signer's signature or initial image
144
+
145
+ Options:
146
+ --access-code <code> Signer access code
147
+ --file <path> Path to the signature image (PNG)
148
+ --type <type> signature or initial (default: "signature")
149
+ --content-type <mime> Image MIME type (default: "image/png")
150
+ -h, --help display help for command
151
+ ```
152
+
153
+ ### `assinafy signer download-signature`
154
+
155
+ ```text
156
+ Usage: assinafy signer download-signature [options]
157
+
158
+ Download the signer's signature or initial image
159
+
160
+ Options:
161
+ --access-code <code> Signer access code
162
+ --type <type> signature or initial (default: "signature")
163
+ -o, --output <path> Output file path
164
+ -h, --help display help for command
165
+ ```
166
+
167
+ ### `assinafy signer assignment`
168
+
169
+ ```text
170
+ Usage: assinafy signer assignment [options]
171
+
172
+ Fetch the assignment as the signer sees it
173
+
174
+ Options:
175
+ --access-code <code> Signer access code
176
+ --accept-terms Pass has_accepted_terms=true
177
+ -h, --help display help for command
178
+ ```
179
+
180
+ ### `assinafy signer sign`
181
+
182
+ ```text
183
+ Usage: assinafy signer sign [options] <documentId> <assignmentId>
184
+
185
+ Sign a document as the signer
186
+
187
+ Arguments:
188
+ documentId Document ID
189
+ assignmentId Assignment ID
190
+
191
+ Options:
192
+ --access-code <code> Signer access code
193
+ --entries <json> JSON array of { itemId, fieldId, pageId, value } entries
194
+ -h, --help display help for command
195
+ ```
196
+
197
+ ### `assinafy signer decline`
198
+
199
+ ```text
200
+ Usage: assinafy signer decline [options] <documentId> <assignmentId>
201
+
202
+ Decline an assignment as the signer
203
+
204
+ Arguments:
205
+ documentId Document ID
206
+ assignmentId Assignment ID
207
+
208
+ Options:
209
+ --access-code <code> Signer access code
210
+ --reason <reason> Reason for declining
211
+ -h, --help display help for command
212
+ ```
213
+
214
+ ### `assinafy signer sign-multiple`
215
+
216
+ ```text
217
+ Usage: assinafy signer sign-multiple [options]
218
+
219
+ Sign multiple documents at once
220
+
221
+ Options:
222
+ --access-code <code> Signer access code
223
+ --document-ids <csv> Comma-separated document IDs
224
+ -h, --help display help for command
225
+ ```
226
+
227
+ ### `assinafy signer decline-multiple`
228
+
229
+ ```text
230
+ Usage: assinafy signer decline-multiple [options]
231
+
232
+ Decline multiple documents at once
233
+
234
+ Options:
235
+ --access-code <code> Signer access code
236
+ --document-ids <csv> Comma-separated document IDs
237
+ --reason <reason> Reason for declining
238
+ -h, --help display help for command
239
+ ```
240
+
@@ -0,0 +1,115 @@
1
+ # `assinafy signers`
2
+
3
+ ## `assinafy signers`
4
+
5
+ ```text
6
+ Usage: assinafy signers [options] [command]
7
+
8
+ Create, list, and manage signers
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ create [options] Create a signer (reuses an existing one with the
15
+ same email)
16
+ list [options] List signers in the workspace
17
+ get <id> Show a signer by ID
18
+ update [options] <id> Update a signer
19
+ delete|rm [options] <id> Delete a signer
20
+ find-by-email <email> Find a signer by email address
21
+ help [command] display help for command
22
+ ```
23
+
24
+ ### `assinafy signers create`
25
+
26
+ ```text
27
+ Usage: assinafy signers create [options]
28
+
29
+ Create a signer (reuses an existing one with the same email)
30
+
31
+ Options:
32
+ --name <name> Signer full name
33
+ --email <email> Email address
34
+ --phone <number> WhatsApp phone number (E.164)
35
+ --cpf <cpf> Brazilian tax ID (CPF); non-digits are stripped
36
+ --metadata <json> JSON object of metadata
37
+ -h, --help display help for command
38
+ ```
39
+
40
+ ### `assinafy signers list`
41
+
42
+ ```text
43
+ Usage: assinafy signers list [options]
44
+
45
+ List signers in the workspace
46
+
47
+ Options:
48
+ --page <n> Page number to fetch
49
+ --per-page <n> Items per page
50
+ --search <query> Filter results by a search query
51
+ --sort <field> Sort by field (prefix with - for descending)
52
+ -h, --help display help for command
53
+ ```
54
+
55
+ ### `assinafy signers get`
56
+
57
+ ```text
58
+ Usage: assinafy signers get [options] <id>
59
+
60
+ Show a signer by ID
61
+
62
+ Arguments:
63
+ id Signer ID
64
+
65
+ Options:
66
+ -h, --help display help for command
67
+ ```
68
+
69
+ ### `assinafy signers update`
70
+
71
+ ```text
72
+ Usage: assinafy signers update [options] <id>
73
+
74
+ Update a signer
75
+
76
+ Arguments:
77
+ id Signer ID
78
+
79
+ Options:
80
+ --name <name> Signer full name
81
+ --email <email> Email address
82
+ --phone <number> WhatsApp phone number (E.164)
83
+ --cpf <cpf> Brazilian tax ID (CPF)
84
+ -h, --help display help for command
85
+ ```
86
+
87
+ ### `assinafy signers delete`
88
+
89
+ ```text
90
+ Usage: assinafy signers delete|rm [options] <id>
91
+
92
+ Delete a signer
93
+
94
+ Arguments:
95
+ id Signer ID
96
+
97
+ Options:
98
+ -y, --yes Skip the confirmation prompt
99
+ -h, --help display help for command
100
+ ```
101
+
102
+ ### `assinafy signers find-by-email`
103
+
104
+ ```text
105
+ Usage: assinafy signers find-by-email [options] <email>
106
+
107
+ Find a signer by email address
108
+
109
+ Arguments:
110
+ email Email address
111
+
112
+ Options:
113
+ -h, --help display help for command
114
+ ```
115
+
package/docs/tags.md ADDED
@@ -0,0 +1,78 @@
1
+ # `assinafy tags`
2
+
3
+ ## `assinafy tags`
4
+
5
+ ```text
6
+ Usage: assinafy tags [options] [command]
7
+
8
+ Manage workspace tags
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ list [options] List workspace tags (alphabetical)
15
+ create [options] Create a tag
16
+ update [options] <id> Update a tag name and/or color
17
+ delete|rm [options] <id> Delete a tag
18
+ help [command] display help for command
19
+ ```
20
+
21
+ ### `assinafy tags list`
22
+
23
+ ```text
24
+ Usage: assinafy tags list [options]
25
+
26
+ List workspace tags (alphabetical)
27
+
28
+ Options:
29
+ --search <query> Case-insensitive name filter
30
+ -h, --help display help for command
31
+ ```
32
+
33
+ ### `assinafy tags create`
34
+
35
+ ```text
36
+ Usage: assinafy tags create [options]
37
+
38
+ Create a tag
39
+
40
+ Options:
41
+ --name <name> Tag name (unique per workspace)
42
+ --color <hex> 6-char hex color, with or without leading #
43
+ -h, --help display help for command
44
+ ```
45
+
46
+ ### `assinafy tags update`
47
+
48
+ ```text
49
+ Usage: assinafy tags update [options] <id>
50
+
51
+ Update a tag name and/or color
52
+
53
+ Arguments:
54
+ id Tag ID
55
+
56
+ Options:
57
+ --name <name> New name
58
+ --color <hex> 6-char hex color
59
+ --clear-color Clear the color
60
+ -h, --help display help for command
61
+ ```
62
+
63
+ ### `assinafy tags delete`
64
+
65
+ ```text
66
+ Usage: assinafy tags delete|rm [options] <id>
67
+
68
+ Delete a tag
69
+
70
+ Arguments:
71
+ id Tag ID
72
+
73
+ Options:
74
+ --force Detach the tag from everything first
75
+ -y, --yes Skip the confirmation prompt
76
+ -h, --help display help for command
77
+ ```
78
+
@@ -0,0 +1,64 @@
1
+ # `assinafy templates`
2
+
3
+ ## `assinafy templates`
4
+
5
+ ```text
6
+ Usage: assinafy templates [options] [command]
7
+
8
+ List and inspect document templates
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ list [options] List templates in the workspace
15
+ get <id> Show a template by ID
16
+ download-page [options] <templateId> <pageId> Download a template page as a JPEG
17
+ help [command] display help for command
18
+ ```
19
+
20
+ ### `assinafy templates list`
21
+
22
+ ```text
23
+ Usage: assinafy templates list [options]
24
+
25
+ List templates in the workspace
26
+
27
+ Options:
28
+ --page <n> Page number to fetch
29
+ --per-page <n> Items per page
30
+ --search <query> Filter results by a search query
31
+ --sort <field> Sort by field (prefix with - for descending)
32
+ -h, --help display help for command
33
+ ```
34
+
35
+ ### `assinafy templates get`
36
+
37
+ ```text
38
+ Usage: assinafy templates get [options] <id>
39
+
40
+ Show a template by ID
41
+
42
+ Arguments:
43
+ id Template ID
44
+
45
+ Options:
46
+ -h, --help display help for command
47
+ ```
48
+
49
+ ### `assinafy templates download-page`
50
+
51
+ ```text
52
+ Usage: assinafy templates download-page [options] <templateId> <pageId>
53
+
54
+ Download a template page as a JPEG
55
+
56
+ Arguments:
57
+ templateId Template ID
58
+ pageId Page ID
59
+
60
+ Options:
61
+ -o, --output <path> Output file path
62
+ -h, --help display help for command
63
+ ```
64
+
@@ -0,0 +1,116 @@
1
+ # `assinafy webhooks`
2
+
3
+ ## `assinafy webhooks`
4
+
5
+ ```text
6
+ Usage: assinafy webhooks [options] [command]
7
+
8
+ Manage webhook subscriptions and delivery history
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ register [options] Register (or replace) the workspace webhook subscription
15
+ get Show the current webhook subscription
16
+ delete|rm [options] Delete the webhook subscription
17
+ inactivate Inactivate the webhook subscription without deleting it
18
+ event-types List supported webhook event types
19
+ dispatches [options] List webhook delivery history
20
+ retry <dispatchId> Retry delivery of a specific dispatch
21
+ help [command] display help for command
22
+ ```
23
+
24
+ ### `assinafy webhooks register`
25
+
26
+ ```text
27
+ Usage: assinafy webhooks register [options]
28
+
29
+ Register (or replace) the workspace webhook subscription
30
+
31
+ Options:
32
+ --url <url> Endpoint URL to receive events
33
+ --email <email> Contact email for delivery problems
34
+ --events <csv> Comma-separated event names (defaults to a sensible set)
35
+ --inactive Register the subscription as inactive
36
+ -h, --help display help for command
37
+ ```
38
+
39
+ ### `assinafy webhooks get`
40
+
41
+ ```text
42
+ Usage: assinafy webhooks get [options]
43
+
44
+ Show the current webhook subscription
45
+
46
+ Options:
47
+ -h, --help display help for command
48
+ ```
49
+
50
+ ### `assinafy webhooks delete`
51
+
52
+ ```text
53
+ Usage: assinafy webhooks delete|rm [options]
54
+
55
+ Delete the webhook subscription
56
+
57
+ Options:
58
+ -y, --yes Skip the confirmation prompt
59
+ -h, --help display help for command
60
+ ```
61
+
62
+ ### `assinafy webhooks inactivate`
63
+
64
+ ```text
65
+ Usage: assinafy webhooks inactivate [options]
66
+
67
+ Inactivate the webhook subscription without deleting it
68
+
69
+ Options:
70
+ -h, --help display help for command
71
+ ```
72
+
73
+ ### `assinafy webhooks event-types`
74
+
75
+ ```text
76
+ Usage: assinafy webhooks event-types [options]
77
+
78
+ List supported webhook event types
79
+
80
+ Options:
81
+ -h, --help display help for command
82
+ ```
83
+
84
+ ### `assinafy webhooks dispatches`
85
+
86
+ ```text
87
+ Usage: assinafy webhooks dispatches [options]
88
+
89
+ List webhook delivery history
90
+
91
+ Options:
92
+ --event <event> Filter by event name
93
+ --delivered <bool> Filter by delivery status (true/false)
94
+ --from <unix> Start of time range (unix seconds)
95
+ --to <unix> End of time range (unix seconds)
96
+ --page <n> Page number to fetch
97
+ --per-page <n> Items per page
98
+ --search <query> Filter results by a search query
99
+ --sort <field> Sort by field (prefix with - for descending)
100
+ -h, --help display help for command
101
+ ```
102
+
103
+ ### `assinafy webhooks retry`
104
+
105
+ ```text
106
+ Usage: assinafy webhooks retry [options] <dispatchId>
107
+
108
+ Retry delivery of a specific dispatch
109
+
110
+ Arguments:
111
+ dispatchId Dispatch ID
112
+
113
+ Options:
114
+ -h, --help display help for command
115
+ ```
116
+
package/docs/whoami.md ADDED
@@ -0,0 +1,13 @@
1
+ # `assinafy whoami`
2
+
3
+ ## `assinafy whoami`
4
+
5
+ ```text
6
+ Usage: assinafy whoami [options]
7
+
8
+ Verify credentials and list the workspaces they can access
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+ ```
13
+
@@ -0,0 +1,92 @@
1
+ # `assinafy workspaces`
2
+
3
+ ## `assinafy workspaces`
4
+
5
+ ```text
6
+ Usage: assinafy workspaces|accounts [options] [command]
7
+
8
+ Manage workspaces (accounts)
9
+
10
+ Options:
11
+ -h, --help display help for command
12
+
13
+ Commands:
14
+ create [options] Create a workspace (account)
15
+ list List workspaces you can access
16
+ get <id> Show a workspace by ID
17
+ update [options] <id> Update a workspace
18
+ delete|rm [options] <id> Delete a workspace
19
+ help [command] display help for command
20
+ ```
21
+
22
+ ### `assinafy workspaces create`
23
+
24
+ ```text
25
+ Usage: assinafy workspaces create [options]
26
+
27
+ Create a workspace (account)
28
+
29
+ Options:
30
+ --name <name> Workspace name
31
+ --primary-color <hex> Primary brand color
32
+ --secondary-color <hex> Secondary brand color
33
+ -h, --help display help for command
34
+ ```
35
+
36
+ ### `assinafy workspaces list`
37
+
38
+ ```text
39
+ Usage: assinafy workspaces list [options]
40
+
41
+ List workspaces you can access
42
+
43
+ Options:
44
+ -h, --help display help for command
45
+ ```
46
+
47
+ ### `assinafy workspaces get`
48
+
49
+ ```text
50
+ Usage: assinafy workspaces get [options] <id>
51
+
52
+ Show a workspace by ID
53
+
54
+ Arguments:
55
+ id Account/workspace ID
56
+
57
+ Options:
58
+ -h, --help display help for command
59
+ ```
60
+
61
+ ### `assinafy workspaces update`
62
+
63
+ ```text
64
+ Usage: assinafy workspaces update [options] <id>
65
+
66
+ Update a workspace
67
+
68
+ Arguments:
69
+ id Account/workspace ID
70
+
71
+ Options:
72
+ --name <name> New name
73
+ --primary-color <hex> Primary brand color (pass empty to clear)
74
+ --secondary-color <hex> Secondary brand color (pass empty to clear)
75
+ -h, --help display help for command
76
+ ```
77
+
78
+ ### `assinafy workspaces delete`
79
+
80
+ ```text
81
+ Usage: assinafy workspaces delete|rm [options] <id>
82
+
83
+ Delete a workspace
84
+
85
+ Arguments:
86
+ id Account/workspace ID
87
+
88
+ Options:
89
+ -y, --yes Skip the confirmation prompt
90
+ -h, --help display help for command
91
+ ```
92
+