@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/LICENSE +19 -0
- package/README.md +245 -0
- package/dist/cli.cjs +24224 -0
- package/docs/README.md +20 -0
- package/docs/assignments.md +123 -0
- package/docs/auth.md +153 -0
- package/docs/config.md +98 -0
- package/docs/docs.md +14 -0
- package/docs/documents.md +342 -0
- package/docs/fields.md +143 -0
- package/docs/login.md +14 -0
- package/docs/logout.md +13 -0
- package/docs/send.md +24 -0
- package/docs/signer.md +240 -0
- package/docs/signers.md +115 -0
- package/docs/tags.md +78 -0
- package/docs/templates.md +64 -0
- package/docs/webhooks.md +116 -0
- package/docs/whoami.md +13 -0
- package/docs/workspaces.md +92 -0
- package/install.ps1 +124 -0
- package/install.sh +197 -0
- package/package.json +63 -0
package/docs/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Command reference
|
|
2
|
+
|
|
3
|
+
Auto-generated from `assinafy <command> --help`.
|
|
4
|
+
|
|
5
|
+
- [send](./send.md)
|
|
6
|
+
- [documents](./documents.md)
|
|
7
|
+
- [signers](./signers.md)
|
|
8
|
+
- [assignments](./assignments.md)
|
|
9
|
+
- [templates](./templates.md)
|
|
10
|
+
- [tags](./tags.md)
|
|
11
|
+
- [fields](./fields.md)
|
|
12
|
+
- [webhooks](./webhooks.md)
|
|
13
|
+
- [workspaces](./workspaces.md)
|
|
14
|
+
- [signer](./signer.md)
|
|
15
|
+
- [auth](./auth.md)
|
|
16
|
+
- [login](./login.md)
|
|
17
|
+
- [logout](./logout.md)
|
|
18
|
+
- [whoami](./whoami.md)
|
|
19
|
+
- [config](./config.md)
|
|
20
|
+
- [docs](./docs.md)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# `assinafy assignments`
|
|
2
|
+
|
|
3
|
+
## `assinafy assignments`
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
Usage: assinafy assignments [options] [command]
|
|
7
|
+
|
|
8
|
+
Create and manage signing assignments
|
|
9
|
+
|
|
10
|
+
Options:
|
|
11
|
+
-h, --help display help for command
|
|
12
|
+
|
|
13
|
+
Commands:
|
|
14
|
+
create [options] <documentId> Create a signing assignment for a document
|
|
15
|
+
estimate-cost [options] <documentId> Estimate the credit cost of an assignment
|
|
16
|
+
reset-expiration [options] <documentId> <assignmentId> Update or clear an assignment expiration date
|
|
17
|
+
resend <documentId> <assignmentId> <signerId> Resend the signing notification to a signer
|
|
18
|
+
estimate-resend-cost <documentId> <assignmentId> <signerId> Estimate the cost of resending a signer notification
|
|
19
|
+
whatsapp-notifications <documentId> <assignmentId> List WhatsApp notifications sent for an assignment
|
|
20
|
+
help [command] display help for command
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### `assinafy assignments create`
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Usage: assinafy assignments create [options] <documentId>
|
|
27
|
+
|
|
28
|
+
Create a signing assignment for a document
|
|
29
|
+
|
|
30
|
+
Arguments:
|
|
31
|
+
documentId Document ID
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
--signer-ids <csv> Comma-separated signer IDs
|
|
35
|
+
--signers <json> JSON array of signer refs (with verification_method,
|
|
36
|
+
step, …)
|
|
37
|
+
--method <method> virtual or collect (default: "virtual")
|
|
38
|
+
--message <message> Message shown to signers
|
|
39
|
+
--expires-at <iso8601> Expiration timestamp
|
|
40
|
+
--copy-receivers <csv> Comma-separated emails to CC
|
|
41
|
+
-h, --help display help for command
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### `assinafy assignments estimate-cost`
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
Usage: assinafy assignments estimate-cost [options] <documentId>
|
|
48
|
+
|
|
49
|
+
Estimate the credit cost of an assignment
|
|
50
|
+
|
|
51
|
+
Arguments:
|
|
52
|
+
documentId Document ID
|
|
53
|
+
|
|
54
|
+
Options:
|
|
55
|
+
--signer-ids <csv> Comma-separated signer IDs
|
|
56
|
+
--signers <json> JSON array of signer refs
|
|
57
|
+
-h, --help display help for command
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### `assinafy assignments reset-expiration`
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
Usage: assinafy assignments reset-expiration [options] <documentId> <assignmentId>
|
|
64
|
+
|
|
65
|
+
Update or clear an assignment expiration date
|
|
66
|
+
|
|
67
|
+
Arguments:
|
|
68
|
+
documentId Document ID
|
|
69
|
+
assignmentId Assignment ID
|
|
70
|
+
|
|
71
|
+
Options:
|
|
72
|
+
--expires-at <iso8601> New expiration timestamp
|
|
73
|
+
--clear Remove the expiration entirely
|
|
74
|
+
-h, --help display help for command
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `assinafy assignments resend`
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
Usage: assinafy assignments resend [options] <documentId> <assignmentId> <signerId>
|
|
81
|
+
|
|
82
|
+
Resend the signing notification to a signer
|
|
83
|
+
|
|
84
|
+
Arguments:
|
|
85
|
+
documentId Document ID
|
|
86
|
+
assignmentId Assignment ID
|
|
87
|
+
signerId Signer ID
|
|
88
|
+
|
|
89
|
+
Options:
|
|
90
|
+
-h, --help display help for command
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### `assinafy assignments estimate-resend-cost`
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
Usage: assinafy assignments estimate-resend-cost [options] <documentId> <assignmentId> <signerId>
|
|
97
|
+
|
|
98
|
+
Estimate the cost of resending a signer notification
|
|
99
|
+
|
|
100
|
+
Arguments:
|
|
101
|
+
documentId Document ID
|
|
102
|
+
assignmentId Assignment ID
|
|
103
|
+
signerId Signer ID
|
|
104
|
+
|
|
105
|
+
Options:
|
|
106
|
+
-h, --help display help for command
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### `assinafy assignments whatsapp-notifications`
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
Usage: assinafy assignments whatsapp-notifications [options] <documentId> <assignmentId>
|
|
113
|
+
|
|
114
|
+
List WhatsApp notifications sent for an assignment
|
|
115
|
+
|
|
116
|
+
Arguments:
|
|
117
|
+
documentId Document ID
|
|
118
|
+
assignmentId Assignment ID
|
|
119
|
+
|
|
120
|
+
Options:
|
|
121
|
+
-h, --help display help for command
|
|
122
|
+
```
|
|
123
|
+
|
package/docs/auth.md
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# `assinafy auth`
|
|
2
|
+
|
|
3
|
+
## `assinafy auth`
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
Usage: assinafy auth [options] [command]
|
|
7
|
+
|
|
8
|
+
Authentication, password management, and personal API keys
|
|
9
|
+
|
|
10
|
+
Options:
|
|
11
|
+
-h, --help display help for command
|
|
12
|
+
|
|
13
|
+
Commands:
|
|
14
|
+
login [options] <email> Exchange email + password for a JWT access
|
|
15
|
+
token (no existing credentials required)
|
|
16
|
+
social-login [options] Exchange a provider token for an Assinafy JWT
|
|
17
|
+
(no existing credentials required)
|
|
18
|
+
change-password [options] Change the authenticated user's password
|
|
19
|
+
(requires --token or ASSINAFY_TOKEN)
|
|
20
|
+
request-password-reset <email> Email a password-reset link to the user (no
|
|
21
|
+
existing credentials required)
|
|
22
|
+
reset-password [options] Complete a password reset with the emailed
|
|
23
|
+
token (no existing credentials required)
|
|
24
|
+
api-keys Manage the current user personal API key
|
|
25
|
+
(requires --token or ASSINAFY_TOKEN)
|
|
26
|
+
help [command] display help for command
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### `assinafy auth login`
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
Usage: assinafy auth login [options] <email>
|
|
33
|
+
|
|
34
|
+
Exchange email + password for a JWT access token (no existing credentials
|
|
35
|
+
required)
|
|
36
|
+
|
|
37
|
+
Arguments:
|
|
38
|
+
email Account email
|
|
39
|
+
|
|
40
|
+
Options:
|
|
41
|
+
--password <password> Password (prompted if omitted)
|
|
42
|
+
-h, --help display help for command
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### `assinafy auth social-login`
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
Usage: assinafy auth social-login [options]
|
|
49
|
+
|
|
50
|
+
Exchange a provider token for an Assinafy JWT (no existing credentials required)
|
|
51
|
+
|
|
52
|
+
Options:
|
|
53
|
+
--provider <provider> OAuth provider (e.g. google)
|
|
54
|
+
--provider-token <token> Provider token
|
|
55
|
+
--accept-terms Accept the platform terms
|
|
56
|
+
-h, --help display help for command
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### `assinafy auth change-password`
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
Usage: assinafy auth change-password [options]
|
|
63
|
+
|
|
64
|
+
Change the authenticated user's password (requires --token or ASSINAFY_TOKEN)
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
--email <email> Account email
|
|
68
|
+
--password <password> Current password (prompted if omitted)
|
|
69
|
+
--new-password <password> New password (prompted if omitted)
|
|
70
|
+
-h, --help display help for command
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### `assinafy auth request-password-reset`
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
Usage: assinafy auth request-password-reset [options] <email>
|
|
77
|
+
|
|
78
|
+
Email a password-reset link to the user (no existing credentials required)
|
|
79
|
+
|
|
80
|
+
Arguments:
|
|
81
|
+
email Account email
|
|
82
|
+
|
|
83
|
+
Options:
|
|
84
|
+
-h, --help display help for command
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### `assinafy auth reset-password`
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
Usage: assinafy auth reset-password [options]
|
|
91
|
+
|
|
92
|
+
Complete a password reset with the emailed token (no existing credentials
|
|
93
|
+
required)
|
|
94
|
+
|
|
95
|
+
Options:
|
|
96
|
+
--email <email> Account email
|
|
97
|
+
--token <token> Reset token from the email
|
|
98
|
+
--new-password <password> New password (prompted if omitted)
|
|
99
|
+
-h, --help display help for command
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### `assinafy auth api-keys`
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
Usage: assinafy auth api-keys [options] [command]
|
|
106
|
+
|
|
107
|
+
Manage the current user personal API key (requires --token or ASSINAFY_TOKEN)
|
|
108
|
+
|
|
109
|
+
Options:
|
|
110
|
+
-h, --help display help for command
|
|
111
|
+
|
|
112
|
+
Commands:
|
|
113
|
+
create [options] Generate (and rotate) the current user API key
|
|
114
|
+
get Show the masked current API key
|
|
115
|
+
delete|rm [options] Revoke the current API key
|
|
116
|
+
help [command] display help for command
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### `assinafy auth api-keys create`
|
|
120
|
+
|
|
121
|
+
```text
|
|
122
|
+
Usage: assinafy auth api-keys create [options]
|
|
123
|
+
|
|
124
|
+
Generate (and rotate) the current user API key
|
|
125
|
+
|
|
126
|
+
Options:
|
|
127
|
+
--password <password> Account password (prompted if omitted)
|
|
128
|
+
-h, --help display help for command
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### `assinafy auth api-keys get`
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
Usage: assinafy auth api-keys get [options]
|
|
135
|
+
|
|
136
|
+
Show the masked current API key
|
|
137
|
+
|
|
138
|
+
Options:
|
|
139
|
+
-h, --help display help for command
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
#### `assinafy auth api-keys delete`
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
Usage: assinafy auth api-keys delete|rm [options]
|
|
146
|
+
|
|
147
|
+
Revoke the current API key
|
|
148
|
+
|
|
149
|
+
Options:
|
|
150
|
+
-y, --yes Skip the confirmation prompt
|
|
151
|
+
-h, --help display help for command
|
|
152
|
+
```
|
|
153
|
+
|
package/docs/config.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# `assinafy config`
|
|
2
|
+
|
|
3
|
+
## `assinafy config`
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
Usage: assinafy config [options] [command]
|
|
7
|
+
|
|
8
|
+
Manage credentials, profiles, and settings
|
|
9
|
+
|
|
10
|
+
Options:
|
|
11
|
+
-h, --help display help for command
|
|
12
|
+
|
|
13
|
+
Commands:
|
|
14
|
+
set [options] Save credentials/settings into the active profile. Uses
|
|
15
|
+
the global --api-key, --token, --account-id, --base-url
|
|
16
|
+
flags plus --webhook-secret.
|
|
17
|
+
get Show the effective configuration (secrets masked)
|
|
18
|
+
list|profiles List configured profiles
|
|
19
|
+
use <profile> Set the default profile
|
|
20
|
+
remove|rm <profile> Delete a profile from the config file
|
|
21
|
+
path Print the config file path
|
|
22
|
+
help [command] display help for command
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### `assinafy config set`
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
Usage: assinafy config set [options]
|
|
29
|
+
|
|
30
|
+
Save credentials/settings into the active profile. Uses the global --api-key,
|
|
31
|
+
--token, --account-id, --base-url flags plus --webhook-secret.
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
--webhook-secret <secret> Shared secret for verifying webhooks
|
|
35
|
+
-h, --help display help for command
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### `assinafy config get`
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
Usage: assinafy config get [options]
|
|
42
|
+
|
|
43
|
+
Show the effective configuration (secrets masked)
|
|
44
|
+
|
|
45
|
+
Options:
|
|
46
|
+
-h, --help display help for command
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### `assinafy config list`
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
Usage: assinafy config list|profiles [options]
|
|
53
|
+
|
|
54
|
+
List configured profiles
|
|
55
|
+
|
|
56
|
+
Options:
|
|
57
|
+
-h, --help display help for command
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### `assinafy config use`
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
Usage: assinafy config use [options] <profile>
|
|
64
|
+
|
|
65
|
+
Set the default profile
|
|
66
|
+
|
|
67
|
+
Arguments:
|
|
68
|
+
profile Profile name to make default
|
|
69
|
+
|
|
70
|
+
Options:
|
|
71
|
+
-h, --help display help for command
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### `assinafy config remove`
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
Usage: assinafy config remove|rm [options] <profile>
|
|
78
|
+
|
|
79
|
+
Delete a profile from the config file
|
|
80
|
+
|
|
81
|
+
Arguments:
|
|
82
|
+
profile Profile name to delete
|
|
83
|
+
|
|
84
|
+
Options:
|
|
85
|
+
-h, --help display help for command
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### `assinafy config path`
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
Usage: assinafy config path [options]
|
|
92
|
+
|
|
93
|
+
Print the config file path
|
|
94
|
+
|
|
95
|
+
Options:
|
|
96
|
+
-h, --help display help for command
|
|
97
|
+
```
|
|
98
|
+
|
package/docs/docs.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# `assinafy docs`
|
|
2
|
+
|
|
3
|
+
## `assinafy docs`
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
Usage: assinafy docs [options]
|
|
7
|
+
|
|
8
|
+
Print (or open) the Assinafy API documentation URL
|
|
9
|
+
|
|
10
|
+
Options:
|
|
11
|
+
--open Open the documentation in your default browser
|
|
12
|
+
-h, --help display help for command
|
|
13
|
+
```
|
|
14
|
+
|