node-appwrite 15.0.0 → 15.0.1

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.
Files changed (73) hide show
  1. package/dist/client.js +7 -4
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +7 -4
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/models.d.mts +2 -2
  6. package/dist/models.d.ts +2 -2
  7. package/dist/services/account.d.mts +0 -86
  8. package/dist/services/account.d.ts +0 -86
  9. package/dist/services/account.js +86 -172
  10. package/dist/services/account.js.map +1 -1
  11. package/dist/services/account.mjs +86 -172
  12. package/dist/services/account.mjs.map +1 -1
  13. package/dist/services/avatars.d.mts +0 -14
  14. package/dist/services/avatars.d.ts +0 -14
  15. package/dist/services/avatars.js +14 -28
  16. package/dist/services/avatars.js.map +1 -1
  17. package/dist/services/avatars.mjs +14 -28
  18. package/dist/services/avatars.mjs.map +1 -1
  19. package/dist/services/databases.d.mts +0 -84
  20. package/dist/services/databases.d.ts +0 -84
  21. package/dist/services/databases.js +84 -168
  22. package/dist/services/databases.js.map +1 -1
  23. package/dist/services/databases.mjs +84 -168
  24. package/dist/services/databases.mjs.map +1 -1
  25. package/dist/services/functions.d.mts +0 -48
  26. package/dist/services/functions.d.ts +0 -48
  27. package/dist/services/functions.js +48 -96
  28. package/dist/services/functions.js.map +1 -1
  29. package/dist/services/functions.mjs +48 -96
  30. package/dist/services/functions.mjs.map +1 -1
  31. package/dist/services/graphql.d.mts +0 -4
  32. package/dist/services/graphql.d.ts +0 -4
  33. package/dist/services/graphql.js +4 -8
  34. package/dist/services/graphql.js.map +1 -1
  35. package/dist/services/graphql.mjs +4 -8
  36. package/dist/services/graphql.mjs.map +1 -1
  37. package/dist/services/health.d.mts +0 -46
  38. package/dist/services/health.d.ts +0 -46
  39. package/dist/services/health.js +46 -92
  40. package/dist/services/health.js.map +1 -1
  41. package/dist/services/health.mjs +46 -92
  42. package/dist/services/health.mjs.map +1 -1
  43. package/dist/services/locale.d.mts +0 -16
  44. package/dist/services/locale.d.ts +0 -16
  45. package/dist/services/locale.js +16 -32
  46. package/dist/services/locale.js.map +1 -1
  47. package/dist/services/locale.mjs +16 -32
  48. package/dist/services/locale.mjs.map +1 -1
  49. package/dist/services/messaging.d.mts +3 -95
  50. package/dist/services/messaging.d.ts +3 -95
  51. package/dist/services/messaging.js +95 -187
  52. package/dist/services/messaging.js.map +1 -1
  53. package/dist/services/messaging.mjs +95 -187
  54. package/dist/services/messaging.mjs.map +1 -1
  55. package/dist/services/storage.d.mts +0 -26
  56. package/dist/services/storage.d.ts +0 -26
  57. package/dist/services/storage.js +26 -52
  58. package/dist/services/storage.js.map +1 -1
  59. package/dist/services/storage.mjs +26 -52
  60. package/dist/services/storage.mjs.map +1 -1
  61. package/dist/services/teams.d.mts +0 -26
  62. package/dist/services/teams.d.ts +0 -26
  63. package/dist/services/teams.js +26 -52
  64. package/dist/services/teams.js.map +1 -1
  65. package/dist/services/teams.mjs +26 -52
  66. package/dist/services/teams.mjs.map +1 -1
  67. package/dist/services/users.d.mts +0 -84
  68. package/dist/services/users.d.ts +0 -84
  69. package/dist/services/users.js +84 -168
  70. package/dist/services/users.js.map +1 -1
  71. package/dist/services/users.mjs +84 -168
  72. package/dist/services/users.mjs.map +1 -1
  73. package/package.json +1 -1
