node-appwrite 15.0.0 → 15.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/client.js +7 -4
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +7 -4
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/models.d.mts +2 -2
  6. package/dist/models.d.ts +2 -2
  7. package/dist/services/account.d.mts +0 -86
  8. package/dist/services/account.d.ts +0 -86
  9. package/dist/services/account.js +86 -172
  10. package/dist/services/account.js.map +1 -1
  11. package/dist/services/account.mjs +86 -172
  12. package/dist/services/account.mjs.map +1 -1
  13. package/dist/services/avatars.d.mts +0 -14
  14. package/dist/services/avatars.d.ts +0 -14
  15. package/dist/services/avatars.js +14 -28
  16. package/dist/services/avatars.js.map +1 -1
  17. package/dist/services/avatars.mjs +14 -28
  18. package/dist/services/avatars.mjs.map +1 -1
  19. package/dist/services/databases.d.mts +0 -84
  20. package/dist/services/databases.d.ts +0 -84
  21. package/dist/services/databases.js +84 -168
  22. package/dist/services/databases.js.map +1 -1
  23. package/dist/services/databases.mjs +84 -168
  24. package/dist/services/databases.mjs.map +1 -1
  25. package/dist/services/functions.d.mts +0 -48
  26. package/dist/services/functions.d.ts +0 -48
  27. package/dist/services/functions.js +48 -96
  28. package/dist/services/functions.js.map +1 -1
  29. package/dist/services/functions.mjs +48 -96
  30. package/dist/services/functions.mjs.map +1 -1
  31. package/dist/services/graphql.d.mts +0 -4
  32. package/dist/services/graphql.d.ts +0 -4
  33. package/dist/services/graphql.js +4 -8
  34. package/dist/services/graphql.js.map +1 -1
  35. package/dist/services/graphql.mjs +4 -8
  36. package/dist/services/graphql.mjs.map +1 -1
  37. package/dist/services/health.d.mts +0 -46
  38. package/dist/services/health.d.ts +0 -46
  39. package/dist/services/health.js +46 -92
  40. package/dist/services/health.js.map +1 -1
  41. package/dist/services/health.mjs +46 -92
  42. package/dist/services/health.mjs.map +1 -1
  43. package/dist/services/locale.d.mts +0 -16
  44. package/dist/services/locale.d.ts +0 -16
  45. package/dist/services/locale.js +16 -32
  46. package/dist/services/locale.js.map +1 -1
  47. package/dist/services/locale.mjs +16 -32
  48. package/dist/services/locale.mjs.map +1 -1
  49. package/dist/services/messaging.d.mts +3 -95
  50. package/dist/services/messaging.d.ts +3 -95
  51. package/dist/services/messaging.js +95 -187
  52. package/dist/services/messaging.js.map +1 -1
  53. package/dist/services/messaging.mjs +95 -187
  54. package/dist/services/messaging.mjs.map +1 -1
  55. package/dist/services/storage.d.mts +0 -26
  56. package/dist/services/storage.d.ts +0 -26
  57. package/dist/services/storage.js +26 -52
  58. package/dist/services/storage.js.map +1 -1
  59. package/dist/services/storage.mjs +26 -52
  60. package/dist/services/storage.mjs.map +1 -1
  61. package/dist/services/teams.d.mts +0 -26
  62. package/dist/services/teams.d.ts +0 -26
  63. package/dist/services/teams.js +26 -52
  64. package/dist/services/teams.js.map +1 -1
  65. package/dist/services/teams.mjs +26 -52
  66. package/dist/services/teams.mjs.map +1 -1
  67. package/dist/services/users.d.mts +0 -84
  68. package/dist/services/users.d.ts +0 -84
  69. package/dist/services/users.js +84 -168
  70. package/dist/services/users.js.map +1 -1
  71. package/dist/services/users.mjs +84 -168
  72. package/dist/services/users.mjs.map +1 -1
  73. package/package.json +1 -1
@@ -6,8 +6,6 @@ var Functions = class {
6
6
  this.client = client;
7
7
  }
8
8
  /**
9
- * List functions
10
- *
11
9
  * Get a list of all the project's functions. You can use the query params to filter your results.
12
10
  *
13
11
  * @param {string[]} queries
@@ -15,7 +13,7 @@ var Functions = class {
15
13
  * @throws {AppwriteException}
16
14
  * @returns {Promise<Models.FunctionList>}
17
15
  */
