appbuild-oceanbase-console 1.12.2 → 1.13.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/dist/cjs/package.json +3 -0
  2. package/dist/cjs/sdk.js +3837 -1017
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/package.json +3 -0
  5. package/dist/esm/sdk.js +3831 -1018
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +10131 -3554
  8. package/package.json +7 -2
  9. package/types/channel.d.ts +74 -0
  10. package/types/client.d.ts +84 -16
  11. package/types/enums/appwrite-migration-resource.d.ts +25 -0
  12. package/types/enums/backup-services.d.ts +5 -0
  13. package/types/enums/billing-plan-group.d.ts +5 -0
  14. package/types/enums/browser-permission.d.ts +22 -0
  15. package/types/enums/domain-purchase-status.d.ts +6 -0
  16. package/types/enums/domain-transfer-status-enum.d.ts +10 -0
  17. package/types/enums/filter-type.d.ts +4 -0
  18. package/types/enums/firebase-migration-resource.d.ts +12 -0
  19. package/types/enums/frameworks.d.ts +17 -0
  20. package/types/enums/n-host-migration-resource.d.ts +13 -0
  21. package/types/enums/order-by.d.ts +4 -0
  22. package/types/enums/registration-type.d.ts +6 -0
  23. package/types/enums/resource-type.d.ts +6 -0
  24. package/types/enums/runtimes.d.ts +180 -0
  25. package/types/enums/scopes.d.ts +70 -0
  26. package/types/enums/supabase-migration-resource.d.ts +13 -0
  27. package/types/enums/template-reference-type.d.ts +5 -0
  28. package/types/enums/use-cases.d.ts +11 -0
  29. package/types/enums/vcs-reference-type.d.ts +5 -0
  30. package/types/index.d.ts +119 -96
  31. package/types/migrations.d.ts +10 -9
  32. package/types/models.d.ts +1270 -136
  33. package/types/query.d.ts +60 -8
  34. package/types/services/account.d.ts +162 -39
  35. package/types/services/activities.d.ts +46 -0
  36. package/types/services/avatars.d.ts +9 -8
  37. package/types/services/backups.d.ts +13 -12
  38. package/types/services/console.d.ts +41 -3
  39. package/types/services/databases.d.ts +384 -68
  40. package/types/services/domains.d.ts +223 -0
  41. package/types/services/functions.d.ts +46 -31
  42. package/types/services/health.d.ts +49 -6
  43. package/types/services/messaging.d.ts +2 -2
  44. package/types/services/organizations.d.ts +203 -36
  45. package/types/services/projects.d.ts +151 -210
  46. package/types/services/realtime.d.ts +26 -10
  47. package/types/services/sites.d.ts +49 -29
  48. package/types/services/storage.d.ts +12 -12
  49. package/types/services/tables-db.d.ts +352 -34
  50. package/types/services/teams.d.ts +4 -4
  51. package/types/services/users.d.ts +26 -2
  52. package/types/services/vcs.d.ts +4 -1
  53. package/types/services/webhooks.d.ts +165 -0
@@ -3,9 +3,11 @@ import type { Models } from '../models';
3
3
  import { Framework } from '../enums/framework';
4
4
  import { BuildRuntime } from '../enums/build-runtime';
5
5
  import { Adapter } from '../enums/adapter';
6
+ import { Frameworks } from '../enums/frameworks';
7
+ import { UseCases } from '../enums/use-cases';
6
8
  import { UsageRange } from '../enums/usage-range';
7
- import { Type } from '../enums/type';
8
- import { VCSDeploymentType } from '../enums/vcs-deployment-type';
9
+ import { TemplateReferenceType } from '../enums/template-reference-type';
10
+ import { VCSReferenceType } from '../enums/vcs-reference-type';
9
11
  import { DeploymentDownloadType } from '../enums/deployment-download-type';
