@appwrite.io/console 1.5.2 → 1.6.0

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 (53) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +7673 -9723
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +7673 -9723
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +7673 -9723
  7. package/docs/examples/organizations/validate-invoice.md +14 -0
  8. package/package.json +1 -1
  9. package/src/client.ts +21 -4
  10. package/src/enums/o-auth-provider.ts +1 -0
  11. package/src/models.ts +118 -6
  12. package/src/services/account.ts +126 -430
  13. package/src/services/assistant.ts +2 -7
  14. package/src/services/avatars.ts +7 -21
  15. package/src/services/backups.ts +24 -84
  16. package/src/services/console.ts +14 -49
  17. package/src/services/databases.ts +96 -336
  18. package/src/services/functions.ts +55 -192
  19. package/src/services/graphql.ts +4 -14
  20. package/src/services/health.ts +50 -175
  21. package/src/services/locale.ts +16 -56
  22. package/src/services/messaging.ts +92 -322
  23. package/src/services/migrations.ts +24 -84
  24. package/src/services/organizations.ts +86 -196
  25. package/src/services/project.ts +12 -42
  26. package/src/services/projects.ts +92 -322
  27. package/src/services/proxy.ts +10 -35
  28. package/src/services/storage.ts +27 -93
  29. package/src/services/teams.ts +28 -98
  30. package/src/services/users.ts +86 -301
  31. package/src/services/vcs.ts +20 -70
  32. package/types/enums/o-auth-provider.d.ts +1 -0
  33. package/types/models.d.ts +118 -6
  34. package/types/services/account.d.ts +4 -128
  35. package/types/services/assistant.d.ts +0 -2
  36. package/types/services/avatars.d.ts +0 -14
  37. package/types/services/backups.d.ts +0 -24
  38. package/types/services/console.d.ts +0 -14
  39. package/types/services/databases.d.ts +0 -96
  40. package/types/services/functions.d.ts +0 -56
  41. package/types/services/graphql.d.ts +0 -4
  42. package/types/services/health.d.ts +0 -50
  43. package/types/services/locale.d.ts +0 -16
  44. package/types/services/messaging.d.ts +0 -92
  45. package/types/services/migrations.d.ts +0 -24
  46. package/types/services/organizations.d.ts +11 -58
  47. package/types/services/project.d.ts +0 -12
  48. package/types/services/projects.d.ts +0 -92
  49. package/types/services/proxy.d.ts +0 -10
  50. package/types/services/storage.d.ts +0 -30
  51. package/types/services/teams.d.ts +0 -28
  52. package/types/services/users.d.ts +0 -86
  53. package/types/services/vcs.d.ts +0 -20
