You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -295,7 +295,7 @@ List account permissions with user-friendly descriptions. Some permissions (such
295
295
296
296
Replace account identity. Requires token with scope `account.details.identity.update`.
297
297
298
-
-`username` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> Your unique username. Between 3 and 64 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.
298
+
-`username` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> Your unique username. Between 3 and 20 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.
299
299
-`name` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [null](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/null)</code> Your full name. Set to `null` to remove.
@@ -329,7 +329,7 @@ Set your primary e-mail address. Requires token with scope `account.details.emai
329
329
330
330
Update account identity. Requires token with scope `account.details.identity.update`.
331
331
332
-
-`username` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> Your unique username. Between 3 and 64 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.
332
+
-`username` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> Your unique username. Between 3 and 20 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.
333
333
-`name` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [null](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/null)</code> Your full name. Set to `null` to remove.
334
334
- Returns: <code>[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.AccountIdentity](#interface-cloudnodeaccountidentity) | [void](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)>></code> `void` if nothing was changed.
@@ -366,7 +366,7 @@ Create an account and session. After signing up, a welcome e-mail is sent to con
366
366
367
367
> **Note**: Registering an account can only be performed from residential IP. Proxying this endpoint will likely not work. Creating multiple/alternate accounts is not allowed as per the Terms of Service.
368
368
369
-
-`username` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> The username to use for the account. Must be between 3 and 32 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.
369
+
-`username` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> The username to use for the account. Must be between 3 and 20 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.
370
370
-`email` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> The e-mail address to register. A valid unique non-disposable e-mail that can receive mail is required.
371
371
-`password` <code>[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)</code> The password to use for the account. Must be at least 15 characters, or 8 characters if it contains a mix of letters, numbers and symbols.
372
372
- Returns: <code>[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<{session: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>></code> Session token. Also returned in `Set-Cookie` header.
Copy file name to clipboardExpand all lines: browser/Cloudnode.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -410,7 +410,7 @@ class Cloudnode {
410
410
411
411
> **Note**: Registering an account can only be performed from residential IP. Proxying this endpoint will likely not work. Creating multiple/alternate accounts is not allowed as per the Terms of Service.
412
412
* @POST /auth/register
413
-
* @param username The username to use for the account. Must be between 3 and 32 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.
413
+
* @param username The username to use for the account. Must be between 3 and 20 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.
414
414
* @param email The e-mail address to register. A valid unique non-disposable e-mail that can receive mail is required.
415
415
* @param password The password to use for the account. Must be at least 15 characters, or 8 characters if it contains a mix of letters, numbers and symbols.
* @returns Session token. Also returned in `Set-Cookie` header.
422
422
*/
423
423
register: async(username,email,password)=>{
424
-
returnawaitthis.#sendRequest({"type": "operation","description": "Create an account and session. After signing up, a welcome e-mail is sent to confirm your e-mail address.\n\n> **Note**: Registering an account can only be performed from residential IP. Proxying this endpoint will likely not work. Creating multiple/alternate accounts is not allowed as per the Terms of Service.","method": "POST","path": "/auth/register","token": null,"parameters": {"body": {"username": {"description": "The username to use for the account. Must be between 3 and 32 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.","type": "string","required": true},"email": {"description": "The e-mail address to register. A valid unique non-disposable e-mail that can receive mail is required.","type": "string","required": true},"password": {"description": "The password to use for the account. Must be at least 15 characters, or 8 characters if it contains a mix of letters, numbers and symbols.","type": "string","required": true}}},"returns": [{"status": 201,"type": "{session: string}","description": "Session token. Also returned in `Set-Cookie` header."},{"status": 422,"type": "Error & {code: \"INVALID_DATA\"}"},{"status": 403,"type": "Error & {code: \"IP_REJECTED\"}"},{"status": 429,"type": "Error & {code: \"RATE_LIMITED\"}"},{"status": 500,"type": "Error & {code: \"INTERNAL_SERVER_ERROR\"}"},{"status": 503,"type": "Error & {code: \"MAINTENANCE\"}"}]},{},{},{ username, email, password });
424
+
returnawaitthis.#sendRequest({"type": "operation","description": "Create an account and session. After signing up, a welcome e-mail is sent to confirm your e-mail address.\n\n> **Note**: Registering an account can only be performed from residential IP. Proxying this endpoint will likely not work. Creating multiple/alternate accounts is not allowed as per the Terms of Service.","method": "POST","path": "/auth/register","token": null,"parameters": {"body": {"username": {"description": "The username to use for the account. Must be between 3 and 20 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.","type": "string","required": true},"email": {"description": "The e-mail address to register. A valid unique non-disposable e-mail that can receive mail is required.","type": "string","required": true},"password": {"description": "The password to use for the account. Must be at least 15 characters, or 8 characters if it contains a mix of letters, numbers and symbols.","type": "string","required": true}}},"returns": [{"status": 201,"type": "{session: string}","description": "Session token. Also returned in `Set-Cookie` header."},{"status": 422,"type": "Error & {code: \"INVALID_DATA\"}"},{"status": 403,"type": "Error & {code: \"IP_REJECTED\"}"},{"status": 429,"type": "Error & {code: \"RATE_LIMITED\"}"},{"status": 500,"type": "Error & {code: \"INTERNAL_SERVER_ERROR\"}"},{"status": 503,"type": "Error & {code: \"MAINTENANCE\"}"}]},{},{},{ username, email, password });
425
425
},
426
426
/**
427
427
* Create a session using user ID/username/e-mail and password.
@@ -470,7 +470,7 @@ class Cloudnode {
470
470
/**
471
471
* Update account identity
472
472
* @PATCH /account/identity
473
-
* @param username Your unique username. Between 3 and 64 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.
473
+
* @param username Your unique username. Between 3 and 20 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.
474
474
* @param name Your full name. Set to `null` to remove.
Copy file name to clipboardExpand all lines: schema.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -923,7 +923,7 @@
923
923
"parameters": {
924
924
"body": {
925
925
"username": {
926
-
"description": "The username to use for the account. Must be between 3 and 32 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.",
926
+
"description": "The username to use for the account. Must be between 3 and 20 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.",
927
927
"type": "string",
928
928
"required": true
929
929
},
@@ -1037,7 +1037,7 @@
1037
1037
"parameters": {
1038
1038
"body": {
1039
1039
"username": {
1040
-
"description": "Your unique username. Between 3 and 64 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.",
1040
+
"description": "Your unique username. Between 3 and 20 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.",
1041
1041
"type": "string",
1042
1042
"required": true
1043
1043
},
@@ -1081,7 +1081,7 @@
1081
1081
"parameters": {
1082
1082
"body": {
1083
1083
"username": {
1084
-
"description": "Your unique username. Between 3 and 64 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.",
1084
+
"description": "Your unique username. Between 3 and 20 characters. Only letters, numbers, dashes and underscores. May not start with `user_`.",
Copy file name to clipboardExpand all lines: src/Cloudnode.d.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ declare class Cloudnode {
211
211
212
212
> **Note**: Registering an account can only be performed from residential IP. Proxying this endpoint will likely not work. Creating multiple/alternate accounts is not allowed as per the Terms of Service.
213
213
* @POST /auth/register
214
-
* @param username The username to use for the account. Must be between 3 and 32 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.
214
+
* @param username The username to use for the account. Must be between 3 and 20 characters long. Cannot start with `user_`. May contain only letters, numbers, dashes and underscores. Must be unique.
215
215
* @param email The e-mail address to register. A valid unique non-disposable e-mail that can receive mail is required.
216
216
* @param password The password to use for the account. Must be at least 15 characters, or 8 characters if it contains a mix of letters, numbers and symbols.
0 commit comments