@appwrite.io/console 0.3.0 → 0.4.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 (54) hide show
  1. package/.github/workflows/publish.yml +2 -2
  2. package/README.md +3 -3
  3. package/dist/cjs/sdk.js +1354 -1197
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +1354 -1197
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +1354 -1197
  8. package/docs/examples/functions/create.md +1 -1
  9. package/docs/examples/functions/update.md +1 -1
  10. package/docs/examples/{projects/get-usage.md → health/get-queue-builds.md} +3 -3
  11. package/docs/examples/{account/create-with-invite-code.md → health/get-queue-databases.md} +3 -3
  12. package/docs/examples/health/get-queue-deletes.md +18 -0
  13. package/docs/examples/health/get-queue-mails.md +18 -0
  14. package/docs/examples/health/get-queue-messaging.md +18 -0
  15. package/docs/examples/health/get-queue-migrations.md +18 -0
  16. package/docs/examples/project/get-usage.md +1 -1
  17. package/docs/examples/teams/create-membership.md +1 -1
  18. package/package.json +3 -2
  19. package/src/client.ts +1 -1
  20. package/src/models.ts +147 -279
  21. package/src/query.ts +1 -1
  22. package/src/role.ts +72 -6
  23. package/src/services/account.ts +154 -204
  24. package/src/services/assistant.ts +3 -3
  25. package/src/services/avatars.ts +32 -31
  26. package/src/services/console.ts +4 -4
  27. package/src/services/databases.ts +195 -195
  28. package/src/services/functions.ts +117 -126
  29. package/src/services/graphql.ts +8 -8
  30. package/src/services/health.ts +219 -50
  31. package/src/services/locale.ts +31 -31
  32. package/src/services/migrations.ts +48 -48
  33. package/src/services/project.ts +40 -22
  34. package/src/services/projects.ts +143 -170
  35. package/src/services/proxy.ts +15 -15
  36. package/src/services/storage.ts +74 -84
  37. package/src/services/teams.ts +62 -66
  38. package/src/services/users.ts +132 -135
  39. package/src/services/vcs.ts +27 -27
  40. package/types/models.d.ts +147 -279
  41. package/types/role.d.ts +62 -0
  42. package/types/services/account.d.ts +61 -70
  43. package/types/services/avatars.d.ts +11 -10
  44. package/types/services/console.d.ts +1 -1
  45. package/types/services/databases.d.ts +51 -51
  46. package/types/services/functions.d.ts +32 -27
  47. package/types/services/graphql.d.ts +2 -2
  48. package/types/services/health.d.ts +85 -14
  49. package/types/services/locale.d.ts +7 -7
  50. package/types/services/project.d.ts +4 -2
  51. package/types/services/projects.d.ts +26 -36
  52. package/types/services/storage.d.ts +13 -13
  53. package/types/services/teams.d.ts +20 -20
  54. package/types/services/users.d.ts +45 -44
package/types/role.d.ts CHANGED
@@ -1,8 +1,70 @@
1
+ /**
2
+ * Helper class to generate role strings for `Permission`.
3
+ */
1
4
  export declare class Role {
5
+ /**
6
+ * Grants access to anyone.
7
+ *
8
+ * This includes authenticated and unauthenticated users.
9
+ *
10
+ * @returns {string}
11
+ */
2
12
  static any(): string;
13
+ /**
14
+ * Grants access to a specific user by user ID.
15
+ *
16
+ * You can optionally pass verified or unverified for
17
+ * `status` to target specific types of users.
18
+ *
19
+ * @param {string} id
20
+ * @param {string} status
21
+ * @returns {string}
22
+ */
3
23
  static user(id: string, status?: string): string;
24
+ /**
25
+ * Grants access to any authenticated or anonymous user.
26
+ *
27
+ * You can optionally pass verified or unverified for
28
+ * `status` to target specific types of users.
29
+ *
30
+ * @param {string} status
31
+ * @returns {string}
32
+ */
4
33
  static users(status?: string): string;
34
+ /**
35
+ * Grants access to any guest user without a session.
36
+ *
37
+ * Authenticated users don't have access to this role.
38
+ *
39
+ * @returns {string}
40
+ */
5
41
  static guests(): string;
42
+ /**
43
+ * Grants access to a team by team ID.
44
+ *
45
+ * You can optionally pass a role for `role` to target
46
+ * team members with the specified role.
47
+ *
48
+ * @param {string} id
49
+ * @param {string} role
50
+ * @returns {string}
51
+ */
6
52
  static team(id: string, role?: string): string;
53
+ /**
54
+ * Grants access to a specific member of a team.
55
+ *
56
+ * When the member is removed from the team, they will
57
+ * no longer have access.
58
+ *
59
+ * @param {string} id
60
+ * @returns {string}
61
+ */
7
62
  static member(id: string): string;
63
+ /**
64
+ * Grants access to a user with the specified label.
65
+ *
66
+ * @param {string} name
67
+ * @returns {string}
68
+ */
69
+ static label(name: string): string;
8
70
  }
