@appwrite.io/console 1.5.0 → 1.5.2

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 (47) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +474 -97
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +474 -97
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +474 -97
  7. package/docs/examples/databases/update-float-attribute.md +2 -2
  8. package/docs/examples/databases/update-integer-attribute.md +2 -2
  9. package/docs/examples/health/{get-queue-usage-count.md → get-queue-stats-resources.md} +1 -1
  10. package/docs/examples/health/{get-queue-usage-dump.md → get-queue-stats-usage-dump.md} +1 -1
  11. package/docs/examples/organizations/create.md +5 -1
  12. package/docs/examples/organizations/update-plan.md +5 -1
  13. package/package.json +1 -1
  14. package/src/client.ts +5 -3
  15. package/src/enums/credit-card.ts +1 -0
  16. package/src/enums/name.ts +3 -2
  17. package/src/enums/runtime.ts +3 -0
  18. package/src/models.ts +134 -1
  19. package/src/services/account.ts +122 -0
  20. package/src/services/assistant.ts +2 -0
  21. package/src/services/avatars.ts +7 -42
  22. package/src/services/backups.ts +24 -0
  23. package/src/services/console.ts +14 -0
  24. package/src/services/databases.ts +101 -16
  25. package/src/services/functions.ts +55 -6
  26. package/src/services/graphql.ts +4 -0
  27. package/src/services/health.ts +59 -34
  28. package/src/services/locale.ts +16 -0
  29. package/src/services/messaging.ts +95 -3
  30. package/src/services/migrations.ts +24 -0
  31. package/src/services/organizations.ts +90 -2
  32. package/src/services/project.ts +12 -0
  33. package/src/services/projects.ts +92 -0
  34. package/src/services/proxy.ts +10 -0
  35. package/src/services/storage.ts +27 -18
  36. package/src/services/teams.ts +28 -0
  37. package/src/services/users.ts +86 -0
  38. package/src/services/vcs.ts +20 -0
  39. package/types/enums/credit-card.d.ts +2 -1
  40. package/types/enums/name.d.ts +3 -2
  41. package/types/enums/runtime.d.ts +3 -0
  42. package/types/models.d.ts +134 -1
  43. package/types/services/databases.d.ts +5 -4
  44. package/types/services/health.d.ts +7 -16
  45. package/types/services/messaging.d.ts +3 -3
  46. package/types/services/organizations.d.ts +10 -2
  47. package/docs/examples/health/get-queue.md +0 -11
@@ -38,6 +38,8 @@ export class Users {
38
38
  'content-type': 'application/json',
39
39
  }
40
40
 
41
+ payload['project'] = this.client.config.project;
42
+
41
43
 