@@ -9,8 +9,6 @@ declare class Account {
9
9
  client: Client;
10
10
  constructor(client: Client);
11
11
  /**
12
- * Get account
13
- *
14
12
  * Get the currently logged in user.
15
13
  *
16
14
  * @throws {AppwriteException}
@@ -18,8 +16,6 @@ declare class Account {
18
16
  */
19
17
  get<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
20
18
  /**
21
- * Create account
22
- *
23
19
  * Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).
24
20
  *
25
21
  * @param {string} userId
@@ -31,8 +27,6 @@ declare class Account {
31
27
  */
32
28
  create<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
33
29
  /**
34
- * Update email
35
- *
36
30
  * Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.
37
31
  This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
38
32
 
@@ -44,8 +38,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
44
38
  */
45
39
  updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>>;
46
40
  /**
47
- * List identities
48
- *
49
41
  * Get the list of identities for the currently logged in user.
50
42
  *
51
43
  * @param {string[]} queries
@@ -54,8 +46,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
54
46
  */
55
47
  listIdentities(queries?: string[]): Promise<Models.IdentityList>;
56
48
  /**
57
- * Delete identity
58
- *
59
49
  * Delete an identity by its unique ID.
60
50
  *
61
51
  * @param {string} identityId
@@ -64,8 +54,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
64
54
  */
65
55
  deleteIdentity(identityId: string): Promise<{}>;
66
56
  /**
67
- * Create JWT
68
- *
69
57
  * Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.
70
58
  *
71
59
  * @throws {AppwriteException}
@@ -73,8 +61,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
73
61
  */
74
62
  createJWT(): Promise<Models.Jwt>;
75
63
  /**
76
- * List logs
77
- *
78
64
  * Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.
79
65
  *
80
66
  * @param {string[]} queries
@@ -83,8 +69,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
83
69
  */
84
70
  listLogs(queries?: string[]): Promise<Models.LogList>;
85
71
  /**
86
- * Update MFA
87
- *
88
72
  * Enable or disable MFA on an account.
89
73
  *
90
74
  * @param {boolean} mfa
@@ -93,8 +77,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
93
77
  */
94
78
  updateMFA<Preferences extends Models.Preferences>(mfa: boolean): Promise<Models.User<Preferences>>;
95
79
  /**
96
- * Create authenticator
97
- *
98
80
  * Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
99
81
  *
100
82
  * @param {AuthenticatorType} type
@@ -103,8 +85,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
103
85
  */
104
86
  createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;
105
87
  /**
106
- * Verify authenticator
107
- *
108
88
  * Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
109
89
  *
110
90
  * @param {AuthenticatorType} type
@@ -114,8 +94,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
114
94
  */
115
95
  updateMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
116
96
  /**
117
- * Delete authenticator
118
- *
119
97
  * Delete an authenticator for a user by ID.
120
98
  *
121
99
  * @param {AuthenticatorType} type
@@ -124,8 +102,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
124
102
  */
125
103
  deleteMfaAuthenticator(type: AuthenticatorType): Promise<{}>;
126
104
  /**
127
- * Create MFA challenge
128
- *
129
105
  * Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
130
106
  *
131
107
  * @param {AuthenticationFactor} factor
@@ -134,8 +110,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
134
110
  */
135
111
  createMfaChallenge(factor: AuthenticationFactor): Promise<Models.MfaChallenge>;
136
112
  /**
137
- * Create MFA challenge (confirmation)
138
- *
139
113
  * Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
140
114
  *
141
115
  * @param {string} challengeId
@@ -145,8 +119,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
145
119
  */
146
120
  updateMfaChallenge(challengeId: string, otp: string): Promise<Models.Session>;
147
121
  /**
148
- * List factors
149
- *
150
122
  * List the factors available on the account to be used as a MFA challange.
151
123
  *
152
124
  * @throws {AppwriteException}
@@ -154,8 +126,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
154
126
  */
155
127
  listMfaFactors(): Promise<Models.MfaFactors>;
156
128
  /**
157
- * Get MFA recovery codes
158
- *
159
129
  * Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.
160
130
  *
161
131
  * @throws {AppwriteException}
@@ -163,8 +133,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
163
133
  */
164
134
  getMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
165
135
  /**
166
- * Create MFA recovery codes
167
- *
168
136
  * Generate recovery codes as backup for MFA flow. It&#039;s recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
169
137
  *
170
138
  * @throws {AppwriteException}
@@ -172,8 +140,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
172
140
  */
173
141
  createMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
174
142
  /**
175
- * Regenerate MFA recovery codes
176
- *
177
143
  * Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.
178
144
  *
179
145
  * @throws {AppwriteException}
@@ -181,8 +147,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
181
147
  */
182
148
  updateMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
183
149
  /**
184
- * Update name
185
- *
186
150
  * Update currently logged in user account name.
187
151
  *
188
152
  * @param {string} name
@@ -191,8 +155,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
191
155
  */
192
156
  updateName<Preferences extends Models.Preferences>(name: string): Promise<Models.User<Preferences>>;
193
157
  /**
194
- * Update password
195
- *
196
158
  * Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
197
159
  *
198
160
  * @param {string} password
@@ -202,8 +164,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
202
164
  */
203
165
  updatePassword<Preferences extends Models.Preferences>(password: string, oldPassword?: string): Promise<Models.User<Preferences>>;
204
166
  /**
205
- * Update phone
206
- *
207
167
  * Update the currently logged in user&#039;s phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) endpoint to send a confirmation SMS.
208
168
  *
209
169
  * @param {string} phone
@@ -213,8 +173,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
213
173
  */
214
174
  updatePhone<Preferences extends Models.Preferences>(phone: string, password: string): Promise<Models.User<Preferences>>;
215
175
  /**
216
- * Get account preferences
217
- *
218
176
  * Get the preferences as a key-value object for the currently logged in user.
219
177
  *
220
178
  * @throws {AppwriteException}
@@ -222,8 +180,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
222
180
  */
223
181
  getPrefs<Preferences extends Models.Preferences>(): Promise<Preferences>;
224
182
  /**
225
- * Update preferences
226
- *
227
183
  * Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
228
184
  *
229
185
  * @param {Partial<Preferences>} prefs
@@ -232,8 +188,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
232
188
  */
233
189
  updatePrefs<Preferences extends Models.Preferences>(prefs: Partial<Preferences>): Promise<Models.User<Preferences>>;
234
190
  /**
235
- * Create password recovery
236
- *
237
191
  * Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) endpoint to complete the process. The verification link sent to the user&#039;s email address is valid for 1 hour.
238
192
  *
239
193
  * @param {string} email
@@ -243,8 +197,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
243
197
  */
244
198
  createRecovery(email: string, url: string): Promise<Models.Token>;
245
199
  /**
246
- * Create password recovery (confirmation)
247
- *
248
200
  * Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) endpoint.
249
201
 
250
202
  Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
@@ -257,8 +209,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
257
209
  */
258
210
  updateRecovery(userId: string, secret: string, password: string): Promise<Models.Token>;
259
211
  /**
260
- * List sessions
261
- *
262
212
  * Get the list of active sessions across different devices for the currently logged in user.
263
213
  *
264
214
  * @throws {AppwriteException}
@@ -266,8 +216,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
266
216
  */
267
217
  listSessions(): Promise<Models.SessionList>;
268
218
  /**
269
- * Delete sessions
270
- *
271
219
  * Delete all sessions from the user account and remove any sessions cookies from the end client.
272
220
  *
273
221
  * @throws {AppwriteException}
@@ -275,8 +223,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
275
223
  */
276
224
  deleteSessions(): Promise<{}>;
277
225
  /**
278
- * Create anonymous session
279
- *
280
226
  * Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) or create an [OAuth2 session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).
281
227
  *
282
228
  * @throws {AppwriteException}
@@ -284,8 +230,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
284
230
  */
285
231
  createAnonymousSession(): Promise<Models.Session>;
286
232
  /**
287
- * Create email password session
288
- *
289
233
  * Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.
290
234
 
291
235
  A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
@@ -297,8 +241,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
297
241
  */
298
242
  createEmailPasswordSession(email: string, password: string): Promise<Models.Session>;
299
243
  /**
300
- * Update magic URL session
301
- *
302
244
  * Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.
303
245
  *
304
246
  * @param {string} userId
@@ -308,8 +250,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
308
250
  */
309
251
  updateMagicURLSession(userId: string, secret: string): Promise<Models.Session>;
310
252
  /**
311
- * Update phone session
312
- *
313
253
  * Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.
314
254
  *
315
255
  * @param {string} userId
@@ -319,8 +259,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
319
259
  */
320
260
  updatePhoneSession(userId: string, secret: string): Promise<Models.Session>;
321
261
  /**
322
- * Create session
323
- *
324
262
  * Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.
325
263
  *
326
264
  * @param {string} userId
@@ -330,8 +268,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
330
268
  */
331
269
  createSession(userId: string, secret: string): Promise<Models.Session>;
332
270
  /**
333
- * Get session
334
- *
335
271
  * Use this endpoint to get a logged in user&#039;s session using a Session ID. Inputting &#039;current&#039; will return the current session being used.
336
272
  *
337
273
  * @param {string} sessionId
@@ -340,8 +276,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
340
276
  */
341
277
  getSession(sessionId: string): Promise<Models.Session>;
342
278
  /**
343
- * Update session
344
- *
345
279
  * Use this endpoint to extend a session&#039;s length. Extending a session is useful when session expiry is short. If the session was created using an OAuth provider, this endpoint refreshes the access token from the provider.
346
280
  *
347
281
  * @param {string} sessionId
@@ -350,8 +284,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
350
284
  */
351
285
  updateSession(sessionId: string): Promise<Models.Session>;
352
286
  /**
353
- * Delete session
354
- *
355
287
  * Logout the user. Use &#039;current&#039; as the session ID to logout on this device, use a session ID to logout on another device. If you&#039;re looking to logout the user on all devices, use [Delete Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) instead.
356
288
  *
357
289
  * @param {string} sessionId
@@ -360,8 +292,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
360
292
  */
361
293
  deleteSession(sessionId: string): Promise<{}>;
362
294
  /**
363
- * Update status
364
- *
365
295
  * Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.
366
296
  *
367
297
  * @throws {AppwriteException}
@@ -369,8 +299,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
369
299
  */
370
300
  updateStatus<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
371
301
  /**
372
- * Create email token (OTP)
373
- *
374
302
  * Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The secret sent to the user&#039;s email is valid for 15 minutes.
375
303
 
376
304
  A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
@@ -383,8 +311,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
383
311
  */
384
312
  createEmailToken(userId: string, email: string, phrase?: boolean): Promise<Models.Token>;
385
313
  /**
386
- * Create magic URL token
387
- *
388
314
  * Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user&#039;s email address is valid for 1 hour.
389
315
 
390
316
  A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
@@ -399,8 +325,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
399
325
  */
400
326
  createMagicURLToken(userId: string, email: string, url?: string, phrase?: boolean): Promise<Models.Token>;
401
327
  /**
402
- * Create OAuth2 token
403
- *
404
328
  * Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL&#039;s back to your app when login is completed.
405
329
 
406
330
  If authentication succeeds, `userId` and `secret` of a token will be appended to the success URL as query parameters. These can be used to create a new session using the [Create session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint.
@@ -416,8 +340,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
416
340
  */
417
341
  createOAuth2Token(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): Promise<string>;
418
342
  /**
419
- * Create phone token
420
- *
421
343
  * Sends the user an SMS with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The secret sent to the user&#039;s phone is valid for 15 minutes.
422
344
 
423
345
  A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
@@ -429,8 +351,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
429
351
  */
430
352
  createPhoneToken(userId: string, phone: string): Promise<Models.Token>;
431
353
  /**
432
- * Create email verification
433
- *
434
354
  * Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user&#039;s email address is valid for 7 days.
435
355
 
436
356
  Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
@@ -442,8 +362,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
442
362
  */
443
363
  createVerification(url: string): Promise<Models.Token>;
444
364
  /**
445
- * Create email verification (confirmation)
446
- *
447
365
  * Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.
448
366
  *
449
367
  * @param {string} userId
@@ -453,8 +371,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
453
371
  */
454
372
  updateVerification(userId: string, secret: string): Promise<Models.Token>;
455
373
  /**
456
- * Create phone verification
457
- *
458
374
  * Use this endpoint to send a verification SMS to the currently logged in user. This endpoint is meant for use after updating a user&#039;s phone number using the [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) endpoint. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). The verification code sent to the user&#039;s phone number is valid for 15 minutes.
459
375
  *
460
376
  * @throws {AppwriteException}
@@ -462,8 +378,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
462
378
  */
463
379
  createPhoneVerification(): Promise<Models.Token>;
464
380
  /**
465
- * Update phone verification (confirmation)
466
- *
467
381
  * Use this endpoint to complete the user phone verification process. Use the **userId** and **secret** that were sent to your user&#039;s phone number to verify the user email ownership. If confirmed this route will return a 200 status code.
468
382
  *
469
383
  * @param {string} userId