@appwrite.io/console 1.0.0 → 1.1.0-rc.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 (116) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +4844 -3627
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +4843 -3628
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +4844 -3627
  7. package/docs/examples/{functions/list-specifications.md → account/create-payment-method.md} +3 -3
  8. package/docs/examples/account/delete-mfa-authenticator.md +2 -1
  9. package/docs/examples/account/delete-payment-method.md +13 -0
  10. package/docs/examples/account/get-billing-address.md +13 -0
  11. package/docs/examples/account/get-payment-method.md +13 -0
  12. package/docs/examples/{functions/get-template.md → account/list-billing-addresses.md} +4 -4
  13. package/docs/examples/account/list-credits.md +14 -0
  14. package/docs/examples/account/list-invoices.md +13 -0
  15. package/docs/examples/account/list-payment-methods.md +13 -0
  16. package/docs/examples/account/update-payment-method-mandate-options.md +13 -0
  17. package/docs/examples/account/update-payment-method-provider.md +15 -0
  18. package/docs/examples/account/update-payment-method.md +15 -0
  19. package/docs/examples/backups/create-archive.md +14 -0
  20. package/docs/examples/backups/create-policy.md +19 -0
  21. package/docs/examples/backups/create-restoration.md +16 -0
  22. package/docs/examples/backups/delete-archive.md +13 -0
  23. package/docs/examples/backups/delete-policy.md +13 -0
  24. package/docs/examples/backups/get-archive.md +13 -0
  25. package/docs/examples/backups/get-policy.md +13 -0
  26. package/docs/examples/backups/get-restoration.md +13 -0
  27. package/docs/examples/backups/list-archives.md +13 -0
  28. package/docs/examples/backups/list-policies.md +13 -0
  29. package/docs/examples/backups/list-restorations.md +13 -0
  30. package/docs/examples/backups/update-policy.md +17 -0
  31. package/docs/examples/console/create-source.md +17 -0
  32. package/docs/examples/console/get-copon.md +13 -0
  33. package/docs/examples/console/plans.md +11 -0
  34. package/docs/examples/console/regions.md +11 -0
  35. package/docs/examples/functions/create-build.md +1 -1
  36. package/docs/examples/functions/create-execution.md +1 -2
  37. package/docs/examples/functions/create.md +1 -3
  38. package/docs/examples/functions/{get-deployment-download.md → download-deployment.md} +1 -1
  39. package/docs/examples/functions/update.md +1 -3
  40. package/docs/examples/organizations/add-credit.md +14 -0
  41. package/docs/examples/organizations/create-invoice-payment.md +15 -0
  42. package/docs/examples/organizations/create.md +17 -0
  43. package/docs/examples/organizations/delete-backup-payment-method.md +13 -0
  44. package/docs/examples/organizations/delete-billing-address.md +13 -0
  45. package/docs/examples/organizations/delete-default-payment-method.md +13 -0
  46. package/docs/examples/organizations/delete.md +13 -0
  47. package/docs/examples/organizations/get-aggregation.md +14 -0
  48. package/docs/examples/organizations/get-billing-address.md +14 -0
  49. package/docs/examples/organizations/get-credit.md +14 -0
  50. package/docs/examples/organizations/get-invoice-download.md +14 -0
  51. package/docs/examples/organizations/get-invoice-view.md +14 -0
  52. package/docs/examples/organizations/get-invoice.md +14 -0
  53. package/docs/examples/organizations/get-payment-method.md +14 -0
  54. package/docs/examples/organizations/get-plan.md +13 -0
  55. package/docs/examples/organizations/get-usage.md +15 -0
  56. package/docs/examples/organizations/list-aggregations.md +14 -0
  57. package/docs/examples/organizations/list-invoices.md +14 -0
  58. package/docs/examples/organizations/list.md +14 -0
  59. package/docs/examples/organizations/set-backup-payment-method.md +14 -0
  60. package/docs/examples/organizations/set-billing-address.md +14 -0
  61. package/docs/examples/organizations/set-billing-email.md +14 -0
  62. package/docs/examples/organizations/set-billing-tax-id.md +14 -0
  63. package/docs/examples/organizations/set-default-payment-method.md +14 -0
  64. package/docs/examples/organizations/update-budget.md +15 -0
  65. package/docs/examples/organizations/update-plan.md +16 -0
  66. package/package.json +1 -1
  67. package/src/client.ts +5 -20
  68. package/src/enums/billing-plan.ts +5 -0
  69. package/src/enums/email-template-type.ts +0 -2
  70. package/src/enums/platform-type.ts +0 -2
  71. package/src/enums/runtime.ts +0 -1
  72. package/src/index.ts +4 -1
  73. package/src/models.ts +956 -282
  74. package/src/services/account.ts +412 -20
  75. package/src/services/assistant.ts +2 -0
  76. package/src/services/avatars.ts +36 -0
  77. package/src/services/backups.ts +425 -0
  78. package/src/services/console.ts +122 -0
  79. package/src/services/databases.ts +49 -0
  80. package/src/services/functions.ts +41 -189
  81. package/src/services/graphql.ts +3 -0
  82. package/src/services/health.ts +24 -0
  83. package/src/services/locale.ts +9 -0
  84. package/src/services/messaging.ts +47 -0
  85. package/src/services/migrations.ts +17 -0
  86. package/src/services/organizations.ts +896 -0
  87. package/src/services/project.ts +7 -0
  88. package/src/services/projects.ts +42 -105
  89. package/src/services/proxy.ts +6 -0
  90. package/src/services/storage.ts +28 -0
  91. package/src/services/teams.ts +15 -0
  92. package/src/services/users.ts +43 -36
  93. package/src/services/vcs.ts +9 -34
  94. package/types/client.d.ts +0 -1
  95. package/types/enums/billing-plan.d.ts +5 -0
  96. package/types/enums/email-template-type.d.ts +1 -3
  97. package/types/enums/platform-type.d.ts +1 -3
  98. package/types/enums/runtime.d.ts +1 -2
  99. package/types/index.d.ts +4 -1
  100. package/types/models.d.ts +956 -282
  101. package/types/services/account.d.ts +105 -1
  102. package/types/services/backups.d.ts +128 -0
  103. package/types/services/console.d.ts +38 -0
  104. package/types/services/functions.d.ts +8 -67
  105. package/types/services/organizations.d.ts +273 -0
  106. package/types/services/projects.d.ts +1 -32
  107. package/types/services/users.d.ts +0 -12
  108. package/types/services/vcs.d.ts +0 -11
  109. package/docs/examples/functions/delete-execution.md +0 -14
  110. package/docs/examples/functions/list-templates.md +0 -16
  111. package/docs/examples/functions/update-deployment-build.md +0 -14
  112. package/docs/examples/projects/create-j-w-t.md +0 -15
  113. package/docs/examples/projects/update-mock-numbers.md +0 -14
  114. package/docs/examples/projects/update-session-alerts.md +0 -14
  115. package/docs/examples/users/create-j-w-t.md +0 -15
  116. package/docs/examples/vcs/get-repository-contents.md +0 -15
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { ProjectUsageRange } from '../enums/project-usage-range';
@@ -43,6 +44,7 @@ export class Project {
43
44
  'content-type': 'application/json',
44
45
  }