42
44
  return await this.client.call(
43
45
  'get',
@@ -86,6 +88,8 @@ export class Users {
86
88
  'content-type': 'application/json',
87
89
  }
88
90
 
91
+ payload['project'] = this.client.config.project;
92
+
89
93
 
90
94
  return await this.client.call(
91
95
  'post',
@@ -136,6 +140,8 @@ export class Users {
136
140
  'content-type': 'application/json',
137
141
  }
138
142
 
143
+ payload['project'] = this.client.config.project;
144
+
139
145
 
140
146
  return await this.client.call(
141
147
  'post',
@@ -186,6 +192,8 @@ export class Users {
186
192
  'content-type': 'application/json',
187
193
  }
188
194
 
195
+ payload['project'] = this.client.config.project;
196
+
189
197
 
190
198
  return await this.client.call(
191
199
  'post',
@@ -219,6 +227,8 @@ export class Users {
219
227
  'content-type': 'application/json',
220
228
  }
221
229
 
230
+ payload['project'] = this.client.config.project;
231
+
222
232
 
223
233
  return await this.client.call(
224
234
  'get',
@@ -248,6 +258,8 @@ export class Users {
248
258
  'content-type': 'application/json',
249
259
  }
250
260
 
261
+ payload['project'] = this.client.config.project;
262
+
251
263
 
252
264
  return await this.client.call(
253
265
  'delete',
@@ -298,6 +310,8 @@ export class Users {
298
310
  'content-type': 'application/json',
299
311
  }
300
312
 
313
+ payload['project'] = this.client.config.project;
314
+
301
315
 
302
316
  return await this.client.call(
303
317
  'post',
@@ -348,6 +362,8 @@ export class Users {
348
362
  'content-type': 'application/json',
349
363
  }
350
364
 
365
+ payload['project'] = this.client.config.project;
366
+
351
367
 
352
368
  return await this.client.call(
353
369
  'post',
@@ -433,6 +449,8 @@ export class Users {
433
449
  'content-type': 'application/json',
434
450
  }
435
451
 
452
+ payload['project'] = this.client.config.project;
453
+
436
454
 
437
455
  return await this.client.call(
438
456
  'post',
@@ -504,6 +522,8 @@ export class Users {
504
522
  'content-type': 'application/json',
505
523
  }
506
524
 
525
+ payload['project'] = this.client.config.project;
526
+
507
527
 
508
528
  return await this.client.call(
509
529
  'post',
@@ -558,6 +578,8 @@ export class Users {
558
578
  'content-type': 'application/json',
559
579
  }
560
580
 
581
+ payload['project'] = this.client.config.project;
582
+
561
583
 
562
584
  return await this.client.call(
563
585
  'post',
@@ -588,6 +610,8 @@ export class Users {
588
610
  'content-type': 'application/json',
589
611
  }
590
612
 
613
+ payload['project'] = this.client.config.project;
614
+
591
615
 
592
616
  return await this.client.call(
593
617
  'get',
@@ -617,6 +641,8 @@ export class Users {
617
641
  'content-type': 'application/json',
618
642
  }
619
643
 
644
+ payload['project'] = this.client.config.project;
645
+
620
646
 
621
647
  return await this.client.call(
622
648
  'get',
@@ -646,6 +672,8 @@ export class Users {
646
672
  'content-type': 'application/json',
647
673
  }
648
674
 
675
+ payload['project'] = this.client.config.project;
676
+
649
677
 
650
678
  return await this.client.call(
651
679
  'delete',
@@ -682,6 +710,8 @@ export class Users {
682
710
  'content-type': 'application/json',
683
711
  }
684
712
 
713
+ payload['project'] = this.client.config.project;
714
+
685
715
 
686
716
  return await this.client.call(
687
717
  'patch',
@@ -719,6 +749,8 @@ export class Users {
719
749
  'content-type': 'application/json',
720
750
  }
721
751
 
752
+ payload['project'] = this.client.config.project;
753
+
722
754
 
723
755
  return await this.client.call(
724
756
  'post',
@@ -757,6 +789,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
757
789
  'content-type': 'application/json',
758
790
  }
759
791
 
792
+ payload['project'] = this.client.config.project;
793
+
760
794
 
761
795
  return await this.client.call(
762
796
  'put',
@@ -790,6 +824,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
790
824
  'content-type': 'application/json',
791
825
  }
792
826
 
827
+ payload['project'] = this.client.config.project;
828
+
793
829
 
794
830
  return await this.client.call(
795
831
  'get',
@@ -819,6 +855,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
819
855
  'content-type': 'application/json',
820
856
  }
821
857
 
858
+ payload['project'] = this.client.config.project;
859
+
822
860
 
823
861
  return await this.client.call(
824
862
  'get',
@@ -855,6 +893,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
855
893
  'content-type': 'application/json',
856
894
  }
857
895
 
896
+ payload['project'] = this.client.config.project;
897
+
858
898
 
859
899
  return await this.client.call(
860
900
  'patch',
@@ -888,6 +928,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
888
928
  'content-type': 'application/json',
889
929
  }
890
930
 
931
+ payload['project'] = this.client.config.project;
932
+
891
933
 
892
934
  return await this.client.call(
893
935
  'delete',
@@ -917,6 +959,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
917
959
  'content-type': 'application/json',
918
960
  }
919
961
 
962
+ payload['project'] = this.client.config.project;
963
+
920
964
 
921
965
  return await this.client.call(
922
966
  'get',
@@ -946,6 +990,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
946
990
  'content-type': 'application/json',
947
991
  }
948
992
 
993
+ payload['project'] = this.client.config.project;
994
+
949
995
 
950
996
  return await this.client.call(
951
997
  'get',
@@ -975,6 +1021,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
975
1021
  'content-type': 'application/json',
976
1022
  }
977
1023
 
1024
+ payload['project'] = this.client.config.project;
1025
+
978
1026
 
979
1027
  return await this.client.call(
980
1028
  'put',
@@ -1004,6 +1052,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1004
1052
  'content-type': 'application/json',
1005
1053
  }
1006
1054
 
1055
+ payload['project'] = this.client.config.project;
1056
+
1007
1057
 
1008
1058
  return await this.client.call(
1009
1059
  'patch',
@@ -1040,6 +1090,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1040
1090
  'content-type': 'application/json',
1041
1091
  }
1042
1092
 
1093
+ payload['project'] = this.client.config.project;
1094
+
1043
1095
 
1044
1096
  return await this.client.call(
1045
1097
  'patch',
@@ -1076,6 +1128,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1076
1128
  'content-type': 'application/json',
1077
1129
  }
1078
1130
 
1131
+ payload['project'] = this.client.config.project;
1132
+
1079
1133
 
1080
1134
  return await this.client.call(
1081
1135
  'patch',
@@ -1112,6 +1166,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1112
1166
  'content-type': 'application/json',
1113
1167
  }
1114
1168
 
1169
+ payload['project'] = this.client.config.project;
1170
+
1115
1171
 
1116
1172
  return await this.client.call(
1117
1173
  'patch',
@@ -1141,6 +1197,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1141
1197
  'content-type': 'application/json',
1142
1198
  }
1143
1199
 
1200
+ payload['project'] = this.client.config.project;
1201
+
1144
1202
 
1145
1203
  return await this.client.call(
1146
1204
  'get',
@@ -1177,6 +1235,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1177
1235
  'content-type': 'application/json',
1178
1236
  }
1179
1237
 
1238
+ payload['project'] = this.client.config.project;
1239
+
1180
1240
 
1181
1241
  return await this.client.call(
1182
1242
  'patch',
@@ -1206,6 +1266,8 @@ Labels can be used to grant access to resources. While teams are a way for user&
1206
1266
  'content-type': 'application/json',
1207
1267
  }
1208
1268
 
1269
+ payload['project'] = this.client.config.project;
1270
+
1209
1271
 
1210
1272
  return await this.client.call(
1211
1273
  'get',
@@ -1237,6 +1299,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1237
1299
  'content-type': 'application/json',
1238
1300
  }
1239
1301
 
1302
+ payload['project'] = this.client.config.project;
1303
+
1240
1304
 
1241
1305
  return await this.client.call(
1242
1306
  'post',
@@ -1266,6 +1330,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1266
1330
  'content-type': 'application/json',
1267
1331
  }
1268
1332
 
1333
+ payload['project'] = this.client.config.project;
1334
+
1269
1335
 
1270
1336
  return await this.client.call(
1271
1337
  'delete',
@@ -1299,6 +1365,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1299
1365
  'content-type': 'application/json',
1300
1366
  }
1301
1367
 
1368
+ payload['project'] = this.client.config.project;
1369
+
1302
1370
 
1303
1371
  return await this.client.call(
1304
1372
  'delete',
@@ -1335,6 +1403,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1335
1403
  'content-type': 'application/json',
1336
1404
  }
1337
1405
 
1406
+ payload['project'] = this.client.config.project;
1407
+
1338
1408
 
1339
1409
  return await this.client.call(
1340
1410
  'patch',
@@ -1368,6 +1438,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1368
1438
  'content-type': 'application/json',
1369
1439
  }
1370
1440
 
1441
+ payload['project'] = this.client.config.project;
1442
+
1371
1443
 
1372
1444
  return await this.client.call(
1373
1445
  'get',
@@ -1426,6 +1498,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1426
1498
  'content-type': 'application/json',
1427
1499
  }
1428
1500
 
1501
+ payload['project'] = this.client.config.project;
1502
+
1429
1503
 
1430
1504
  return await this.client.call(
1431
1505
  'post',
@@ -1459,6 +1533,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1459
1533
  'content-type': 'application/json',
1460
1534
  }
1461
1535
 
1536
+ payload['project'] = this.client.config.project;
1537
+
1462
1538
 
1463
1539
  return await this.client.call(
1464
1540
  'get',
@@ -1504,6 +1580,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1504
1580
  'content-type': 'application/json',
1505
1581
  }
1506
1582
 
1583
+ payload['project'] = this.client.config.project;
1584
+
1507
1585
 
1508
1586
  return await this.client.call(
1509
1587
  'patch',
@@ -1537,6 +1615,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1537
1615
  'content-type': 'application/json',
1538
1616
  }
1539
1617
 
1618
+ payload['project'] = this.client.config.project;
1619
+
1540
1620
 
1541
1621
  return await this.client.call(
1542
1622
  'delete',
@@ -1575,6 +1655,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1575
1655
  'content-type': 'application/json',
1576
1656
  }
1577
1657
 
1658
+ payload['project'] = this.client.config.project;
1659
+
1578
1660
 
1579
1661
  return await this.client.call(
1580
1662
  'post',
@@ -1611,6 +1693,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1611
1693
  'content-type': 'application/json',
1612
1694
  }
1613
1695
 
1696
+ payload['project'] = this.client.config.project;
1697
+
1614
1698
 
1615
1699
  return await this.client.call(
1616
1700
  'patch',
@@ -1647,6 +1731,8 @@ If you want to generate a token for a custom authentication flow, use the [POST
1647
1731
  'content-type': 'application/json',
1648
1732
  }
1649
1733
 
1734
+ payload['project'] = this.client.config.project;
1735
+
1650
1736
 
1651
1737
  return await this.client.call(
1652
1738
  'patch',
@@ -34,6 +34,8 @@ export class Vcs {
34
34
  'content-type': 'application/json',
35
35
  }
36
36
 
37
+ payload['project'] = this.client.config.project;
38
+
37
39
 
38
40
  return await this.client.call(
39
41
  'get',
@@ -77,6 +79,8 @@ export class Vcs {
77
79
  'content-type': 'application/json',
78
80
  }
79
81
 
82
+ payload['project'] = this.client.config.project;
83
+
80
84
 
81
85
  return await this.client.call(
82
86
  'post',
@@ -110,6 +114,8 @@ export class Vcs {
110
114
  'content-type': 'application/json',
111
115
  }
112
116
 
117
+ payload['project'] = this.client.config.project;
118
+
113
119
 
114
120
  return await this.client.call(
115
121
  'get',
@@ -144,6 +150,8 @@ export class Vcs {
144
150
  'content-type': 'application/json',
145
151
  }
146
152
 
153
+ payload['project'] = this.client.config.project;
154
+
147
155
 
148
156
  return await this.client.call(
149
157
  'get',
@@ -182,6 +190,8 @@ export class Vcs {
182
190
  'content-type': 'application/json',
183
191
  }
184
192
 
193
+ payload['project'] = this.client.config.project;
194
+
185
195
 
186
196
  return await this.client.call(
187
197
  'get',
@@ -219,6 +229,8 @@ export class Vcs {
219
229
  'content-type': 'application/json',
220
230
  }
221
231
 
232
+ payload['project'] = this.client.config.project;
233
+
222
234
 
223
235
  return await this.client.call(
224
236
  'post',
@@ -259,6 +271,8 @@ export class Vcs {
259
271
  'content-type': 'application/json',
260
272
  }
261
273
 
274
+ payload['project'] = this.client.config.project;
275
+
262
276
 
263
277
  return await this.client.call(
264
278
  'patch',
@@ -293,6 +307,8 @@ export class Vcs {
293
307
  'content-type': 'application/json',
294
308
  }
295
309
 
310
+ payload['project'] = this.client.config.project;
311
+
296
312
 
297
313
  return await this.client.call(
298
314
  'get',
@@ -322,6 +338,8 @@ export class Vcs {
322
338
  'content-type': 'application/json',
323
339
  }
324
340
 
341
+ payload['project'] = this.client.config.project;
342
+
325
343
 
326
344
  return await this.client.call(
327
345
  'get',
@@ -351,6 +369,8 @@ export class Vcs {
351
369
  'content-type': 'application/json',
352
370
  }
353
371
 
372
+ payload['project'] = this.client.config.project;
373
+
354
374
 
355
375
  return await this.client.call(
356
376
  'delete',
@@ -14,5 +14,6 @@ export declare enum CreditCard {
14
14
  UnionChinaPay = "union-china-pay",
15
15
  Visa = "visa",
16
16
  MIR = "mir",
17
- Maestro = "maestro"
17
+ Maestro = "maestro",
18
+ Rupay = "rupay"
18
19
  }
@@ -4,8 +4,9 @@ export declare enum Name {
4
4
  V1audits = "v1-audits",
5
5
  V1mails = "v1-mails",
6
6
  V1functions = "v1-functions",
7
- V1usage = "v1-usage",
8
- V1usagedump = "v1-usage-dump",
7
+ V1statsresources = "v1-stats-resources",
8
+ V1statsusage = "v1-stats-usage",
9
+ V1statsusagedump = "v1-stats-usage-dump",
9
10
  V1webhooks = "v1-webhooks",
10
11
  V1certificates = "v1-certificates",
11
12
  V1builds = "v1-builds",
@@ -20,6 +20,9 @@ export declare enum Runtime {
20
20
  Python311 = "python-3.11",
21
21
  Python312 = "python-3.12",
22
22
  Pythonml311 = "python-ml-3.11",
23
+ Deno121 = "deno-1.21",
24
+ Deno124 = "deno-1.24",
25
+ Deno135 = "deno-1.35",
23
26
  Deno140 = "deno-1.40",
24
27
  Deno146 = "deno-1.46",
25
28
  Deno20 = "deno-2.0",