18
- async list(queries, search) {
16
+ list(queries, search) {
19
17
  const apiPath = "/functions";
20
18
  const payload = {};
21
19
  if (typeof queries !== "undefined") {
@@ -28,7 +26,7 @@ var Functions = class {
28
26
  const apiHeaders = {
29
27
  "content-type": "application/json"
30
28
  };
31
- return await this.client.call(
29
+ return this.client.call(
32
30
  "get",
33
31
  uri,
34
32
  apiHeaders,
@@ -36,8 +34,6 @@ var Functions = class {
36
34
  );
37
35
  }
38
36
  /**
39
- * Create function
40
- *
41
37
  * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
42
38
  *
43
39
  * @param {string} functionId
@@ -65,7 +61,7 @@ var Functions = class {
65
61
  * @throws {AppwriteException}
66
62
  * @returns {Promise<Models.Function>}
67
63
  */
68
- async create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, templateRepository, templateOwner, templateRootDirectory, templateVersion, specification) {
64
+ create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, templateRepository, templateOwner, templateRootDirectory, templateVersion, specification) {
69
65
  if (typeof functionId === "undefined") {
70
66
  throw new AppwriteException('Missing required parameter: "functionId"');
71
67
  }
@@ -147,7 +143,7 @@ var Functions = class {
147
143
  const apiHeaders = {
148
144
  "content-type": "application/json"
149
145
  };
150
- return await this.client.call(
146
+ return this.client.call(
151
147
  "post",
152
148
  uri,
153
149
  apiHeaders,
@@ -155,21 +151,19 @@ var Functions = class {
155
151
  );
156
152
  }
157
153
  /**
158
- * List runtimes
159
- *
160
154
  * Get a list of all runtimes that are currently active on your instance.
161
155
  *
162
156
  * @throws {AppwriteException}
163
157
  * @returns {Promise<Models.RuntimeList>}
164
158
  */
165
- async listRuntimes() {
159
+ listRuntimes() {
166
160
  const apiPath = "/functions/runtimes";
167
161
  const payload = {};
168
162
  const uri = new URL(this.client.config.endpoint + apiPath);
169
163
  const apiHeaders = {
170
164
  "content-type": "application/json"
171
165
  };
172
- return await this.client.call(
166
+ return this.client.call(
173
167
  "get",
174
168
  uri,
175
169
  apiHeaders,
@@ -177,22 +171,20 @@ var Functions = class {
177
171
  );
178
172
  }
179
173
  /**
180
- * List available function runtime specifications
181
- *
182
174
  * List allowed function specifications for this instance.
183
175
 
184
176
  *
185
177
  * @throws {AppwriteException}
186
178
  * @returns {Promise<Models.SpecificationList>}
187
179
  */
188
- async listSpecifications() {
180
+ listSpecifications() {
189
181
  const apiPath = "/functions/specifications";
190
182
  const payload = {};
191
183
  const uri = new URL(this.client.config.endpoint + apiPath);
192
184
  const apiHeaders = {
193
185
  "content-type": "application/json"
194
186
  };
195
- return await this.client.call(
187
+ return this.client.call(
196
188
  "get",
197
189
  uri,
198
190
  apiHeaders,
@@ -200,15 +192,13 @@ var Functions = class {
200
192
  );
201
193
  }
202
194
  /**
203
- * Get function
204
- *
205
195
  * Get a function by its unique ID.
206
196
  *
207
197
  * @param {string} functionId
208
198
  * @throws {AppwriteException}
209
199
  * @returns {Promise<Models.Function>}
210
200
  */
211
- async get(functionId) {
201
+ get(functionId) {
212
202
  if (typeof functionId === "undefined") {
213
203
  throw new AppwriteException('Missing required parameter: "functionId"');
214
204
  }
@@ -218,7 +208,7 @@ var Functions = class {
218
208
  const apiHeaders = {
219
209
  "content-type": "application/json"
220
210
  };
221
- return await this.client.call(
211
+ return this.client.call(
222
212
  "get",
223
213
  uri,
224
214
  apiHeaders,
@@ -226,8 +216,6 @@ var Functions = class {
226
216
  );
227
217
  }
228
218
  /**
229
- * Update function
230
- *
231
219
  * Update function by its unique ID.
232
220
  *
233
221
  * @param {string} functionId
@@ -251,7 +239,7 @@ var Functions = class {
251
239
  * @throws {AppwriteException}
252
240
  * @returns {Promise<Models.Function>}
253
241
  */
254
- async update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification) {
242
+ update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification) {
255
243
  if (typeof functionId === "undefined") {
256
244
  throw new AppwriteException('Missing required parameter: "functionId"');
257
245
  }
@@ -315,7 +303,7 @@ var Functions = class {
315
303
  const apiHeaders = {
316
304
  "content-type": "application/json"
317
305
  };
318
- return await this.client.call(
306
+ return this.client.call(
319
307
  "put",
320
308
  uri,
321
309
  apiHeaders,
@@ -323,15 +311,13 @@ var Functions = class {
323
311
  );
324
312
  }
325
313
  /**
326
- * Delete function
327
- *
328
314
  * Delete a function by its unique ID.
329
315
  *
330
316
  * @param {string} functionId
331
317
  * @throws {AppwriteException}
332
318
  * @returns {Promise<{}>}
333
319
  */
334
- async delete(functionId) {
320
+ delete(functionId) {
335
321
  if (typeof functionId === "undefined") {
336
322
  throw new AppwriteException('Missing required parameter: "functionId"');
337
323
  }
@@ -341,7 +327,7 @@ var Functions = class {
341
327
  const apiHeaders = {
342
328
  "content-type": "application/json"
343
329
  };
344
- return await this.client.call(
330
+ return this.client.call(
345
331
  "delete",
346
332
  uri,
347
333
  apiHeaders,
@@ -349,8 +335,6 @@ var Functions = class {
349
335
  );
350
336
  }
351
337
  /**
352
- * List deployments
353
- *
354
338
  * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.
355
339
  *
356
340
  * @param {string} functionId
@@ -359,7 +343,7 @@ var Functions = class {
359
343
  * @throws {AppwriteException}
360
344
  * @returns {Promise<Models.DeploymentList>}
361
345
  */
362
- async listDeployments(functionId, queries, search) {
346
+ listDeployments(functionId, queries, search) {
363
347
  if (typeof functionId === "undefined") {
364
348
  throw new AppwriteException('Missing required parameter: "functionId"');
365
349
  }
@@ -375,7 +359,7 @@ var Functions = class {
375
359
  const apiHeaders = {
376
360
  "content-type": "application/json"
377
361
  };
378
- return await this.client.call(
362
+ return this.client.call(
379
363
  "get",
380
364
  uri,
381
365
  apiHeaders,
@@ -383,8 +367,6 @@ var Functions = class {
383
367
  );
384
368
  }
385
369
  /**
386
- * Create deployment
387
- *
388
370
  * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
389
371
 
390
372
  This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
@@ -399,7 +381,7 @@ var Functions = class {
399
381
  * @throws {AppwriteException}
400
382
  * @returns {Promise<Models.Deployment>}
401
383
  */
402
- async createDeployment(functionId, code, activate, entrypoint, commands, onProgress = (progress) => {
384
+ createDeployment(functionId, code, activate, entrypoint, commands, onProgress = (progress) => {
403
385
  }) {
404
386
  if (typeof functionId === "undefined") {
405
387
  throw new AppwriteException('Missing required parameter: "functionId"');
@@ -428,7 +410,7 @@ var Functions = class {
428
410
  const apiHeaders = {
429
411
  "content-type": "multipart/form-data"
430
412
  };
431
- return await this.client.chunkedUpload(
413
+ return this.client.chunkedUpload(
432
414
  "post",
433
415
  uri,
434
416
  apiHeaders,
@@ -437,8 +419,6 @@ var Functions = class {
437
419
  );
438
420
  }
439
421
  /**
440
- * Get deployment
441
- *
442
422
  * Get a code deployment by its unique ID.
443
423
  *
444
424
  * @param {string} functionId
@@ -446,7 +426,7 @@ var Functions = class {
446
426
  * @throws {AppwriteException}
447
427
  * @returns {Promise<Models.Deployment>}
448
428
  */
449
- async getDeployment(functionId, deploymentId) {
429
+ getDeployment(functionId, deploymentId) {
450
430
  if (typeof functionId === "undefined") {
451
431
  throw new AppwriteException('Missing required parameter: "functionId"');
452
432
  }
@@ -459,7 +439,7 @@ var Functions = class {
459
439
  const apiHeaders = {
460
440
  "content-type": "application/json"
461
441
  };
462
- return await this.client.call(
442
+ return this.client.call(
463
443
  "get",
464
444
  uri,
465
445
  apiHeaders,
@@ -467,8 +447,6 @@ var Functions = class {
467
447
  );
468
448
  }
469
449
  /**
470
- * Update deployment
471
- *
472
450
  * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
473
451
  *
474
452
  * @param {string} functionId
@@ -476,7 +454,7 @@ var Functions = class {
476
454
  * @throws {AppwriteException}
477
455
  * @returns {Promise<Models.Function>}
478
456
  */
479
- async updateDeployment(functionId, deploymentId) {
457
+ updateDeployment(functionId, deploymentId) {
480
458
  if (typeof functionId === "undefined") {
481
459
  throw new AppwriteException('Missing required parameter: "functionId"');
482
460
  }
@@ -489,7 +467,7 @@ var Functions = class {
489
467
  const apiHeaders = {
490
468
  "content-type": "application/json"
491
469
  };
492
- return await this.client.call(
470
+ return this.client.call(
493
471
  "patch",
494
472
  uri,
495
473
  apiHeaders,
@@ -497,8 +475,6 @@ var Functions = class {
497
475
  );
498
476
  }
499
477
  /**
500
- * Delete deployment
501
- *
502
478
  * Delete a code deployment by its unique ID.
503
479
  *
504
480
  * @param {string} functionId
@@ -506,7 +482,7 @@ var Functions = class {
506
482
  * @throws {AppwriteException}
507
483
  * @returns {Promise<{}>}
508
484
  */
509
- async deleteDeployment(functionId, deploymentId) {
485
+ deleteDeployment(functionId, deploymentId) {
510
486
  if (typeof functionId === "undefined") {
511
487
  throw new AppwriteException('Missing required parameter: "functionId"');
512
488
  }
@@ -519,7 +495,7 @@ var Functions = class {
519
495
  const apiHeaders = {
520
496
  "content-type": "application/json"
521
497
  };
522
- return await this.client.call(
498
+ return this.client.call(
523
499
  "delete",
524
500
  uri,
525
501
  apiHeaders,
@@ -527,8 +503,6 @@ var Functions = class {
527
503
  );
528
504
  }
529
505
  /**
530
- * Rebuild deployment
531
- *
532
506
  * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment&#039;s code will be preserved and used for the new build.
533
507
  *
534
508
  * @param {string} functionId
@@ -537,7 +511,7 @@ var Functions = class {
537
511
  * @throws {AppwriteException}
538
512
  * @returns {Promise<{}>}
539
513
  */
540
- async createBuild(functionId, deploymentId, buildId) {
514
+ createBuild(functionId, deploymentId, buildId) {
541
515
  if (typeof functionId === "undefined") {
542
516
  throw new AppwriteException('Missing required parameter: "functionId"');
543
517
  }
@@ -553,7 +527,7 @@ var Functions = class {
553
527
  const apiHeaders = {
554
528
  "content-type": "application/json"
555
529
  };
556
- return await this.client.call(
530
+ return this.client.call(
557
531
  "post",
558
532
  uri,
559
533
  apiHeaders,
@@ -561,8 +535,6 @@ var Functions = class {
561
535
  );
562
536
  }
563
537
  /**
564
- * Cancel deployment
565
- *
566
538
  * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.
567
539
  *
568
540
  * @param {string} functionId
@@ -570,7 +542,7 @@ var Functions = class {
570
542
  * @throws {AppwriteException}
571
543
  * @returns {Promise<Models.Build>}
572
544
  */
573
- async updateDeploymentBuild(functionId, deploymentId) {
545
+ updateDeploymentBuild(functionId, deploymentId) {
574
546
  if (typeof functionId === "undefined") {
575
547
  throw new AppwriteException('Missing required parameter: "functionId"');
576
548
  }
@@ -583,7 +555,7 @@ var Functions = class {
583
555
  const apiHeaders = {
584
556
  "content-type": "application/json"
585
557
  };
586
- return await this.client.call(
558
+ return this.client.call(
587
559
  "patch",
588
560
  uri,
589
561
  apiHeaders,
@@ -591,8 +563,6 @@ var Functions = class {
591
563
  );
592
564
  }
593
565
  /**
594
- * Download deployment
595
- *
596
566
  * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
597
567
  *
598
568
  * @param {string} functionId
@@ -600,7 +570,7 @@ var Functions = class {
600
570
  * @throws {AppwriteException}
601
571
  * @returns {Promise<ArrayBuffer>}
602
572
  */
603
- async getDeploymentDownload(functionId, deploymentId) {
573
+ getDeploymentDownload(functionId, deploymentId) {
604
574
  if (typeof functionId === "undefined") {
605
575
  throw new AppwriteException('Missing required parameter: "functionId"');
606
576
  }
@@ -613,7 +583,7 @@ var Functions = class {
613
583
  const apiHeaders = {
614
584
  "content-type": "application/json"
615
585
  };
616
- return await this.client.call(
586
+ return this.client.call(
617
587
  "get",
618
588
  uri,
619
589
  apiHeaders,
@@ -622,8 +592,6 @@ var Functions = class {
622
592
  );
623
593
  }
624
594
  /**
625
- * List executions
626
- *
627
595
  * Get a list of all the current user function execution logs. You can use the query params to filter your results.
628
596
  *
629
597
  * @param {string} functionId
@@ -632,7 +600,7 @@ var Functions = class {
632
600
  * @throws {AppwriteException}
633
601
  * @returns {Promise<Models.ExecutionList>}
634
602
  */
635
- async listExecutions(functionId, queries, search) {
603
+ listExecutions(functionId, queries, search) {
636
604
  if (typeof functionId === "undefined") {
637
605
  throw new AppwriteException('Missing required parameter: "functionId"');
638
606
  }
@@ -648,7 +616,7 @@ var Functions = class {
648
616
  const apiHeaders = {
649
617
  "content-type": "application/json"
650
618
  };
651
- return await this.client.call(
619
+ return this.client.call(
652
620
  "get",
653
621
  uri,
654
622
  apiHeaders,
@@ -656,8 +624,6 @@ var Functions = class {
656
624
  );
657
625
  }
658
626
  /**
659
- * Create execution
660
- *
661
627
  * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
662
628
  *
663
629
  * @param {string} functionId
@@ -670,7 +636,7 @@ var Functions = class {
670
636
  * @throws {AppwriteException}
671
637
  * @returns {Promise<Models.Execution>}
672
638
  */
673
- async createExecution(functionId, body, async, xpath, method, headers, scheduledAt) {
639
+ createExecution(functionId, body, async, xpath, method, headers, scheduledAt) {
674
640
  if (typeof functionId === "undefined") {
675
641
  throw new AppwriteException('Missing required parameter: "functionId"');
676
642
  }
@@ -698,7 +664,7 @@ var Functions = class {
698
664
  const apiHeaders = {
699
665
  "content-type": "application/json"
700
666
  };
701
- return await this.client.call(
667
+ return this.client.call(
702
668
  "post",
703
669
  uri,
704
670
  apiHeaders,
@@ -706,8 +672,6 @@ var Functions = class {
706
672
  );
707
673
  }
708
674
  /**
709
- * Get execution
710
- *
711
675
  * Get a function execution log by its unique ID.
712
676
  *
713
677
  * @param {string} functionId
@@ -715,7 +679,7 @@ var Functions = class {
715
679
  * @throws {AppwriteException}
716
680
  * @returns {Promise<Models.Execution>}
717
681
  */
718
- async getExecution(functionId, executionId) {
682
+ getExecution(functionId, executionId) {
719
683
  if (typeof functionId === "undefined") {
720
684
  throw new AppwriteException('Missing required parameter: "functionId"');
721
685
  }
@@ -728,7 +692,7 @@ var Functions = class {
728
692
  const apiHeaders = {
729
693
  "content-type": "application/json"
730
694
  };
731
- return await this.client.call(
695
+ return this.client.call(
732
696
  "get",
733
697
  uri,
734
698
  apiHeaders,
@@ -736,8 +700,6 @@ var Functions = class {
736
700
  );
737
701
  }
738
702
  /**
739
- * Delete execution
740
- *
741
703
  * Delete a function execution by its unique ID.
742
704
 
743
705
  *
@@ -746,7 +708,7 @@ var Functions = class {
746
708
  * @throws {AppwriteException}
747
709
  * @returns {Promise<{}>}
748
710
  */
749
- async deleteExecution(functionId, executionId) {
711
+ deleteExecution(functionId, executionId) {
750
712
  if (typeof functionId === "undefined") {
751
713
  throw new AppwriteException('Missing required parameter: "functionId"');
752
714
  }
@@ -759,7 +721,7 @@ var Functions = class {
759
721
  const apiHeaders = {
760
722
  "content-type": "application/json"
761
723
  };
762
- return await this.client.call(
724
+ return this.client.call(
763
725
  "delete",
764
726
  uri,
765
727
  apiHeaders,
@@ -767,15 +729,13 @@ var Functions = class {
767
729
  );
768
730
  }
769
731
  /**
770
- * List variables
771
- *
772
732
  * Get a list of all variables of a specific function.
773
733
  *
774
734
  * @param {string} functionId
775
735
  * @throws {AppwriteException}
776
736
  * @returns {Promise<Models.VariableList>}
777
737
  */
778
- async listVariables(functionId) {
738
+ listVariables(functionId) {
779
739
  if (typeof functionId === "undefined") {
780
740
  throw new AppwriteException('Missing required parameter: "functionId"');
781
741
  }
@@ -785,7 +745,7 @@ var Functions = class {
785
745
  const apiHeaders = {
786
746
  "content-type": "application/json"
787
747
  };
788
- return await this.client.call(
748
+ return this.client.call(
789
749
  "get",
790
750
  uri,
791
751
  apiHeaders,
@@ -793,8 +753,6 @@ var Functions = class {
793
753
  );
794
754
  }
795
755
  /**
796
- * Create variable
797
- *
798
756
  * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
799
757
  *
800
758
  * @param {string} functionId
@@ -803,7 +761,7 @@ var Functions = class {
803
761
  * @throws {AppwriteException}
804
762
  * @returns {Promise<Models.Variable>}
805
763
  */
806
- async createVariable(functionId, key, value) {
764
+ createVariable(functionId, key, value) {
807
765
  if (typeof functionId === "undefined") {
808
766
  throw new AppwriteException('Missing required parameter: "functionId"');
809
767
  }
@@ -825,7 +783,7 @@ var Functions = class {
825
783
  const apiHeaders = {
826
784
  "content-type": "application/json"
827
785
  };
828
- return await this.client.call(
786
+ return this.client.call(
829
787
  "post",
830
788
  uri,
831
789
  apiHeaders,
@@ -833,8 +791,6 @@ var Functions = class {
833
791
  );
834
792
  }
835
793
  /**
836
- * Get variable
837
- *
838
794
  * Get a variable by its unique ID.
839
795
  *
840
796
  * @param {string} functionId
@@ -842,7 +798,7 @@ var Functions = class {
842
798
  * @throws {AppwriteException}
843
799
  * @returns {Promise<Models.Variable>}
844
800
  */
845
- async getVariable(functionId, variableId) {
801
+ getVariable(functionId, variableId) {
846
802
  if (typeof functionId === "undefined") {
847
803
  throw new AppwriteException('Missing required parameter: "functionId"');
848
804
  }
@@ -855,7 +811,7 @@ var Functions = class {
855
811
  const apiHeaders = {
856
812
  "content-type": "application/json"
857
813
  };
858
- return await this.client.call(
814
+ return this.client.call(
859
815
  "get",
860
816
  uri,
861
817
  apiHeaders,
@@ -863,8 +819,6 @@ var Functions = class {
863
819
  );
864
820
  }
865
821
  /**
866
- * Update variable
867
- *
868
822
  * Update variable by its unique ID.
869
823
  *
870
824
  * @param {string} functionId
@@ -874,7 +828,7 @@ var Functions = class {
874
828
  * @throws {AppwriteException}
875
829
  * @returns {Promise<Models.Variable>}
876
830
  */
877
- async updateVariable(functionId, variableId, key, value) {
831
+ updateVariable(functionId, variableId, key, value) {
878
832
  if (typeof functionId === "undefined") {
879
833
  throw new AppwriteException('Missing required parameter: "functionId"');
880
834
  }
@@ -896,7 +850,7 @@ var Functions = class {
896
850
  const apiHeaders = {
897
851
  "content-type": "application/json"
898
852
  };
899
- return await this.client.call(
853
+ return this.client.call(
900
854
  "put",
901
855
  uri,
902
856
  apiHeaders,
@@ -904,8 +858,6 @@ var Functions = class {
904
858
  );
905
859
  }
906
860
  /**
907
- * Delete variable
908
- *
909
861
  * Delete a variable by its unique ID.
910
862
  *
911
863
  * @param {string} functionId
@@ -913,7 +865,7 @@ var Functions = class {
913
865
  * @throws {AppwriteException}
914
866
  * @returns {Promise<{}>}
915
867
  */
916
- async deleteVariable(functionId, variableId) {
868
+ deleteVariable(functionId, variableId) {
917
869
  if (typeof functionId === "undefined") {
918
870
  throw new AppwriteException('Missing required parameter: "functionId"');
919
871
  }
@@ -926,7 +878,7 @@ var Functions = class {
926
878
  const apiHeaders = {
927
879
  "content-type": "application/json"
928
880
  };
929
- return await this.client.call(
881
+ return this.client.call(
930
882
  "delete",
931
883
  uri,
932
884
  apiHeaders,