@@ -15,8 +15,6 @@ export declare class Projects {
15
15
  client: Client;
16
16
  constructor(client: Client);
17
17
  /**
18
- * List projects
19
- *
20
18
  * Get a list of all projects. You can use the query params to filter your results.
21
19
  *
22
20
  * @param {string[]} queries
@@ -26,8 +24,6 @@ export declare class Projects {
26
24
  */
27
25
  list(queries?: string[], search?: string): Promise<Models.ProjectList>;
28
26
  /**
29
- * Create project
30
- *
31
27
  * Create a new project. You can create a maximum of 100 projects per account.
32
28
  *
33
29
  * @param {string} projectId
@@ -48,8 +44,6 @@ export declare class Projects {
48
44
  */
49
45
  create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
50
46
  /**
51
- * Get project
52
- *
53
47
  * Get a project by its unique ID. This endpoint allows you to retrieve the project&#039;s details, including its name, description, team, region, and other metadata.
54
48
  *
55
49
  * @param {string} projectId
@@ -58,8 +52,6 @@ export declare class Projects {
58
52
  */
59
53
  get(projectId: string): Promise<Models.Project>;
60
54
  /**
61
- * Update project
62
- *
63
55
  * Update a project by its unique ID.
64
56
  *
65
57
  * @param {string} projectId
@@ -78,8 +70,6 @@ export declare class Projects {
78
70
  */
79
71
  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>;
80
72
  /**
81
- * Delete project
82
- *
83
73
  * Delete a project by its unique ID.
84
74
  *
85
75
  * @param {string} projectId
@@ -88,8 +78,6 @@ export declare class Projects {
88
78
  */
89
79
  delete(projectId: string): Promise<{}>;
90
80
  /**
91
- * Update API status
92
- *
93
81
  * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
94
82
  *
95
83
  * @param {string} projectId
@@ -100,8 +88,6 @@ export declare class Projects {
100
88
  */
101
89
  updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project>;
102
90
  /**
103
- * Update all API status
104
- *
105
91
  * Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.
106
92
  *
107
93
  * @param {string} projectId
@@ -111,8 +97,6 @@ export declare class Projects {
111
97
  */
112
98
  updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
113
99
  /**
114
- * Update project authentication duration
115
- *
116
100
  * Update how long sessions created within a project should stay active for.
117
101
  *
118
102
  * @param {string} projectId
@@ -122,8 +106,6 @@ export declare class Projects {
122
106
  */
123
107
  updateAuthDuration(projectId: string, duration: number): Promise<Models.Project>;
124
108
  /**
125
- * Update project users limit
126
- *
127
109
  * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
128
110
  *
129
111
  * @param {string} projectId
@@ -133,8 +115,6 @@ export declare class Projects {
133
115
  */
134
116
  updateAuthLimit(projectId: string, limit: number): Promise<Models.Project>;
135
117
  /**
136
- * Update project user sessions limit
137
- *
138
118
  * Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.
139
119
  *
140
120
  * @param {string} projectId
@@ -144,8 +124,6 @@ export declare class Projects {
144
124
  */
145
125
  updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
146
126
  /**
147
- * Update project memberships privacy attributes
148
- *
149
127
  * Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status.
150
128
  *
151
129
  * @param {string} projectId
@@ -157,8 +135,6 @@ export declare class Projects {
157
135
  */
158
136
  updateMembershipsPrivacy(projectId: string, userName: boolean, userEmail: boolean, mfa: boolean): Promise<Models.Project>;
159
137
  /**
160
- * Update the mock numbers for the project
161
- *
162
138
  * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
163
139
  *
164
140
  * @param {string} projectId
@@ -168,8 +144,6 @@ export declare class Projects {
168
144
  */
169
145
  updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project>;
170
146
  /**
171
- * Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
172
- *
173
147
  * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don&#039;t use common and insecure passwords.
174
148
  *
175
149
  * @param {string} projectId
@@ -179,8 +153,6 @@ export declare class Projects {
179
153
  */
180
154
  updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project>;
181
155
  /**
182
- * Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
183
- *
184
156
  * Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.
185
157
  *
186
158
  * @param {string} projectId
@@ -190,8 +162,6 @@ export declare class Projects {
190
162
  */
191
163
  updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project>;
192
164
  /**
193
- * Enable or disable checking user passwords for similarity with their personal data.
194
- *
195
165
  * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
196
166
  *
197
167
  * @param {string} projectId
@@ -201,8 +171,6 @@ export declare class Projects {
201
171
  */
202
172
  updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project>;
203
173
  /**
204
- * Update project sessions emails
205
- *
206
174
  * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
207
175
  *
208
176
  * @param {string} projectId
@@ -212,8 +180,6 @@ export declare class Projects {
212
180
  */
213
181
  updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project>;
214
182
  /**
215
- * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
216
- *
217
183
  * Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
218
184
  *
219
185
  * @param {string} projectId
@@ -224,8 +190,6 @@ export declare class Projects {
224
190
  */
225
191
  updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
226
192
  /**
227
- * Create JWT
228
- *
229
193
  * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
230
194
  *
231
195
  * @param {string} projectId
@@ -236,8 +200,6 @@ export declare class Projects {
236
200
  */
237
201
  createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt>;
238
202
  /**
239
- * List keys
240
- *
241
203
  * Get a list of all API keys from the current project.
242
204
  *
243
205
  * @param {string} projectId
@@ -246,8 +208,6 @@ export declare class Projects {
246
208
  */
247
209
  listKeys(projectId: string): Promise<Models.KeyList>;
248
210
  /**
249
- * Create key
250
- *
251
211
  * Create a new API key. It&#039;s recommended to have multiple API keys with strict scopes for separate functions within your project.
252
212
  *
253
213
  * @param {string} projectId
@@ -259,8 +219,6 @@ export declare class Projects {
259
219
  */
260
220
  createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
261
221
  /**
262
- * Get key
263
- *
264
222
  * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it&#039;s scopes.
265
223
  *
266
224
  * @param {string} projectId
@@ -270,8 +228,6 @@ export declare class Projects {
270
228
  */
271
229
  getKey(projectId: string, keyId: string): Promise<Models.Key>;
272
230
  /**
273
- * Update key
274
- *
275
231
  * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
276
232
  *
277
233
  * @param {string} projectId
@@ -284,8 +240,6 @@ export declare class Projects {
284
240
  */
285
241
  updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
286
242
  /**
287
- * Delete key
288
- *
289
243
  * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
290
244
  *
291
245
  * @param {string} projectId
@@ -295,8 +249,6 @@ export declare class Projects {
295
249
  */
296
250
  deleteKey(projectId: string, keyId: string): Promise<{}>;
297
251
  /**
298
- * Update project OAuth2
299
- *
300
252
  * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
301
253
  *
302
254
  * @param {string} projectId
@@ -309,8 +261,6 @@ export declare class Projects {
309
261
  */
310
262
  updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
311
263
  /**
312
- * List platforms
313
- *
314
264
  * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
315
265
  *
316
266
  * @param {string} projectId
@@ -319,8 +269,6 @@ export declare class Projects {
319
269
  */
320
270
  listPlatforms(projectId: string): Promise<Models.PlatformList>;
321
271
  /**
322
- * Create platform
323
- *
324
272
  * Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.
325
273
  *
326
274
  * @param {string} projectId
@@ -334,8 +282,6 @@ export declare class Projects {
334
282
  */
335
283
  createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
336
284
  /**
337
- * Get platform
338
- *
339
285
  * Get a platform by its unique ID. This endpoint returns the platform&#039;s details, including its name, type, and key configurations.
340
286
  *
341
287
  * @param {string} projectId
@@ -345,8 +291,6 @@ export declare class Projects {
345
291
  */
346
292
  getPlatform(projectId: string, platformId: string): Promise<Models.Platform>;
347
293
  /**
348
- * Update platform
349
- *
350
294
  * Update a platform by its unique ID. Use this endpoint to update the platform&#039;s name, key, platform store ID, or hostname.
351
295
  *
352
296
  * @param {string} projectId
@@ -360,8 +304,6 @@ export declare class Projects {
360
304
  */
361
305
  updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
362
306
  /**
363
- * Delete platform
364
- *
365
307
  * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
366
308
  *
367
309
  * @param {string} projectId
@@ -371,8 +313,6 @@ export declare class Projects {
371
313
  */
372
314
  deletePlatform(projectId: string, platformId: string): Promise<{}>;
373
315
  /**
374
- * Update service status
375
- *
376
316
  * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
377
317
  *
378
318
  * @param {string} projectId
@@ -383,8 +323,6 @@ export declare class Projects {
383
323
  */
384
324
  updateServiceStatus(projectId: string, service: ApiService, status: boolean): Promise<Models.Project>;
385
325
  /**
386
- * Update all service status
387
- *
388
326
  * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
389
327
  *
390
328
  * @param {string} projectId
@@ -394,8 +332,6 @@ export declare class Projects {
394
332
  */
395
333
  updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
396
334
  /**
397
- * Update SMTP
398
- *
399
335
  * Update the SMTP configuration for your project. Use this endpoint to configure your project&#039;s SMTP provider with your custom settings for sending transactional emails.
400
336
  *
401
337
  * @param {string} projectId
@@ -413,8 +349,6 @@ export declare class Projects {
413
349
  */
414
350
  updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project>;
415
351
  /**
416
- * Create SMTP test
417
- *
418
352
  * Send a test email to verify SMTP configuration.
419
353
  *
420
354
  * @param {string} projectId
@@ -432,8 +366,6 @@ export declare class Projects {
432
366
  */
433
367
  createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
434
368
  /**
435
- * Update project team
436
- *
437
369
  * Update the team ID of a project allowing for it to be transferred to another team.
438
370
  *
439
371
  * @param {string} projectId
@@ -443,8 +375,6 @@ export declare class Projects {
443
375
  */
444
376
  updateTeam(projectId: string, teamId: string): Promise<Models.Project>;
445
377
  /**
446
- * Get custom email template
447
- *
448
378
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
449
379
  *
450
380
  * @param {string} projectId
@@ -455,8 +385,6 @@ export declare class Projects {
455
385
  */
456
386
  getEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
457
387
  /**
458
- * Update custom email templates
459
- *
460
388
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
461
389
  *
462
390
  * @param {string} projectId
@@ -472,8 +400,6 @@ export declare class Projects {
472
400
  */
473
401
  updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.EmailTemplate>;
474
402
  /**
475
- * Reset custom email template
476
- *
477
403
  * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
478
404
  *
479
405
  * @param {string} projectId
@@ -484,8 +410,6 @@ export declare class Projects {
484
410
  */
485
411
  deleteEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
486
412
  /**
487
- * Get custom SMS template
488
- *
489
413
  * Get a custom SMS template for the specified locale and type returning it&#039;s contents.
490
414
  *
491
415
  * @param {string} projectId
@@ -496,8 +420,6 @@ export declare class Projects {
496
420
  */
497
421
  getSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
498
422
  /**
499
- * Update custom SMS template
500
- *
501
423
  * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
502
424
  *
503
425
  * @param {string} projectId
@@ -509,8 +431,6 @@ export declare class Projects {
509
431
  */
510
432
  updateSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string): Promise<Models.SmsTemplate>;