@@ -4,7 +4,7 @@ import type { Models } from '../models';
4
4
  export declare class Account extends Service {
5
5
  constructor(client: Client);
6
6
  /**
7
- * Get Account
7
+ * Get account
8
8
  *
9
9
  * Get the currently logged in user.
10
10
  *
@@ -13,14 +13,15 @@ export declare class Account extends Service {
13
13
  */
14
14
  get<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
15
15
  /**
16
- * Create Account
16
+ * Create account
17
17
  *
18
18
  * Use this endpoint to allow a new user to register a new account in your
19
19
  * project. After the user registration completes successfully, you can use
20
- * the [/account/verfication](/docs/client/account#accountCreateVerification)
20
+ * the
21
+ * [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification)
21
22
  * route to start verifying the user email address. To allow the new user to
22
23
  * login to their new account, you need to create a new [account
23
- * session](/docs/client/account#accountCreateSession).
24
+ * session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).
24
25
  *
25
26
  * @param {string} userId
26
27
  * @param {string} email
@@ -31,7 +32,7 @@ export declare class Account extends Service {
31
32
  */
32
33
  create<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
33
34
  /**
34
- * Update Email
35
+ * Update email
35
36
  *
36
37
  * Update currently logged in user account email address. After changing user
37
38
  * address, the user confirmation status will get reset. A new confirmation
@@ -68,25 +69,6 @@ export declare class Account extends Service {
68
69
  * @returns {Promise}
69
70
  */
70
71
  deleteIdentity(identityId: string): Promise<{}>;
71
- /**
72
- * Create account using an invite code
73
- *
74
- * Use this endpoint to allow a new user to register a new account in your
75
- * project. After the user registration completes successfully, you can use
76
- * the [/account/verfication](/docs/client/account#accountCreateVerification)
77
- * route to start verifying the user email address. To allow the new user to
78
- * login to their new account, you need to create a new [account
79
- * session](/docs/client/account#accountCreateSession).
80
- *
81
- * @param {string} userId
82
- * @param {string} email
83
- * @param {string} password
84
- * @param {string} name
85
- * @param {string} code
86
- * @throws {AppwriteException}
87
- * @returns {Promise}
88
- */
89
- createWithInviteCode<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string, code?: string): Promise<Models.Account<Preferences>>;
90
72
  /**
91
73
  * Create JWT
92
74
  *
@@ -101,7 +83,7 @@ export declare class Account extends Service {
101
83
  */
102
84
  createJWT(): Promise<Models.Jwt>;
103
85
  /**
104
- * List Logs
86
+ * List logs
105
87
  *
106
88
  * Get the list of latest security activity logs for the currently logged in
107
89
  * user. Each log returns user IP address, location and date and time of log.
@@ -112,7 +94,7 @@ export declare class Account extends Service {
112
94
  */
113
95
  listLogs(queries?: string[]): Promise<Models.LogList>;
114
96
  /**
115
- * Update Name
97
+ * Update name
116
98
  *
117
99
  * Update currently logged in user account name.
118
100
  *
@@ -122,7 +104,7 @@ export declare class Account extends Service {
122
104
  */
123
105
  updateName<Preferences extends Models.Preferences>(name: string): Promise<Models.User<Preferences>>;
124
106
  /**
125
- * Update Password
107
+ * Update password
126
108
  *
127
109
  * Update currently logged in user password. For validation, user is required
128
110
  * to pass in the new password, and the old password. For users created with
@@ -135,12 +117,12 @@ export declare class Account extends Service {
135
117
  */
136
118
  updatePassword<Preferences extends Models.Preferences>(password: string, oldPassword?: string): Promise<Models.User<Preferences>>;