45
46
 
47
+
46
48
  return await this.client.call(
47
49
  'get',
48
50
  uri,
@@ -67,6 +69,7 @@ export class Project {
67
69
  'content-type': 'application/json',
68
70
  }
69
71
 
72
+
70
73
  return await this.client.call(
71
74
  'get',
72
75
  uri,
@@ -105,6 +108,7 @@ export class Project {
105
108
  'content-type': 'application/json',
106
109
  }
107
110
 
111
+
108
112
  return await this.client.call(
109
113
  'post',
110
114
  uri,
@@ -133,6 +137,7 @@ export class Project {
133
137
  'content-type': 'application/json',
134
138
  }
135
139
 
140
+
136
141
  return await this.client.call(
137
142
  'get',
138
143
  uri,
@@ -172,6 +177,7 @@ export class Project {
172
177
  'content-type': 'application/json',
173
178
  }
174
179
 
180
+
175
181
  return await this.client.call(
176
182
  'put',
177
183
  uri,
@@ -200,6 +206,7 @@ export class Project {
200
206
  'content-type': 'application/json',
201
207
  }
202
208
 
209
+
203
210
  return await this.client.call(
204
211
  'delete',
205
212
  uri,
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { Region } from '../enums/region';
@@ -43,6 +44,7 @@ export class Projects {
43
44
  'content-type': 'application/json',
44
45
  }
45
46
 
47
+
46
48
  return await this.client.call(
47
49
  'get',
48
50
  uri,
@@ -127,6 +129,7 @@ export class Projects {
127
129
  'content-type': 'application/json',
128
130
  }
129
131
 
132
+
130
133
  return await this.client.call(
131
134
  'post',
132
135
  uri,
@@ -154,6 +157,7 @@ export class Projects {
154
157
  'content-type': 'application/json',
155
158
  }
156
159
 
160
+
157
161
  return await this.client.call(
158
162
  'get',
159
163
  uri,
@@ -224,6 +228,7 @@ export class Projects {
224
228
  'content-type': 'application/json',
225
229
  }
226
230
 
231
+
227
232
  return await this.client.call(
228
233
  'patch',
229
234
  uri,
@@ -251,6 +256,7 @@ export class Projects {
251
256
  'content-type': 'application/json',
252
257
  }
253
258
 
259
+
254
260
  return await this.client.call(
255
261
  'delete',
256
262
  uri,
@@ -292,6 +298,7 @@ export class Projects {
292
298
  'content-type': 'application/json',
293
299
  }
294
300
 
301
+
295
302
  return await this.client.call(
296
303
  'patch',
297
304
  uri,
@@ -326,6 +333,7 @@ export class Projects {
326
333
  'content-type': 'application/json',
327
334
  }
328
335
 
336
+
329
337
  return await this.client.call(
330
338
  'patch',
331
339
  uri,
@@ -360,6 +368,7 @@ export class Projects {
360
368
  'content-type': 'application/json',
361
369
  }
362
370
 
371
+
363
372
  return await this.client.call(
364
373
  'patch',
365
374
  uri,
@@ -394,6 +403,7 @@ export class Projects {
394
403
  'content-type': 'application/json',
395
404
  }
396
405
 
406
+
397
407
  return await this.client.call(
398
408
  'patch',
399
409
  uri,
@@ -428,39 +438,6 @@ export class Projects {
428
438
  'content-type': 'application/json',
429
439
  }
430
440
 
431
- return await this.client.call(
432
- 'patch',
433
- uri,
434
- apiHeaders,
435
- payload
436
- );
437
- }
438
- /**
439
- * Update the mock numbers for the project
440
- *
441
- *
442
- * @param {string} projectId
443
- * @param {object[]} numbers
444
- * @throws {AppwriteException}
445
- * @returns {Promise<Models.Project>}
446
- */
447
- async updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project> {
448
- if (typeof projectId === 'undefined') {
449
- throw new AppwriteException('Missing required parameter: "projectId"');
450
- }
451
- if (typeof numbers === 'undefined') {
452
- throw new AppwriteException('Missing required parameter: "numbers"');
453
- }
454
- const apiPath = '/projects/{projectId}/auth/mock-numbers'.replace('{projectId}', projectId);
455
- const payload: Payload = {};
456
- if (typeof numbers !== 'undefined') {
457
- payload['numbers'] = numbers;
458
- }
459
- const uri = new URL(this.client.config.endpoint + apiPath);
460
-
461
- const apiHeaders: { [header: string]: string } = {
462
- 'content-type': 'application/json',
463
- }
464
441
 
465
442
  return await this.client.call(
466
443
  'patch',
@@ -496,6 +473,7 @@ export class Projects {
496
473
  'content-type': 'application/json',
497
474
  }
498
475
 
476
+
499
477
  return await this.client.call(
500
478
  'patch',
501
479
  uri,
@@ -530,6 +508,7 @@ export class Projects {
530
508
  'content-type': 'application/json',
531
509
  }
532
510
 
511
+
533
512
  return await this.client.call(
534
513
  'patch',
535
514
  uri,
@@ -564,39 +543,6 @@ export class Projects {
564
543
  'content-type': 'application/json',
565
544
  }
566
545
 
567
- return await this.client.call(
568
- 'patch',
569
- uri,
570
- apiHeaders,
571
- payload
572
- );
573
- }
574
- /**
575
- * Update project sessions emails
576
- *
577
- *
578
- * @param {string} projectId
579
- * @param {boolean} alerts
580
- * @throws {AppwriteException}
581
- * @returns {Promise<Models.Project>}
582
- */
583
- async updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project> {
584
- if (typeof projectId === 'undefined') {
585
- throw new AppwriteException('Missing required parameter: "projectId"');
586
- }
587
- if (typeof alerts === 'undefined') {
588
- throw new AppwriteException('Missing required parameter: "alerts"');
589
- }
590
- const apiPath = '/projects/{projectId}/auth/session-alerts'.replace('{projectId}', projectId);
591
- const payload: Payload = {};
592
- if (typeof alerts !== 'undefined') {
593
- payload['alerts'] = alerts;
594
- }
595
- const uri = new URL(this.client.config.endpoint + apiPath);
596
-
597
- const apiHeaders: { [header: string]: string } = {
598
- 'content-type': 'application/json',
599
- }
600
546
 
601
547
  return await this.client.call(
602
548
  'patch',
@@ -636,46 +582,9 @@ export class Projects {
636
582
  'content-type': 'application/json',
637
583
  }
638
584
 
639
- return await this.client.call(
640
- 'patch',
641
- uri,
642
- apiHeaders,
643
- payload
644
- );
645
- }
646
- /**
647
- * Create JWT
648
- *
649
- *
650
- * @param {string} projectId
651
- * @param {string[]} scopes
652
- * @param {number} duration
653
- * @throws {AppwriteException}
654
- * @returns {Promise<Models.Jwt>}
655
- */
656
- async createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt> {
657
- if (typeof projectId === 'undefined') {
658
- throw new AppwriteException('Missing required parameter: "projectId"');
659
- }
660
- if (typeof scopes === 'undefined') {
661
- throw new AppwriteException('Missing required parameter: "scopes"');
662
- }
663
- const apiPath = '/projects/{projectId}/jwts'.replace('{projectId}', projectId);
664
- const payload: Payload = {};
665
- if (typeof scopes !== 'undefined') {
666
- payload['scopes'] = scopes;
667
- }
668
- if (typeof duration !== 'undefined') {
669
- payload['duration'] = duration;
670
- }
671
- const uri = new URL(this.client.config.endpoint + apiPath);
672
-
673
- const apiHeaders: { [header: string]: string } = {
674
- 'content-type': 'application/json',
675
- }
676
585
 
677
586
  return await this.client.call(
678
- 'post',
587
+ 'patch',
679
588
  uri,
680
589
  apiHeaders,
681
590
  payload
@@ -701,6 +610,7 @@ export class Projects {
701
610
  'content-type': 'application/json',
702
611
  }
703
612
 
613
+
704
614
  return await this.client.call(
705
615
  'get',
706
616
  uri,
@@ -746,6 +656,7 @@ export class Projects {
746
656
  'content-type': 'application/json',
747
657
  }
748
658
 
659
+
749
660
  return await this.client.call(
750
661
  'post',
751
662
  uri,
@@ -777,6 +688,7 @@ export class Projects {
777
688
  'content-type': 'application/json',
778
689
  }
779
690
 
691
+
780
692
  return await this.client.call(
781
693
  'get',
782
694
  uri,
@@ -826,6 +738,7 @@ export class Projects {
826
738
  'content-type': 'application/json',
827
739
  }
828
740
 
741
+
829
742
  return await this.client.call(
830
743
  'put',
831
744
  uri,
@@ -857,6 +770,7 @@ export class Projects {
857
770
  'content-type': 'application/json',
858
771
  }
859
772
 
773
+
860
774
  return await this.client.call(
861
775
  'delete',
862
776
  uri,
@@ -903,6 +817,7 @@ export class Projects {
903
817
  'content-type': 'application/json',
904
818
  }
905
819
 
820
+
906
821
  return await this.client.call(
907
822
  'patch',
908
823
  uri,
@@ -930,6 +845,7 @@ export class Projects {
930
845
  'content-type': 'application/json',
931
846
  }
932
847
 
848
+
933
849
  return await this.client.call(
934
850
  'get',
935
851
  uri,
@@ -983,6 +899,7 @@ export class Projects {
983
899
  'content-type': 'application/json',
984
900
  }
985
901
 
902
+
986
903
  return await this.client.call(
987
904
  'post',
988
905
  uri,
@@ -1014,6 +931,7 @@ export class Projects {
1014
931
  'content-type': 'application/json',
1015
932
  }
1016
933
 
934
+
1017
935
  return await this.client.call(
1018
936
  'get',
1019
937
  uri,
@@ -1064,6 +982,7 @@ export class Projects {
1064
982
  'content-type': 'application/json',
1065
983
  }
1066
984
 
985
+
1067
986
  return await this.client.call(
1068
987
  'put',
1069
988
  uri,
@@ -1095,6 +1014,7 @@ export class Projects {
1095
1014
  'content-type': 'application/json',
1096
1015
  }
1097
1016
 
1017
+
1098
1018
  return await this.client.call(
1099
1019
  'delete',
1100
1020
  uri,
@@ -1136,6 +1056,7 @@ export class Projects {
1136
1056
  'content-type': 'application/json',
1137
1057
  }
1138
1058
 
1059
+
1139
1060
  return await this.client.call(
1140
1061
  'patch',
1141
1062
  uri,
@@ -1170,6 +1091,7 @@ export class Projects {
1170
1091
  'content-type': 'application/json',
1171
1092
  }
1172
1093
 
1094
+
1173
1095
  return await this.client.call(
1174
1096
  'patch',
1175
1097
  uri,
@@ -1236,6 +1158,7 @@ export class Projects {
1236
1158
  'content-type': 'application/json',
1237
1159
  }
1238
1160
 
1161
+
1239
1162
  return await this.client.call(
1240
1163
  'patch',
1241
1164
  uri,
@@ -1311,6 +1234,7 @@ export class Projects {
1311
1234
  'content-type': 'application/json',
1312
1235
  }
1313
1236
 
1237
+
1314
1238
  return await this.client.call(
1315
1239
  'post',
1316
1240
  uri,
@@ -1319,7 +1243,7 @@ export class Projects {
1319
1243
  );
1320
1244
  }
1321
1245
  /**
1322
- * Update project team
1246
+ * Update Project Team
1323
1247
  *
1324
1248
  *
1325
1249
  * @param {string} projectId
@@ -1345,6 +1269,7 @@ export class Projects {
1345
1269
  'content-type': 'application/json',
1346
1270
  }
1347
1271
 
1272
+
1348
1273
  return await this.client.call(
1349
1274
  'patch',
1350
1275
  uri,
@@ -1380,6 +1305,7 @@ export class Projects {
1380
1305
  'content-type': 'application/json',
1381
1306
  }
1382
1307
 
1308
+
1383
1309
  return await this.client.call(
1384
1310
  'get',
1385
1311
  uri,
@@ -1441,6 +1367,7 @@ export class Projects {
1441
1367
  'content-type': 'application/json',
1442
1368
  }
1443
1369
 
1370
+
1444
1371
  return await this.client.call(
1445
1372
  'patch',
1446
1373
  uri,
@@ -1476,6 +1403,7 @@ export class Projects {
1476
1403
  'content-type': 'application/json',
1477
1404
  }
1478
1405
 
1406
+
1479
1407
  return await this.client.call(
1480
1408
  'delete',
1481
1409
  uri,
@@ -1511,6 +1439,7 @@ export class Projects {
1511
1439
  'content-type': 'application/json',
1512
1440
  }
1513
1441
 
1442
+
1514
1443
  return await this.client.call(
1515
1444
  'get',
1516
1445
  uri,
@@ -1553,6 +1482,7 @@ export class Projects {
1553
1482
  'content-type': 'application/json',
1554
1483
  }
1555
1484
 
1485
+
1556
1486
  return await this.client.call(
1557
1487
  'patch',
1558
1488
  uri,
@@ -1588,6 +1518,7 @@ export class Projects {
1588
1518
  'content-type': 'application/json',
1589
1519
  }
1590
1520
 
1521
+
1591
1522
  return await this.client.call(
1592
1523
  'delete',
1593
1524
  uri,
@@ -1615,6 +1546,7 @@ export class Projects {
1615
1546
  'content-type': 'application/json',
1616
1547
  }
1617
1548
 
1549
+
1618
1550
  return await this.client.call(
1619
1551
  'get',
1620
1552
  uri,
@@ -1682,6 +1614,7 @@ export class Projects {
1682
1614
  'content-type': 'application/json',
1683
1615
  }
1684
1616
 
1617
+
1685
1618
  return await this.client.call(
1686
1619
  'post',
1687
1620
  uri,
@@ -1713,6 +1646,7 @@ export class Projects {
1713
1646
  'content-type': 'application/json',
1714
1647
  }
1715
1648
 
1649
+
1716
1650
  return await this.client.call(
1717
1651
  'get',
1718
1652
  uri,
@@ -1784,6 +1718,7 @@ export class Projects {
1784
1718
  'content-type': 'application/json',
1785
1719
  }
1786
1720
 
1721
+
1787
1722
  return await this.client.call(
1788
1723
  'put',
1789
1724
  uri,
@@ -1815,6 +1750,7 @@ export class Projects {
1815
1750
  'content-type': 'application/json',
1816
1751
  }
1817
1752
 
1753
+
1818
1754
  return await this.client.call(
1819
1755
  'delete',
1820
1756
  uri,
@@ -1846,6 +1782,7 @@ export class Projects {
1846
1782
  'content-type': 'application/json',
1847
1783
  }
1848
1784
 
1785
+
1849
1786
  return await this.client.call(
1850
1787
  'patch',
1851
1788
  uri,
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { ResourceType } from '../enums/resource-type';
@@ -34,6 +35,7 @@ export class Proxy {
34
35
  'content-type': 'application/json',
35
36
  }
36
37
 
38
+
37
39
  return await this.client.call(
38
40
  'get',
39
41
  uri,
@@ -76,6 +78,7 @@ export class Proxy {
76
78
  'content-type': 'application/json',
77
79
  }
78
80
 
81
+
79
82
  return await this.client.call(
80
83
  'post',
81
84
  uri,
@@ -104,6 +107,7 @@ export class Proxy {
104
107
  'content-type': 'application/json',
105
108
  }
106
109
 
110
+
107
111
  return await this.client.call(
108
112
  'get',
109
113
  uri,
@@ -132,6 +136,7 @@ export class Proxy {
132
136
  'content-type': 'application/json',
133
137
  }
134
138
 
139
+
135
140
  return await this.client.call(
136
141
  'delete',
137
142
  uri,
@@ -159,6 +164,7 @@ export class Proxy {
159
164
  'content-type': 'application/json',
160
165
  }
161
166
 
167
+
162
168
  return await this.client.call(
163
169
  'patch',
164
170
  uri,
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { Compression } from '../enums/compression';
@@ -37,6 +38,7 @@ export class Storage {
37
38
  'content-type': 'application/json',
38
39
  }
39
40
 
41
+
40
42
  return await this.client.call(
41
43
  'get',
42
44
  uri,
@@ -107,6 +109,7 @@ export class Storage {
107
109
  'content-type': 'application/json',
108
110
  }
109
111
 
112
+
110
113
  return await this.client.call(
111
114
  'post',
112
115
  uri,
@@ -135,6 +138,7 @@ export class Storage {
135
138
  'content-type': 'application/json',
136
139
  }
137
140
 
141
+
138
142
  return await this.client.call(
139
143
  'get',
140
144
  uri,
@@ -202,6 +206,7 @@ export class Storage {
202
206
  'content-type': 'application/json',
203
207
  }
204
208
 
209
+
205
210
  return await this.client.call(
206
211
  'put',
207
212
  uri,
@@ -230,6 +235,7 @@ export class Storage {
230
235
  'content-type': 'application/json',
231
236
  }
232
237
 
238
+
233
239
  return await this.client.call(
234
240
  'delete',
235
241
  uri,
@@ -266,6 +272,7 @@ export class Storage {
266
272
  'content-type': 'application/json',
267
273
  }
268
274
 
275
+
269
276
  return await this.client.call(
270
277
  'get',
271
278
  uri,
@@ -319,6 +326,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
319
326
  'content-type': 'multipart/form-data',
320
327
  }
321
328
 
329
+
322
330
  return await this.client.chunkedUpload(
323
331
  'post',
324
332
  uri,
@@ -352,6 +360,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
352
360
  'content-type': 'application/json',
353
361
  }
354
362
 
363
+
355
364
  return await this.client.call(
356
365
  'get',
357
366
  uri,
@@ -392,6 +401,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
392
401
  'content-type': 'application/json',
393
402
  }
394
403
 
404
+
395
405
  return await this.client.call(
396
406
  'put',
397
407
  uri,
@@ -424,6 +434,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
424
434
  'content-type': 'application/json',
425
435
  }
426
436
 
437
+
427
438
  return await this.client.call(
428
439
  'delete',
429
440
  uri,
@@ -456,6 +467,11 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
456
467
  'content-type': 'application/json',
457
468
  }
458
469
 
470
+ payload['project'] = this.client.config.project;
471
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
472
+ uri.searchParams.append(key, value);
473
+ }
474
+
459
475
  payload['project'] = this.client.config.project;
460
476
 
461
477
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -533,6 +549,11 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
533
549
  'content-type': 'application/json',
534
550
  }
535
551
 
552
+ payload['project'] = this.client.config.project;
553
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
554
+ uri.searchParams.append(key, value);
555
+ }
556
+
536
557
  payload['project'] = this.client.config.project;
537
558
 
538
559
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -566,6 +587,11 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
566
587
  'content-type': 'application/json',
567
588
  }
568
589
 
590
+ payload['project'] = this.client.config.project;
591
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
592
+ uri.searchParams.append(key, value);
593
+ }
594
+
569
595
  payload['project'] = this.client.config.project;
570
596
 
571
597
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -594,6 +620,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
594
620
  'content-type': 'application/json',
595
621
  }
596
622
 
623
+
597
624
  return await this.client.call(
598
625
  'get',
599
626
  uri,
@@ -625,6 +652,7 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
625
652
  'content-type': 'application/json',
626
653
  }
627
654
 
655
+
628
656
  return await this.client.call(
629
657
  'get',
630
658
  uri,