511
433
  /**
512
- * Reset custom SMS template
513
- *
514
434
  * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
515
435
  *
516
436
  * @param {string} projectId
@@ -521,8 +441,6 @@ export declare class Projects {
521
441
  */
522
442
  deleteSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
523
443
  /**
524
- * List webhooks
525
- *
526
444
  * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
527
445
  *
528
446
  * @param {string} projectId
@@ -531,8 +449,6 @@ export declare class Projects {
531
449
  */
532
450
  listWebhooks(projectId: string): Promise<Models.WebhookList>;
533
451
  /**
534
- * Create webhook
535
- *
536
452
  * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
537
453
  *
538
454
  * @param {string} projectId
@@ -548,8 +464,6 @@ export declare class Projects {
548
464
  */
549
465
  createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
550
466
  /**
551
- * Get webhook
552
- *
553
467
  * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
554
468
  *
555
469
  * @param {string} projectId
@@ -559,8 +473,6 @@ export declare class Projects {
559
473
  */
560
474
  getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook>;
561
475
  /**
562
- * Update webhook
563
- *
564
476
  * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
565
477
  *
566
478
  * @param {string} projectId
@@ -577,8 +489,6 @@ export declare class Projects {
577
489
  */
578
490
  updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
579
491
  /**
580
- * Delete webhook
581
- *
582
492
  * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
583
493
  *
584
494
  * @param {string} projectId
@@ -588,8 +498,6 @@ export declare class Projects {
588
498
  */