137
119
  /**
138
- * Update Phone
120
+ * Update phone
139
121
  *
140
122
  * Update the currently logged in user's phone number. After updating the
141
123
  * phone number, the phone verification status will be reset. A confirmation
142
124
  * SMS is not sent automatically, however you can use the [POST
143
- * /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
125
+ * /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification)
144
126
  * endpoint to send a confirmation SMS.
145
127
  *
146
128
  * @param {string} phone
@@ -150,7 +132,7 @@ export declare class Account extends Service {
150
132
  */
151
133
  updatePhone<Preferences extends Models.Preferences>(phone: string, password: string): Promise<Models.User<Preferences>>;
152
134
  /**
153
- * Get Account Preferences
135
+ * Get account preferences
154
136
  *
155
137
  * Get the preferences as a key-value object for the currently logged in user.
156
138
  *
@@ -159,7 +141,7 @@ export declare class Account extends Service {
159
141
  */
160
142
  getPrefs<Preferences extends Models.Preferences>(): Promise<Preferences>;
161
143
  /**
162
- * Update Preferences
144
+ * Update preferences
163
145
  *
164
146
  * Update currently logged in user account preferences. The object you pass is
165
147
  * stored as is, and replaces any previous value. The maximum allowed prefs
@@ -171,16 +153,16 @@ export declare class Account extends Service {
171
153
  */
172
154
  updatePrefs<Preferences extends Models.Preferences>(prefs: Partial<Preferences>): Promise<Models.User<Preferences>>;
173
155
  /**
174
- * Create Password Recovery
156
+ * Create password recovery
175
157
  *
176
158
  * Sends the user an email with a temporary secret key for password reset.
177
159
  * When the user clicks the confirmation link he is redirected back to your
178
160
  * app password reset URL with the secret key and email address values
179
161
  * attached to the URL query string. Use the query string params to submit a
180
162
  * request to the [PUT
181
- * /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
182
- * complete the process. The verification link sent to the user's email
183
- * address is valid for 1 hour.
163
+ * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery)
164
+ * endpoint to complete the process. The verification link sent to the user's
165
+ * email address is valid for 1 hour.
184
166
  *
185
167
  * @param {string} email
186
168
  * @param {string} url
@@ -189,12 +171,13 @@ export declare class Account extends Service {
189
171
  */
190
172
  createRecovery(email: string, url: string): Promise<Models.Token>;
191
173
  /**
192
- * Create Password Recovery (confirmation)
174
+ * Create password recovery (confirmation)
193
175
  *
194
176
  * Use this endpoint to complete the user account password reset. Both the
195
177
  * **userId** and **secret** arguments will be passed as query parameters to
196
178
  * the redirect URL you have provided when sending your request to the [POST
197
- * /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
179
+ * /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery)
180
+ * endpoint.
198
181
  *
199
182
  * Please note that in order to avoid a [Redirect
200
183
  * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
@@ -210,7 +193,7 @@ export declare class Account extends Service {
210
193
  */
211
194
  updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise<Models.Token>;
212
195
  /**
213
- * List Sessions
196
+ * List sessions
214
197
  *
215
198
  * Get the list of active sessions across different devices for the currently
216
199
  * logged in user.
@@ -220,7 +203,7 @@ export declare class Account extends Service {
220
203
  */
221
204
  listSessions(): Promise<Models.SessionList>;
222
205
  /**
223
- * Delete Sessions
206
+ * Delete sessions
224
207
  *
225
208
  * Delete all sessions from the user account and remove any sessions cookies
226
209
  * from the end client.
@@ -230,27 +213,29 @@ export declare class Account extends Service {
230
213
  */
231
214
  deleteSessions(): Promise<{}>;
232
215
  /**
233
- * Create Anonymous Session
216
+ * Create anonymous session
234
217
  *
235
218
  * Use this endpoint to allow a new user to register an anonymous account in
236
219
  * your project. This route will also create a new session for the user. To
237
220
  * allow the new user to convert an anonymous account to a normal account, you
238
221
  * need to update its [email and
239
- * password](/docs/client/account#accountUpdateEmail) or create an [OAuth2
240
- * session](/docs/client/account#accountCreateOAuth2Session).
222
+ * password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail)
223
+ * or create an [OAuth2
224
+ * session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).
241
225
  *
242
226
  * @throws {AppwriteException}
243
227
  * @returns {Promise}
244
228
  */
245
229
  createAnonymousSession(): Promise<Models.Session>;