10
12
  export declare class Sites {
11
13
  client: Client;
@@ -47,6 +49,7 @@ export declare class Sites {
47
49
  * @param {number} params.timeout - Maximum request time in seconds.
48
50
  * @param {string} params.installCommand - Install Command.
49
51
  * @param {string} params.buildCommand - Build Command.
52
+ * @param {string} params.startCommand - Custom start command. Leave empty to use default.
50
53
  * @param {string} params.outputDirectory - Output Directory for site.
51
54
  * @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
52
55
  * @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
@@ -55,7 +58,9 @@ export declare class Sites {
55
58
  * @param {string} params.providerBranch - Production branch for the repo linked to the site.
56
59
  * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
57
60
  * @param {string} params.providerRootDirectory - Path to site code in the linked repo.
58
- * @param {string} params.specification - Framework specification for the site and builds.
61
+ * @param {string} params.buildSpecification - Build specification for the site deployments.
62
+ * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
63
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
59
64
  * @throws {AppwriteException}
60
65
  * @returns {Promise<Models.Site>}
61
66
  */
@@ -69,6 +74,7 @@ export declare class Sites {
69
74
  timeout?: number;
70
75
  installCommand?: string;
71
76
  buildCommand?: string;
77
+ startCommand?: string;
72
78
  outputDirectory?: string;
73
79
  adapter?: Adapter;
74
80
  installationId?: string;
@@ -77,7 +83,9 @@ export declare class Sites {
77
83
  providerBranch?: string;
78
84
  providerSilentMode?: boolean;
79
85
  providerRootDirectory?: string;
80
- specification?: string;
86
+ buildSpecification?: string;
87
+ runtimeSpecification?: string;
88
+ deploymentRetention?: number;
81
89
  }): Promise<Models.Site>;
82
90
  /**
83
91
  * Create a new site.
@@ -91,6 +99,7 @@ export declare class Sites {
91
99
  * @param {number} timeout - Maximum request time in seconds.
92
100
  * @param {string} installCommand - Install Command.
93
101
  * @param {string} buildCommand - Build Command.
102
+ * @param {string} startCommand - Custom start command. Leave empty to use default.
94
103
  * @param {string} outputDirectory - Output Directory for site.
95
104
  * @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
96
105
  * @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
@@ -99,12 +108,14 @@ export declare class Sites {
99
108
  * @param {string} providerBranch - Production branch for the repo linked to the site.
100
109
  * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
101
110
  * @param {string} providerRootDirectory - Path to site code in the linked repo.
102
- * @param {string} specification - Framework specification for the site and builds.
111
+ * @param {string} buildSpecification - Build specification for the site deployments.
112
+ * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
113
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
103
114
  * @throws {AppwriteException}
104
115
  * @returns {Promise<Models.Site>}
105
116
  * @deprecated Use the object parameter style method for a better developer experience.
106
117
  */
107
- create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Site>;
118
+ create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
108
119
  /**
109
120
  * Get a list of all frameworks that are currently available on the server instance.
110
121
  *
@@ -122,31 +133,31 @@ export declare class Sites {
122
133
  /**
123
134
  * List available site templates. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
124
135
  *
125
- * @param {string[]} params.frameworks - List of frameworks allowed for filtering site templates. Maximum of 100 frameworks are allowed.
126
- * @param {string[]} params.useCases - List of use cases allowed for filtering site templates. Maximum of 100 use cases are allowed.
136
+ * @param {Frameworks[]} params.frameworks - List of frameworks allowed for filtering site templates. Maximum of 100 frameworks are allowed.
137
+ * @param {UseCases[]} params.useCases - List of use cases allowed for filtering site templates. Maximum of 100 use cases are allowed.
127
138
  * @param {number} params.limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
128
139
  * @param {number} params.offset - Offset the list of returned templates. Maximum offset is 5000.
129
140
  * @throws {AppwriteException}
130
141
  * @returns {Promise<Models.TemplateSiteList>}
131
142
  */
132
143
  listTemplates(params?: {
133
- frameworks?: string[];
134
- useCases?: string[];
144
+ frameworks?: Frameworks[];
145
+ useCases?: UseCases[];
135
146
  limit?: number;
136
147
  offset?: number;
137
148
  }): Promise<Models.TemplateSiteList>;
138
149
  /**
139
150
  * List available site templates. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
140
151
  *
141
- * @param {string[]} frameworks - List of frameworks allowed for filtering site templates. Maximum of 100 frameworks are allowed.
142
- * @param {string[]} useCases - List of use cases allowed for filtering site templates. Maximum of 100 use cases are allowed.
152
+ * @param {Frameworks[]} frameworks - List of frameworks allowed for filtering site templates. Maximum of 100 frameworks are allowed.
153
+ * @param {UseCases[]} useCases - List of use cases allowed for filtering site templates. Maximum of 100 use cases are allowed.
143
154
  * @param {number} limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
144
155
  * @param {number} offset - Offset the list of returned templates. Maximum offset is 5000.
145
156
  * @throws {AppwriteException}
146
157
  * @returns {Promise<Models.TemplateSiteList>}
147
158
  * @deprecated Use the object parameter style method for a better developer experience.
148
159
  */
149
- listTemplates(frameworks?: string[], useCases?: string[], limit?: number, offset?: number): Promise<Models.TemplateSiteList>;
160
+ listTemplates(frameworks?: Frameworks[], useCases?: UseCases[], limit?: number, offset?: number): Promise<Models.TemplateSiteList>;
150
161
  /**
151
162
  * Get a site template using ID. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
152
163
  *
@@ -215,6 +226,7 @@ export declare class Sites {
215
226
  * @param {number} params.timeout - Maximum request time in seconds.
216
227
  * @param {string} params.installCommand - Install Command.
217
228
  * @param {string} params.buildCommand - Build Command.
229
+ * @param {string} params.startCommand - Custom start command. Leave empty to use default.
218
230
  * @param {string} params.outputDirectory - Output Directory for site.
219
231
  * @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
220
232
  * @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
@@ -224,7 +236,9 @@ export declare class Sites {
224
236
  * @param {string} params.providerBranch - Production branch for the repo linked to the site.
225
237
  * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
226
238
  * @param {string} params.providerRootDirectory - Path to site code in the linked repo.
227
- * @param {string} params.specification - Framework specification for the site and builds.
239
+ * @param {string} params.buildSpecification - Build specification for the site deployments.
240
+ * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
241
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
228
242
  * @throws {AppwriteException}
229
243
  * @returns {Promise<Models.Site>}
230
244
  */
@@ -237,6 +251,7 @@ export declare class Sites {
237
251
  timeout?: number;
238
252
  installCommand?: string;
239
253
  buildCommand?: string;
254
+ startCommand?: string;
240
255
  outputDirectory?: string;
241
256
  buildRuntime?: BuildRuntime;
242
257
  adapter?: Adapter;
@@ -246,7 +261,9 @@ export declare class Sites {
246
261
  providerBranch?: string;
247
262
  providerSilentMode?: boolean;
248
263
  providerRootDirectory?: string;
249
- specification?: string;
264
+ buildSpecification?: string;
265
+ runtimeSpecification?: string;
266
+ deploymentRetention?: number;
250
267
  }): Promise<Models.Site>;
251
268
  /**
252
269
  * Update site by its unique ID.
@@ -259,6 +276,7 @@ export declare class Sites {
259
276
  * @param {number} timeout - Maximum request time in seconds.
260
277
  * @param {string} installCommand - Install Command.
261
278
  * @param {string} buildCommand - Build Command.
279
+ * @param {string} startCommand - Custom start command. Leave empty to use default.
262
280
  * @param {string} outputDirectory - Output Directory for site.
263
281
  * @param {BuildRuntime} buildRuntime - Runtime to use during build step.
264
282
  * @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
@@ -268,12 +286,14 @@ export declare class Sites {
268
286
  * @param {string} providerBranch - Production branch for the repo linked to the site.
269
287
  * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
270
288
  * @param {string} providerRootDirectory - Path to site code in the linked repo.
271
- * @param {string} specification - Framework specification for the site and builds.
289
+ * @param {string} buildSpecification - Build specification for the site deployments.
290
+ * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
291
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
272
292
  * @throws {AppwriteException}
273
293
  * @returns {Promise<Models.Site>}
274
294
  * @deprecated Use the object parameter style method for a better developer experience.
275
295
  */
276
- update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Site>;
296
+ update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
277
297
  /**
278
298
  * Delete a site by its unique ID.
279
299
  *
@@ -348,20 +368,20 @@ export declare class Sites {
348
368
  *
349
369
  * @param {string} params.siteId - Site ID.
350
370
  * @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
351
- * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
352
371
  * @param {string} params.installCommand - Install Commands.
353
372
  * @param {string} params.buildCommand - Build Commands.
354
373
  * @param {string} params.outputDirectory - Output Directory.
374
+ * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
355
375
  * @throws {AppwriteException}
356
376
  * @returns {Promise<Models.Deployment>}
357
377
  */
358
378
  createDeployment(params: {
359
379
  siteId: string;
360
380
  code: File;
361
- activate: boolean;
362
381
  installCommand?: string;
363
382
  buildCommand?: string;
364
383
  outputDirectory?: string;
384
+ activate?: boolean;
365
385
  onProgress?: (progress: UploadProgress) => void;
366
386
  }): Promise<Models.Deployment>;
367
387
  /**
@@ -369,15 +389,15 @@ export declare class Sites {
369
389
  *
370
390
  * @param {string} siteId - Site ID.
371
391
  * @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
372
- * @param {boolean} activate - Automatically activate the deployment when it is finished building.
373
392
  * @param {string} installCommand - Install Commands.
374
393
  * @param {string} buildCommand - Build Commands.
375
394
  * @param {string} outputDirectory - Output Directory.
395
+ * @param {boolean} activate - Automatically activate the deployment when it is finished building.
376
396
  * @throws {AppwriteException}
377
397
  * @returns {Promise<Models.Deployment>}
378
398
  * @deprecated Use the object parameter style method for a better developer experience.
379
399
  */
380
- createDeployment(siteId: string, code: File, activate: boolean, installCommand?: string, buildCommand?: string, outputDirectory?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
400
+ createDeployment(siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
381
401
  /**
382
402
  * Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
383
403
  *
@@ -409,7 +429,7 @@ export declare class Sites {
409
429
  * @param {string} params.repository - Repository name of the template.
410
430
  * @param {string} params.owner - The name of the owner of the template.
411
431
  * @param {string} params.rootDirectory - Path to site code in the template repo.
412
- * @param {Type} params.type - Type for the reference provided. Can be commit, branch, or tag
432
+ * @param {TemplateReferenceType} params.type - Type for the reference provided. Can be commit, branch, or tag
413
433
  * @param {string} params.reference - Reference value, can be a commit hash, branch name, or release tag
414
434
  * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
415
435
  * @throws {AppwriteException}
@@ -420,7 +440,7 @@ export declare class Sites {
420
440
  repository: string;
421
441
  owner: string;
422
442
  rootDirectory: string;
423
- type: Type;
443
+ type: TemplateReferenceType;
424
444
  reference: string;
425
445
  activate?: boolean;
426
446
  }): Promise<Models.Deployment>;
@@ -433,21 +453,21 @@ export declare class Sites {
433
453
  * @param {string} repository - Repository name of the template.
434
454
  * @param {string} owner - The name of the owner of the template.
435
455
  * @param {string} rootDirectory - Path to site code in the template repo.
436
- * @param {Type} type - Type for the reference provided. Can be commit, branch, or tag
456
+ * @param {TemplateReferenceType} type - Type for the reference provided. Can be commit, branch, or tag
437
457
  * @param {string} reference - Reference value, can be a commit hash, branch name, or release tag
438
458
  * @param {boolean} activate - Automatically activate the deployment when it is finished building.
439
459
  * @throws {AppwriteException}
440
460
  * @returns {Promise<Models.Deployment>}
441
461
  * @deprecated Use the object parameter style method for a better developer experience.
442
462
  */
443
- createTemplateDeployment(siteId: string, repository: string, owner: string, rootDirectory: string, type: Type, reference: string, activate?: boolean): Promise<Models.Deployment>;
463
+ createTemplateDeployment(siteId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;
444
464
  /**
445
465
  * Create a deployment when a site is connected to VCS.
446
466
  *
447
467
  * This endpoint lets you create deployment from a branch, commit, or a tag.
448
468
  *
449
469
  * @param {string} params.siteId - Site ID.
450
- * @param {VCSDeploymentType} params.type - Type of reference passed. Allowed values are: branch, commit
470
+ * @param {VCSReferenceType} params.type - Type of reference passed. Allowed values are: branch, commit
451
471
  * @param {string} params.reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
452
472
  * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
453
473
  * @throws {AppwriteException}
@@ -455,7 +475,7 @@ export declare class Sites {
455
475
  */
456
476
  createVcsDeployment(params: {
457
477
  siteId: string;
458
- type: VCSDeploymentType;
478
+ type: VCSReferenceType;
459
479
  reference: string;
460
480
  activate?: boolean;
461
481
  }): Promise<Models.Deployment>;
@@ -465,14 +485,14 @@ export declare class Sites {
465
485
  * This endpoint lets you create deployment from a branch, commit, or a tag.
466
486
  *
467
487
  * @param {string} siteId - Site ID.
468
- * @param {VCSDeploymentType} type - Type of reference passed. Allowed values are: branch, commit
488
+ * @param {VCSReferenceType} type - Type of reference passed. Allowed values are: branch, commit
469
489
  * @param {string} reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
470
490
  * @param {boolean} activate - Automatically activate the deployment when it is finished building.
471
491
  * @throws {AppwriteException}
472
492
  * @returns {Promise<Models.Deployment>}
473
493
  * @deprecated Use the object parameter style method for a better developer experience.
474
494
  */
475
- createVcsDeployment(siteId: string, type: VCSDeploymentType, reference: string, activate?: boolean): Promise<Models.Deployment>;
495
+ createVcsDeployment(siteId: string, type: VCSReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;
476
496
  /**
477
497
  * Get a site deployment by its unique ID.
478
498
  *
@@ -42,7 +42,7 @@ export declare class Storage {
42
42
  * @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
43
43
  * @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
44
44
  * @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
45
- * @param {Compression} params.compression - Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
45
+ * @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
46
46
  * @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
47
47
  * @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
48
48
  * @param {boolean} params.transformations - Are image transformations enabled?
@@ -72,7 +72,7 @@ export declare class Storage {
72
72
  * @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
73
73
  * @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
74
74
  * @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
75
- * @param {Compression} compression - Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
75
+ * @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
76
76
  * @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
77
77
  * @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
78
78
  * @param {boolean} transformations - Are image transformations enabled?
@@ -110,7 +110,7 @@ export declare class Storage {
110
110
  * @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
111
111
  * @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
112
112
  * @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
113
- * @param {Compression} params.compression - Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
113
+ * @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
114
114
  * @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
115
115
  * @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
116
116
  * @param {boolean} params.transformations - Are image transformations enabled?
@@ -140,7 +140,7 @@ export declare class Storage {
140
140
  * @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
141
141
  * @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
142
142
  * @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
143
- * @param {Compression} compression - Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
143
+ * @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
144
144
  * @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
145
145
  * @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
146
146
  * @param {boolean} transformations - Are image transformations enabled?
@@ -264,10 +264,10 @@ export declare class Storage {
264
264
  /**
265
265
  * Update a file by its unique ID. Only users with write permissions have access to update this resource.
266
266
  *
267
- * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
268
- * @param {string} params.fileId - File unique ID.
269
- * @param {string} params.name - Name of the file
270
- * @param {string[]} params.permissions - An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
267
+ * @param {string} params.bucketId - Bucket unique ID.
268
+ * @param {string} params.fileId - File ID.
269
+ * @param {string} params.name - File name.
270
+ * @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
271
271
  * @throws {AppwriteException}
272
272
  * @returns {Promise<Models.File>}
273
273
  */
@@ -280,10 +280,10 @@ export declare class Storage {
280
280
  /**
281
281
  * Update a file by its unique ID. Only users with write permissions have access to update this resource.
282
282
  *
283
- * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
284
- * @param {string} fileId - File unique ID.
285
- * @param {string} name - Name of the file
286
- * @param {string[]} permissions - An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
283
+ * @param {string} bucketId - Bucket unique ID.
284
+ * @param {string} fileId - File ID.
285
+ * @param {string} name - File name.
286
+ * @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
287
287
  * @throws {AppwriteException}
288
288
  * @returns {Promise<Models.File>}
289
289
  * @deprecated Use the object parameter style method for a better developer experience.