@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
@@ -13,7 +13,7 @@ export declare class Health extends Service {
13
13
  */
14
14
  get(): Promise<Models.HealthStatus>;
15
15
  /**
16
- * Get Antivirus
16
+ * Get antivirus
17
17
  *
18
18
  * Check the Appwrite Antivirus server is up and connection is successful.
19
19
  *
@@ -22,7 +22,7 @@ export declare class Health extends Service {
22
22
  */
23
23
  getAntivirus(): Promise<Models.HealthAntivirus>;
24
24
  /**
25
- * Get Cache
25
+ * Get cache
26
26
  *
27
27
  * Check the Appwrite in-memory cache servers are up and connection is
28
28
  * successful.
@@ -41,7 +41,7 @@ export declare class Health extends Service {
41
41
  */
42
42
  getDB(): Promise<Models.HealthStatus>;
43
43
  /**
44
- * Get PubSub
44
+ * Get pubsub
45
45
  *
46
46
  * Check the Appwrite pub-sub servers are up and connection is successful.
47
47
  *
@@ -50,7 +50,7 @@ export declare class Health extends Service {
50
50
  */
51
51
  getPubSub(): Promise<Models.HealthStatus>;
52
52
  /**
53
- * Get Queue
53
+ * Get queue
54
54
  *
55
55
  * Check the Appwrite queue messaging servers are up and connection is
56
56
  * successful.
@@ -60,46 +60,117 @@ export declare class Health extends Service {
60
60
  */
61
61
  getQueue(): Promise<Models.HealthStatus>;
62
62
  /**
63
- * Get Certificates Queue
63
+ * Get builds queue
64
+ *
65
+ * Get the number of builds that are waiting to be processed in the Appwrite
66
+ * internal queue server.
67
+ *
68
+ * @param {number} threshold
69
+ * @throws {AppwriteException}
70
+ * @returns {Promise}
71
+ */
72
+ getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
73
+ /**
74
+ * Get certificates queue
64
75
  *
65
76
  * Get the number of certificates that are waiting to be issued against
66
77
  * [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue
67
78
  * server.
68
79
  *
80
+ * @param {number} threshold
81
+ * @throws {AppwriteException}
82
+ * @returns {Promise}
83
+ */
84
+ getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
85
+ /**
86
+ * Get databases queue
87
+ *
88
+ * Get the number of database changes that are waiting to be processed in the
89
+ * Appwrite internal queue server.
90
+ *
91
+ * @param {string} name
92
+ * @param {number} threshold
93
+ * @throws {AppwriteException}
94
+ * @returns {Promise}
95
+ */
96
+ getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
97
+ /**
98
+ * Get deletes queue
99
+ *
100
+ * Get the number of background destructive changes that are waiting to be
101
+ * processed in the Appwrite internal queue server.
102
+ *
103
+ * @param {number} threshold
69
104
  * @throws {AppwriteException}
70
105
  * @returns {Promise}
71
106
  */
72
- getQueueCertificates(): Promise<Models.HealthQueue>;
107
+ getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
73
108
  /**
74
- * Get Functions Queue
109
+ * Get functions queue
75
110
  *
76
111
  *
112
+ * @param {number} threshold
77
113
  * @throws {AppwriteException}
78
114
  * @returns {Promise}
79
115
  */
80
- getQueueFunctions(): Promise<Models.HealthQueue>;
116
+ getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
81
117
  /**
82
- * Get Logs Queue
118
+ * Get logs queue
83
119
  *
84
120
  * Get the number of logs that are waiting to be processed in the Appwrite
85
121
  * internal queue server.
86
122
  *
123
+ * @param {number} threshold
124
+ * @throws {AppwriteException}
125
+ * @returns {Promise}
126
+ */
127
+ getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
128
+ /**
129
+ * Get mails queue
130
+ *
131
+ * Get the number of mails that are waiting to be processed in the Appwrite
132
+ * internal queue server.
133
+ *
134
+ * @param {number} threshold
135
+ * @throws {AppwriteException}
136
+ * @returns {Promise}
137
+ */
138
+ getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
139
+ /**
140
+ * Get messaging queue
141
+ *
142
+ * Get the number of messages that are waiting to be processed in the Appwrite
143
+ * internal queue server.
144
+ *
145
+ * @param {number} threshold
146
+ * @throws {AppwriteException}
147
+ * @returns {Promise}
148
+ */
149
+ getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
150
+ /**
151
+ * Get migrations queue
152
+ *
153
+ * Get the number of migrations that are waiting to be processed in the
154
+ * Appwrite internal queue server.
155
+ *
156
+ * @param {number} threshold
87
157
  * @throws {AppwriteException}
88
158
  * @returns {Promise}
89
159
  */
90
- getQueueLogs(): Promise<Models.HealthQueue>;
160
+ getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
91
161
  /**
92
- * Get Webhooks Queue
162
+ * Get webhooks queue
93
163
  *
94
164
  * Get the number of webhooks that are waiting to be processed in the Appwrite
95
165
  * internal queue server.
96
166
  *
167
+ * @param {number} threshold
97
168
  * @throws {AppwriteException}
98
169
  * @returns {Promise}
99
170
  */
100
- getQueueWebhooks(): Promise<Models.HealthQueue>;
171
+ getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
101
172
  /**
102
- * Get Local Storage
173
+ * Get local storage
103
174
  *
104
175
  * Check the Appwrite local storage device is up and connection is successful.
105
176
  *
@@ -108,7 +179,7 @@ export declare class Health extends Service {
108
179
  */
109
180
  getStorageLocal(): Promise<Models.HealthStatus>;
110
181
  /**
111
- * Get Time
182
+ * Get time
112
183
  *
113
184
  * Check the Appwrite server time is synced with Google remote NTP server. We
114
185
  * use this technology to smoothly handle leap seconds with no disruptive
@@ -4,7 +4,7 @@ import type { Models } from '../models';
4
4
  export declare class Locale extends Service {
5
5
  constructor(client: Client);
6
6
  /**
7
- * Get User Locale
7
+ * Get user locale
8
8
  *
9
9
  * Get the current user location based on IP. Returns an object with user
10
10
  * country code, country name, continent name, continent code, ip address and
@@ -28,7 +28,7 @@ export declare class Locale extends Service {
28
28
  */
29
29
  listCodes(): Promise<Models.LocaleCodeList>;
30
30
  /**
31
- * List Continents
31
+ * List continents
32
32
  *
33
33
  * List of all continents. You can use the locale header to get the data in a
34
34
  * supported language.
@@ -38,7 +38,7 @@ export declare class Locale extends Service {
38
38
  */
39
39
  listContinents(): Promise<Models.ContinentList>;
40
40
  /**
41
- * List Countries
41
+ * List countries
42
42
  *
43
43
  * List of all countries. You can use the locale header to get the data in a
44
44
  * supported language.
@@ -48,7 +48,7 @@ export declare class Locale extends Service {
48
48
  */
49
49
  listCountries(): Promise<Models.CountryList>;
50
50
  /**
51
- * List EU Countries
51
+ * List EU countries
52
52
  *
53
53
  * List of all countries that are currently members of the EU. You can use the
54
54
  * locale header to get the data in a supported language.
@@ -58,7 +58,7 @@ export declare class Locale extends Service {
58
58
  */
59
59
  listCountriesEU(): Promise<Models.CountryList>;
60
60
  /**
61
- * List Countries Phone Codes
61
+ * List countries phone codes
62
62
  *
63
63
  * List of all countries phone codes. You can use the locale header to get the
64
64
  * data in a supported language.
@@ -68,7 +68,7 @@ export declare class Locale extends Service {
68
68
  */
69
69
  listCountriesPhones(): Promise<Models.PhoneList>;
70
70
  /**
71
- * List Currencies
71
+ * List currencies
72
72
  *
73
73
  * List of all currencies, including currency symbol, name, plural, and
74
74
  * decimal digits for all major and minor currencies. You can use the locale
@@ -79,7 +79,7 @@ export declare class Locale extends Service {
79
79
  */
80
80
  listCurrencies(): Promise<Models.CurrencyList>;
81
81
  /**
82
- * List Languages
82
+ * List languages
83
83
  *
84
84
  * List of all languages classified by ISO 639-1 including 2-letter code, name
85
85
  * in English, and name in the respective language.
@@ -7,11 +7,13 @@ export declare class Project extends Service {
7
7
  * Get usage stats for a project
8
8
  *
9
9
  *
10
- * @param {string} range
10
+ * @param {string} startDate
11
+ * @param {string} endDate
12
+ * @param {string} period
11
13
  * @throws {AppwriteException}
12
14
  * @returns {Promise}
13
15
  */
14
- getUsage(range?: string): Promise<Models.UsageProject>;
16
+ getUsage(startDate: string, endDate: string, period?: string): Promise<Models.UsageProject>;
15
17
  /**
16
18
  * List Variables
17
19
  *
@@ -4,7 +4,7 @@ import type { Models } from '../models';
4
4
  export declare class Projects extends Service {
5
5
  constructor(client: Client);
6
6
  /**
7
- * List Projects
7
+ * List projects
8
8
  *
9
9
  *
10
10
  * @param {string[]} queries
@@ -14,7 +14,7 @@ export declare class Projects extends Service {
14
14
  */
15
15
  list(queries?: string[], search?: string): Promise<Models.ProjectList>;
16
16
  /**
17
- * Create Project
17
+ * Create project
18
18
  *
19
19
  *
20
20
  * @param {string} projectId
@@ -35,7 +35,7 @@ export declare class Projects extends Service {
35
35
  */
36
36
  create(projectId: string, name: string, teamId: string, region?: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
37
37
  /**
38
- * Get Project
38
+ * Get project
39
39
  *
40
40
  *
41
41
  * @param {string} projectId
@@ -44,7 +44,7 @@ export declare class Projects extends Service {
44
44
  */
45
45
  get(projectId: string): Promise<Models.Project>;
46
46
  /**
47
- * Update Project
47
+ * Update project
48
48
  *
49
49
  *
50
50
  * @param {string} projectId
@@ -63,7 +63,7 @@ export declare class Projects extends Service {
63
63
  */
64
64
  update(projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
65
65
  /**
66
- * Delete Project
66
+ * Delete project
67
67
  *
68
68
  *
69
69
  * @param {string} projectId
@@ -72,7 +72,7 @@ export declare class Projects extends Service {
72
72
  */
73
73
  delete(projectId: string): Promise<{}>;
74
74
  /**
75
- * Update Project Authentication Duration
75
+ * Update project authentication duration
76
76
  *
77
77
  *
78
78
  * @param {string} projectId
@@ -82,7 +82,7 @@ export declare class Projects extends Service {
82
82
  */
83
83
  updateAuthDuration(projectId: string, duration: number): Promise<Models.Project>;
84
84
  /**
85
- * Update Project users limit
85
+ * Update project users limit
86
86
  *
87
87
  *
88
88
  * @param {string} projectId
@@ -92,7 +92,7 @@ export declare class Projects extends Service {
92
92
  */
93
93
  updateAuthLimit(projectId: string, limit: number): Promise<Models.Project>;
94
94
  /**
95
- * Update Project user sessions limit
95
+ * Update project user sessions limit
96
96
  *
97
97
  *
98
98
  * @param {string} projectId
@@ -132,7 +132,7 @@ export declare class Projects extends Service {
132
132
  */
133
133
  updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project>;
134
134
  /**
135
- * Update Project auth method status. Use this endpoint to enable or disable a given auth method for this project.
135
+ * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
136
136
  *
137
137
  *
138
138
  * @param {string} projectId
@@ -143,7 +143,7 @@ export declare class Projects extends Service {
143
143
  */
144
144
  updateAuthStatus(projectId: string, method: string, status: boolean): Promise<Models.Project>;
145
145
  /**
146
- * List Keys
146
+ * List keys
147
147
  *
148
148
  *
149
149
  * @param {string} projectId
@@ -152,7 +152,7 @@ export declare class Projects extends Service {
152
152
  */
153
153
  listKeys(projectId: string): Promise<Models.KeyList>;
154
154
  /**
155
- * Create Key
155
+ * Create key
156
156
  *
157
157
  *
158
158
  * @param {string} projectId
@@ -164,7 +164,7 @@ export declare class Projects extends Service {
164
164
  */
165
165
  createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
166
166
  /**
167
- * Get Key
167
+ * Get key
168
168
  *
169
169
  *
170
170
  * @param {string} projectId
@@ -174,7 +174,7 @@ export declare class Projects extends Service {
174
174
  */
175
175
  getKey(projectId: string, keyId: string): Promise<Models.Key>;
176
176
  /**
177
- * Update Key
177
+ * Update key
178
178
  *
179
179
  *
180
180
  * @param {string} projectId
@@ -187,7 +187,7 @@ export declare class Projects extends Service {
187
187
  */
188
188
  updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
189
189
  /**
190
- * Delete Key
190
+ * Delete key
191
191
  *
192
192
  *
193
193
  * @param {string} projectId
@@ -197,7 +197,7 @@ export declare class Projects extends Service {
197
197
  */
198
198
  deleteKey(projectId: string, keyId: string): Promise<{}>;
199
199
  /**
200
- * Update Project OAuth2
200
+ * Update project OAuth2
201
201
  *
202
202
  *
203
203
  * @param {string} projectId
@@ -210,7 +210,7 @@ export declare class Projects extends Service {
210
210
  */
211
211
  updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
212
212
  /**
213
- * List Platforms
213
+ * List platforms
214
214
  *
215
215
  *
216
216
  * @param {string} projectId
@@ -219,7 +219,7 @@ export declare class Projects extends Service {
219
219
  */
220
220
  listPlatforms(projectId: string): Promise<Models.PlatformList>;
221
221
  /**
222
- * Create Platform
222
+ * Create platform
223
223
  *
224
224
  *
225
225
  * @param {string} projectId
@@ -233,7 +233,7 @@ export declare class Projects extends Service {
233
233
  */
234
234
  createPlatform(projectId: string, type: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
235
235
  /**
236
- * Get Platform
236
+ * Get platform
237
237
  *
238
238
  *
239
239
  * @param {string} projectId
@@ -243,7 +243,7 @@ export declare class Projects extends Service {
243
243
  */
244
244
  getPlatform(projectId: string, platformId: string): Promise<Models.Platform>;
245
245
  /**
246
- * Update Platform
246
+ * Update platform
247
247
  *
248
248
  *
249
249
  * @param {string} projectId
@@ -257,7 +257,7 @@ export declare class Projects extends Service {
257
257
  */
258
258
  updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
259
259
  /**
260
- * Delete Platform
260
+ * Delete platform
261
261
  *
262
262
  *
263
263
  * @param {string} projectId
@@ -388,17 +388,7 @@ export declare class Projects extends Service {
388
388
  */
389
389
  deleteSmsTemplate(projectId: string, type: string, locale: string): Promise<Models.SmsTemplate>;
390
390
  /**
391
- * Get usage stats for a project
392
- *
393
- *
394
- * @param {string} projectId
395
- * @param {string} range
396
- * @throws {AppwriteException}
397
- * @returns {Promise}
398
- */
399
- getUsage(projectId: string, range?: string): Promise<Models.UsageProject>;
400
- /**
401
- * List Webhooks
391
+ * List webhooks
402
392
  *
403
393
  *
404
394
  * @param {string} projectId
@@ -407,7 +397,7 @@ export declare class Projects extends Service {
407
397
  */
408
398
  listWebhooks(projectId: string): Promise<Models.WebhookList>;
409
399
  /**
410
- * Create Webhook
400
+ * Create webhook
411
401
  *
412
402
  *
413
403
  * @param {string} projectId
@@ -422,7 +412,7 @@ export declare class Projects extends Service {
422
412
  */
423
413
  createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
424
414
  /**
425
- * Get Webhook
415
+ * Get webhook
426
416
  *
427
417
  *
428
418
  * @param {string} projectId
@@ -432,7 +422,7 @@ export declare class Projects extends Service {
432
422
  */
433
423
  getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook>;
434
424
  /**
435
- * Update Webhook
425
+ * Update webhook
436
426
  *
437
427
  *
438
428
  * @param {string} projectId
@@ -448,7 +438,7 @@ export declare class Projects extends Service {
448
438
  */
449
439
  updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
450
440
  /**
451
- * Delete Webhook
441
+ * Delete webhook
452
442
  *
453
443
  *
454
444
  * @param {string} projectId
@@ -458,7 +448,7 @@ export declare class Projects extends Service {
458
448
  */
459
449
  deleteWebhook(projectId: string, webhookId: string): Promise<{}>;
460
450
  /**
461
- * Update Webhook Signature Key
451
+ * Update webhook signature key
462
452
  *
463
453
  *
464
454
  * @param {string} projectId
@@ -36,7 +36,7 @@ export declare class Storage extends Service {
36
36
  */
37
37
  createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: string, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
38
38
  /**
39
- * Get Bucket
39
+ * Get bucket
40
40
  *
41
41
  * Get a storage bucket by its unique ID. This endpoint response returns a
42
42
  * JSON object with the storage bucket metadata.
@@ -47,7 +47,7 @@ export declare class Storage extends Service {
47
47
  */
48
48
  getBucket(bucketId: string): Promise<Models.Bucket>;
49
49
  /**
50
- * Update Bucket
50
+ * Update bucket
51
51
  *
52
52
  * Update a storage bucket by its unique ID.
53
53
  *
@@ -66,7 +66,7 @@ export declare class Storage extends Service {
66
66
  */
67
67
  updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: string, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
68
68
  /**
69
- * Delete Bucket
69
+ * Delete bucket
70
70
  *
71
71
  * Delete a storage bucket by its unique ID.
72
72
  *
@@ -76,7 +76,7 @@ export declare class Storage extends Service {
76
76
  */
77
77
  deleteBucket(bucketId: string): Promise<{}>;
78
78
  /**
79
- * List Files
79
+ * List files
80
80
  *
81
81
  * Get a list of all the user files. You can use the query params to filter
82
82
  * your results.
@@ -89,12 +89,12 @@ export declare class Storage extends Service {
89
89
  */
90
90
  listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList>;
91
91
  /**
92
- * Create File
92
+ * Create file
93
93
  *
94
94
  * Create a new file. Before using this route, you should create a new bucket
95
95
  * resource using either a [server
96
- * integration](/docs/server/storage#storageCreateBucket) API or directly from
97
- * your Appwrite console.
96
+ * integration](https://appwrite.io/docs/server/storage#storageCreateBucket)
97
+ * API or directly from your Appwrite console.
98
98
  *
99
99
  * Larger files should be uploaded using multiple requests with the
100
100
  * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)
@@ -119,7 +119,7 @@ export declare class Storage extends Service {
119
119
  */
120
120
  createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise<Models.File>;
121
121
  /**
122
- * Get File
122
+ * Get file
123
123
  *
124
124
  * Get a file by its unique ID. This endpoint response returns a JSON object
125
125
  * with the file metadata.
@@ -131,7 +131,7 @@ export declare class Storage extends Service {
131
131
  */
132
132
  getFile(bucketId: string, fileId: string): Promise<Models.File>;
133
133
  /**
134
- * Update File
134
+ * Update file
135
135
  *
136
136
  * Update a file by its unique ID. Only users with write permissions have
137
137
  * access to update this resource.
@@ -157,7 +157,7 @@ export declare class Storage extends Service {
157
157
  */
158
158
  deleteFile(bucketId: string, fileId: string): Promise<{}>;
159
159
  /**
160
- * Get File for Download
160
+ * Get file for download
161
161
  *
162
162
  * Get a file content by its unique ID. The endpoint response return with a
163
163
  * 'Content-Disposition: attachment' header that tells the browser to start
@@ -170,7 +170,7 @@ export declare class Storage extends Service {
170
170
  */
171
171
  getFileDownload(bucketId: string, fileId: string): URL;
172
172
  /**
173
- * Get File Preview
173
+ * Get file preview
174
174
  *
175
175
  * Get a file preview image. Currently, this method supports preview for image
176
176
  * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
@@ -196,7 +196,7 @@ export declare class Storage extends Service {
196
196
  */
197
197
  getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: string, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: string): URL;
198
198
  /**
199
- * Get File for View
199
+ * Get file for view
200
200
  *
201
201
  * Get a file content by its unique ID. This endpoint is similar to the
202
202
  * download method but returns with no 'Content-Disposition: attachment'
@@ -218,7 +218,7 @@ export declare class Storage extends Service {
218
218
  */
219
219
  getUsage(range?: string): Promise<Models.UsageStorage>;
220
220
  /**
221
- * Get usage stats for a storage bucket
221
+ * Get usage stats for storage bucket
222
222
  *
223
223
  *
224
224
  * @param {string} bucketId