589
499
  deleteWebhook(projectId: string, webhookId: string): Promise<{}>;
590
500
  /**
591
- * Update webhook signature key
592
- *
593
501
  * Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
594
502
  *
595
503
  * @param {string} projectId
@@ -5,8 +5,6 @@ export declare class Proxy {
5
5
  client: Client;
6
6
  constructor(client: Client);
7
7
  /**
8
- * List rules
9
- *
10
8
  * Get a list of all the proxy rules. You can use the query params to filter your results.
11
9
  *
12
10
  * @param {string[]} queries
@@ -16,8 +14,6 @@ export declare class Proxy {
16
14
  */
17
15
  listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
18
16
  /**
19
- * Create rule
20
- *
21
17
  * Create a new proxy rule.
22
18
  *
23
19
  * @param {string} domain
@@ -28,8 +24,6 @@ export declare class Proxy {
28
24
  */
29
25
  createRule(domain: string, resourceType: ResourceType, resourceId?: string): Promise<Models.ProxyRule>;
30
26
  /**
31
- * Get rule
32
- *
33
27
  * Get a proxy rule by its unique ID.
34
28
  *
35
29
  * @param {string} ruleId
@@ -38,8 +32,6 @@ export declare class Proxy {
38
32
  */
39
33
  getRule(ruleId: string): Promise<Models.ProxyRule>;
40
34
  /**
41
- * Delete rule
42
- *
43
35
  * Delete a proxy rule by its unique ID.
44
36
  *
45
37
  * @param {string} ruleId
@@ -48,8 +40,6 @@ export declare class Proxy {
48
40
  */
49
41
  deleteRule(ruleId: string): Promise<{}>;