246
230
  /**
247
- * Create Email Session
231
+ * Create email session
248
232
  *
249
233
  * Allow the user to login into their account by providing a valid email and
250
234
  * password combination. This route will create a new session for the user.
251
235
  *
252
236
  * A user is limited to 10 active sessions at a time by default. [Learn more
253
- * about session limits](/docs/authentication-security#limits).
237
+ * about session
238
+ * limits](https://appwrite.io/docs/authentication-security#limits).
254
239
  *
255
240
  * @param {string} email
256
241
  * @param {string} password
@@ -259,7 +244,7 @@ export declare class Account extends Service {
259
244
  */
260
245
  createEmailSession(email: string, password: string): Promise<Models.Session>;
261
246
  /**
262
- * Create Magic URL session
247
+ * Create magic URL session
263
248
  *
264
249
  * Sends the user an email with a secret key for creating a session. If the
265
250
  * provided user ID has not been registered, a new user will be created. When
@@ -267,14 +252,15 @@ export declare class Account extends Service {
267
252
  * URL you provided with the secret key and userId values attached to the URL
268
253
  * query string. Use the query string parameters to submit a request to the
269
254
  * [PUT
270
- * /account/sessions/magic-url](/docs/client/account#accountUpdateMagicURLSession)
255
+ * /account/sessions/magic-url](https://appwrite.io/docs/references/cloud/client-web/account#updateMagicURLSession)
271
256
  * endpoint to complete the login process. The link sent to the user's email
272
257
  * address is valid for 1 hour. If you are on a mobile device you can leave
273
258
  * the URL parameter empty, so that the login completion will be handled by
274
259
  * your Appwrite instance by default.
275
260
  *
276
261
  * A user is limited to 10 active sessions at a time by default. [Learn more
277
- * about session limits](/docs/authentication-security#limits).
262
+ * about session
263
+ * limits](https://appwrite.io/docs/authentication-security#limits).
278
264
  *
279
265
  *
280
266
  * @param {string} userId
@@ -285,13 +271,13 @@ export declare class Account extends Service {
285
271
  */
286
272
  createMagicURLSession(userId: string, email: string, url?: string): Promise<Models.Token>;
287
273
  /**
288
- * Create Magic URL session (confirmation)
274
+ * Create magic URL session (confirmation)
289
275
  *
290
276
  * Use this endpoint to complete creating the session with the Magic URL. Both
291
277
  * the **userId** and **secret** arguments will be passed as query parameters
292
278
  * to the redirect URL you have provided when sending your request to the
293
279
  * [POST
294
- * /account/sessions/magic-url](/docs/client/account#accountCreateMagicURLSession)
280
+ * /account/sessions/magic-url](https://appwrite.io/docs/references/cloud/client-web/account#createMagicURLSession)
295
281
  * endpoint.
296
282
  *
297
283
  * Please note that in order to avoid a [Redirect
@@ -306,7 +292,7 @@ export declare class Account extends Service {
306
292
  */
307
293
  updateMagicURLSession(userId: string, secret: string): Promise<Models.Session>;
308
294
  /**
309
- * Create OAuth2 Session
295
+ * Create OAuth2 session
310
296
  *
311
297
  * Allow the user to login to their account using the OAuth2 provider of their
312
298
  * choice. Each OAuth2 provider should be enabled from the Appwrite console
@@ -321,7 +307,8 @@ export declare class Account extends Service {
321
307
  * user.
322
308
  *
323
309
  * A user is limited to 10 active sessions at a time by default. [Learn more
324
- * about session limits](/docs/authentication-security#limits).
310
+ * about session
311
+ * limits](https://appwrite.io/docs/authentication-security#limits).
325
312
  *
326
313
  *
327
314
  * @param {string} provider
@@ -333,17 +320,18 @@ export declare class Account extends Service {
333
320
  */
334
321
  createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL;
335
322
  /**
336
- * Create Phone session
323
+ * Create phone session
337
324
  *
338
325
  * Sends the user an SMS with a secret key for creating a session. If the
339
326
  * provided user ID has not be registered, a new user will be created. Use the
340
327
  * returned user ID and secret and submit a request to the [PUT
341
- * /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession)
328
+ * /account/sessions/phone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneSession)
342
329
  * endpoint to complete the login process. The secret sent to the user's phone
343
330
  * is valid for 15 minutes.
344
331
  *
345
332
  * A user is limited to 10 active sessions at a time by default. [Learn more
346
- * about session limits](/docs/authentication-security#limits).
333
+ * about session
334
+ * limits](https://appwrite.io/docs/authentication-security#limits).
347
335
  *
348
336
  * @param {string} userId
349
337
  * @param {string} phone
@@ -352,11 +340,11 @@ export declare class Account extends Service {
352
340
  */
