picked 0.0.120-next.3 → 0.0.120
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.
|
@@ -49,6 +49,7 @@ operation, or MFA. They match the `AuthErrorCode` enum in the schema.
|
|
|
49
49
|
| `EMAIL_NOT_CONFIRMED` | The account is there, but nobody verified the email address. See [Authentication](/reference/management-api/authentication#the-mutations). |
|
|
50
50
|
| `USER_NOT_FOUND` | There is no account with that email address. |
|
|
51
51
|
| `USER_ALREADY_EXISTS` | An account with that email address is there already. The API returns this when you create an account. |
|
|
52
|
+
| `SIGNUP_DISABLED` | Picked does not accept a new account for this request. The `accountCreate` mutation does not return this code: it gives the same result for each email address. |
|
|
52
53
|
| `WEAK_PASSWORD` | The password is not strong enough. |
|
|
53
54
|
| `INVALID_TOKEN` | The token is invalid or malformed. This covers a verification token, a reset token, and a magic link token. |
|
|
54
55
|
| `TOKEN_EXPIRED` | The token expired. Ask for a new one. |
|
|
@@ -227,6 +227,8 @@ enum AuthErrorCode {
|
|
|
227
227
|
USER_NOT_FOUND
|
|
228
228
|
"""A user with the email address already exists."""
|
|
229
229
|
USER_ALREADY_EXISTS
|
|
230
|
+
"""Sign-up refused to create a new user."""
|
|
231
|
+
SIGNUP_DISABLED
|
|
230
232
|
"""The password does not meet the strength rules."""
|
|
231
233
|
WEAK_PASSWORD
|
|
232
234
|
"""The token or code is invalid."""
|
|
@@ -115,10 +115,8 @@ directive @cache(policy: String!) on FIELD_DEFINITION
|
|
|
115
115
|
|
|
116
116
|
```graphql
|
|
117
117
|
"""
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
several; it resolves only when every check is within its limit. A check that fails or times out, or
|
|
121
|
-
names a rule the firewall does not define, counts as within the limit.
|
|
118
|
+
Refuses the field with `RATE_LIMITED` once the caller is past the limit of the rate-limit rule
|
|
119
|
+
named `rule`. A field may carry several; it resolves only when the caller is within every limit.
|
|
122
120
|
"""
|
|
123
121
|
directive @rateLimit(rule: String!, key: RateLimitKey!) repeatable on FIELD_DEFINITION
|
|
124
122
|
```
|
|
@@ -128,16 +126,11 @@ directive @rateLimit(rule: String!, key: RateLimitKey!) repeatable on FIELD_DEFI
|
|
|
128
126
|
```graphql
|
|
129
127
|
"""The bucket a `@rateLimit` check counts against."""
|
|
130
128
|
enum RateLimitKey {
|
|
131
|
-
"""The client IP address.
|
|
129
|
+
"""The client IP address."""
|
|
132
130
|
IP
|
|
133
|
-
"""
|
|
134
|
-
A SHA-256 of the trimmed, lower-cased `input.email` argument. A request whose input names no
|
|
135
|
-
email skips the check.
|
|
136
|
-
"""
|
|
131
|
+
"""The input email address."""
|
|
137
132
|
EMAIL
|
|
138
|
-
"""
|
|
139
|
-
The signed-in user's ID. A request without a signed-in user skips the check.
|
|
140
|
-
"""
|
|
133
|
+
"""The signed-in user."""
|
|
141
134
|
USER
|
|
142
135
|
}
|
|
143
136
|
```
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picked",
|
|
3
3
|
"description": "The Picked SDK front door: the client, the picked.config helpers, and the picked CLI in one install",
|
|
4
|
-
"version": "0.0.120
|
|
4
|
+
"version": "0.0.120",
|
|
5
5
|
"bin": {
|
|
6
6
|
"picked": "dist/esm/bin.js"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@picked/cli": "0.0.120
|
|
10
|
-
"@picked/config": "0.0.120
|
|
9
|
+
"@picked/cli": "0.0.120",
|
|
10
|
+
"@picked/config": "0.0.120"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@picked/client": "workspace:*",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"main": "./dist/cjs/index.js",
|
|
75
75
|
"module": "./dist/esm/index.js",
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@picked/client": "0.0.120
|
|
77
|
+
"@picked/client": "0.0.120"
|
|
78
78
|
},
|
|
79
79
|
"private": false,
|
|
80
80
|
"publishConfig": {
|