50
42
  /**
51
- * Update rule verification status
52
- *
53
43
  * Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.
54
44
  *
55
45
  * @param {string} ruleId
@@ -8,8 +8,6 @@ export declare class Storage {
8
8
  client: Client;
9
9
  constructor(client: Client);
10
10
  /**
11
- * List buckets
12
- *
13
11
  * Get a list of all the storage buckets. You can use the query params to filter your results.
14
12
  *
15
13
  * @param {string[]} queries
@@ -19,8 +17,6 @@ export declare class Storage {
19
17
  */
20
18
  listBuckets(queries?: string[], search?: string): Promise<Models.BucketList>;
21
19
  /**
22
- * Create bucket
23
- *
24
20
  * Create a new storage bucket.
25
21
  *
26
22
  * @param {string} bucketId
@@ -38,8 +34,6 @@ export declare class Storage {
38
34
  */
39
35
  createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
40
36
  /**
41
- * Get bucket
42
- *
43
37
  * Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.
44
38
  *
45
39
  * @param {string} bucketId
@@ -48,8 +42,6 @@ export declare class Storage {
48
42
  */
49
43
  getBucket(bucketId: string): Promise<Models.Bucket>;
50
44
  /**
51
- * Update bucket
52
- *
53
45
  * Update a storage bucket by its unique ID.
54
46
  *
55
47
  * @param {string} bucketId
@@ -67,8 +59,6 @@ export declare class Storage {
67
59
  */
68
60
  updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
69
61
  /**
70
- * Delete bucket
71
- *
72
62
  * Delete a storage bucket by its unique ID.
73
63
  *
74
64
  * @param {string} bucketId
@@ -77,8 +67,6 @@ export declare class Storage {
77
67
  */
78
68
  deleteBucket(bucketId: string): Promise<{}>;
79
69
  /**
80
- * List files
81
- *
82
70
  * Get a list of all the user files. You can use the query params to filter your results.
83
71
  *
84
72
  * @param {string} bucketId
@@ -89,8 +77,6 @@ export declare class Storage {
89
77
  */
90
78
  listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList>;
91
79
  /**
92
- * Create file
93
- *
94
80
  * Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](https://appwrite.io/docs/server/storage#storageCreateBucket) API or directly from your Appwrite console.
95
81
 
96
82
  Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.
@@ -109,8 +95,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
109
95
  */
110
96
  createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise<Models.File>;
111
97
  /**
112
- * Get file
113
- *
114
98
  * Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.
115
99
  *
116
100
  * @param {string} bucketId
@@ -120,8 +104,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
120
104
  */
121
105
  getFile(bucketId: string, fileId: string): Promise<Models.File>;
122
106
  /**
123
- * Update file
124
- *
125
107
  * Update a file by its unique ID. Only users with write permissions have access to update this resource.
126
108
  *
127
109
  * @param {string} bucketId
@@ -133,8 +115,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
133
115
  */
134
116
  updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File>;
135
117
  /**
136
- * Delete file
137
- *
138
118
  * Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
139
119
  *
140
120
  * @param {string} bucketId
@@ -144,8 +124,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
144
124
  */
145
125
  deleteFile(bucketId: string, fileId: string): Promise<{}>;
146
126
  /**
147
- * Get file for download
148
- *
149
127
  * Get a file content by its unique ID. The endpoint response return with a &#039;Content-Disposition: attachment&#039; header that tells the browser to start downloading the file to user downloads directory.
150
128
  *
151
129
  * @param {string} bucketId
@@ -155,8 +133,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
155
133
  */
156
134
  getFileDownload(bucketId: string, fileId: string): string;
157
135
  /**
158
- * Get file preview
159
- *
160
136
  * Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.
161
137
  *
162
138
  * @param {string} bucketId
@@ -177,8 +153,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
177
153
  */
178
154
  getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: ImageGravity, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: ImageFormat): string;
179
155
  /**
180
- * Get file for view
181
- *
182
156
  * Get a file content by its unique ID. This endpoint is similar to the download method but returns with no &#039;Content-Disposition: attachment&#039; header.
183
157
  *
184
158
  * @param {string} bucketId
@@ -188,8 +162,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
188
162
  */
189
163
  getFileView(bucketId: string, fileId: string): string;
190
164
  /**
191
- * Get storage usage stats
192
- *
193
165
  * Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
194
166
 
195
167
  *
@@ -199,8 +171,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
199
171
  */
200
172
  getUsage(range?: StorageUsageRange): Promise<Models.UsageStorage>;
201
173
  /**
202
- * Get bucket usage stats
203
- *
204
174
  * Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
205
175
 
206
176
  *