353
341
  createPhoneSession(userId: string, phone: string): Promise<Models.Token>;
354
342
  /**
355
- * Create Phone Session (confirmation)
343
+ * Create phone session (confirmation)
356
344
  *
357
345
  * Use this endpoint to complete creating a session with SMS. Use the
358
346
  * **userId** from the
359
- * [createPhoneSession](/docs/client/account#accountCreatePhoneSession)
347
+ * [createPhoneSession](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneSession)
360
348
  * endpoint and the **secret** received via SMS to successfully update and
361
349
  * confirm the phone session.
362
350
  *
@@ -367,7 +355,7 @@ export declare class Account extends Service {
367
355
  */
368
356
  updatePhoneSession(userId: string, secret: string): Promise<Models.Session>;
369
357
  /**
370
- * Get Session
358
+ * Get session
371
359
  *
372
360
  * Use this endpoint to get a logged in user's session using a Session ID.
373
361
  * Inputting 'current' will return the current session being used.
@@ -378,7 +366,7 @@ export declare class Account extends Service {
378
366
  */
379
367
  getSession(sessionId: string): Promise<Models.Session>;
380
368
  /**
381
- * Update OAuth Session (Refresh Tokens)
369
+ * Update OAuth session (refresh tokens)
382
370
  *
383
371
  * Access tokens have limited lifespan and expire to mitigate security risks.
384
372
  * If session was created using an OAuth provider, this route can be used to
@@ -390,12 +378,13 @@ export declare class Account extends Service {
390
378
  */
391
379
  updateSession(sessionId: string): Promise<Models.Session>;
392
380
  /**
393
- * Delete Session
381
+ * Delete session
394
382
  *
395
383
  * Logout the user. Use 'current' as the session ID to logout on this device,
396
384
  * use a session ID to logout on another device. If you're looking to logout
397
385
  * the user on all devices, use [Delete
398
- * Sessions](/docs/client/account#accountDeleteSessions) instead.
386
+ * Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions)
387
+ * instead.
399
388
  *
400
389
  * @param {string} sessionId
401
390
  * @throws {AppwriteException}
@@ -403,7 +392,7 @@ export declare class Account extends Service {
403
392
  */
404
393
  deleteSession(sessionId: string): Promise<{}>;
405
394
  /**
406
- * Update Status
395
+ * Update status
407
396
  *
408
397
  * Block the currently logged in user account. Behind the scene, the user
409
398
  * record is not deleted but permanently blocked from any access. To
@@ -414,7 +403,7 @@ export declare class Account extends Service {
414
403
  */
415
404
  updateStatus<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
416
405
  /**
417
- * Create Email Verification
406
+ * Create email verification
418
407
  *
419
408
  * Use this endpoint to send a verification message to your user email address
420
409
  * to confirm they are the valid owners of that address. Both the **userId**
@@ -423,8 +412,8 @@ export declare class Account extends Service {
423
412
  * should redirect the user back to your app and allow you to complete the
424
413
  * verification process by verifying both the **userId** and **secret**
425
414
  * parameters. Learn more about how to [complete the verification
426
- * process](/docs/client/account#accountUpdateEmailVerification). The
427
- * verification link sent to the user's email address is valid for 7 days.
415
+ * process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification).
416
+ * The verification link sent to the user's email address is valid for 7 days.
428
417
  *
429
418
  * Please note that in order to avoid a [Redirect
430
419
  * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
@@ -438,7 +427,7 @@ export declare class Account extends Service {
438
427
  */
439
428
  createVerification(url: string): Promise<Models.Token>;
440
429
  /**
441
- * Create Email Verification (confirmation)
430
+ * Create email verification (confirmation)
442
431
  *
443
432
  * Use this endpoint to complete the user email verification process. Use both
444
433
  * the **userId** and **secret** parameters that were attached to your app URL
@@ -452,21 +441,23 @@ export declare class Account extends Service {
452
441
  */
453
442
  updateVerification(userId: string, secret: string): Promise<Models.Token>;
454
443
  /**
455
- * Create Phone Verification
444
+ * Create phone verification
456
445
  *
457
446
  * Use this endpoint to send a verification SMS to the currently logged in
458
447
  * user. This endpoint is meant for use after updating a user's phone number
459
- * using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone)
448
+ * using the
449
+ * [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone)
460
450
  * endpoint. Learn more about how to [complete the verification
461
- * process](/docs/client/account#accountUpdatePhoneVerification). The
462
- * verification code sent to the user's phone number is valid for 15 minutes.
451
+ * process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification).
452
+ * The verification code sent to the user's phone number is valid for 15
453
+ * minutes.
463
454
  *
464
455
  * @throws {AppwriteException}
465
456
  * @returns {Promise}
466
457
  */
467
458
  createPhoneVerification(): Promise<Models.Token>;
468
459
  /**
469
- * Create Phone Verification (confirmation)
460
+ * Create phone verification (confirmation)
470
461
  *
471
462
  * Use this endpoint to complete the user phone verification process. Use the
472
463
  * **userId** and **secret** that were sent to your user's phone number to
@@ -3,12 +3,13 @@ import { Client } from '../client';
3
3
  export declare class Avatars extends Service {
4
4
  constructor(client: Client);
5
5
  /**
6
- * Get Browser Icon
6
+ * Get browser icon
7
7
  *
8
8
  * You can use this endpoint to show different browser icons to your users.
9
9
  * The code argument receives the browser code as it appears in your user [GET
10
- * /account/sessions](/docs/client/account#accountGetSessions) endpoint. Use
11
- * width, height and quality arguments to change the output settings.
10
+ * /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions)
11
+ * endpoint. Use width, height and quality arguments to change the output
12
+ * settings.
12
13
  *
13
14
  * When one dimension is specified and the other is 0, the image is scaled
14
15
  * with preserved aspect ratio. If both dimensions are 0, the API provides an
@@ -24,7 +25,7 @@ export declare class Avatars extends Service {
24
25
  */
25
26
  getBrowser(code: string, width?: number, height?: number, quality?: number): URL;
26
27
  /**
27
- * Get Credit Card Icon
28
+ * Get credit card icon
28
29
  *
29
30
  * The credit card endpoint will return you the icon of the credit card
30
31
  * provider you need. Use width, height and quality arguments to change the
@@ -45,7 +46,7 @@ export declare class Avatars extends Service {
45
46
  */
46
47
  getCreditCard(code: string, width?: number, height?: number, quality?: number): URL;
47
48
  /**
48
- * Get Favicon
49
+ * Get favicon
49
50
  *
50
51
  * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote
51
52
  * website URL.
@@ -57,12 +58,12 @@ export declare class Avatars extends Service {
57
58
  */
58
59
  getFavicon(url: string): URL;
59
60
  /**
60
- * Get Country Flag
61
+ * Get country flag
61
62
  *
62
63
  * You can use this endpoint to show different country flags icons to your
63
64
  * users. The code argument receives the 2 letter country code. Use width,
64
65
  * height and quality arguments to change the output settings. Country codes
65
- * follow the [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) standard.
66
+ * follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.
66
67
  *
67
68
  * When one dimension is specified and the other is 0, the image is scaled
68
69
  * with preserved aspect ratio. If both dimensions are 0, the API provides an
@@ -79,7 +80,7 @@ export declare class Avatars extends Service {
79
80
  */
80
81
  getFlag(code: string, width?: number, height?: number, quality?: number): URL;
81
82
  /**
82
- * Get Image from URL
83
+ * Get image from URL
83
84
  *
84
85
  * Use this endpoint to fetch a remote image URL and crop it to any image size
85
86
  * you want. This endpoint is very useful if you need to crop and display
@@ -100,7 +101,7 @@ export declare class Avatars extends Service {
100
101
  */
101
102
  getImage(url: string, width?: number, height?: number): URL;
102
103
  /**
103
- * Get User Initials
104
+ * Get user initials
104
105
  *
105
106
  * Use this endpoint to show your user initials avatar icon on your website or
106
107
  * app. By default, this route will try to print your logged-in user name or
@@ -128,7 +129,7 @@ export declare class Avatars extends Service {
128
129
  */
129
130
  getInitials(name?: string, width?: number, height?: number, background?: string): URL;
130
131
  /**
131
- * Get QR Code
132
+ * Get QR code
132
133
  *
133
134
  * Converts a given plain text to a QR code image. You can use the query
134
135
  * parameters to change the size and style of the resulting image.
@@ -4,7 +4,7 @@ import type { Models } from '../models';
4
4
  export declare class Console extends Service {
5
5
  constructor(client: Client);
6
6
  /**
7
- * Get Variables
7
+ * Get variables
8
8
  *
9
9
  * Get all Environment Variables that are relevant for the console.
10
10
  *