@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.
- package/README.md +3 -3
- package/dist/cjs/sdk.js +4844 -3627
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +4843 -3628
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +4844 -3627
- package/docs/examples/{functions/list-specifications.md → account/create-payment-method.md} +3 -3
- package/docs/examples/account/delete-mfa-authenticator.md +2 -1
- package/docs/examples/account/delete-payment-method.md +13 -0
- package/docs/examples/account/get-billing-address.md +13 -0
- package/docs/examples/account/get-payment-method.md +13 -0
- package/docs/examples/{functions/get-template.md → account/list-billing-addresses.md} +4 -4
- package/docs/examples/account/list-credits.md +14 -0
- package/docs/examples/account/list-invoices.md +13 -0
- package/docs/examples/account/list-payment-methods.md +13 -0
- package/docs/examples/account/update-payment-method-mandate-options.md +13 -0
- package/docs/examples/account/update-payment-method-provider.md +15 -0
- package/docs/examples/account/update-payment-method.md +15 -0
- package/docs/examples/backups/create-archive.md +14 -0
- package/docs/examples/backups/create-policy.md +19 -0
- package/docs/examples/backups/create-restoration.md +16 -0
- package/docs/examples/backups/delete-archive.md +13 -0
- package/docs/examples/backups/delete-policy.md +13 -0
- package/docs/examples/backups/get-archive.md +13 -0
- package/docs/examples/backups/get-policy.md +13 -0
- package/docs/examples/backups/get-restoration.md +13 -0
- package/docs/examples/backups/list-archives.md +13 -0
- package/docs/examples/backups/list-policies.md +13 -0
- package/docs/examples/backups/list-restorations.md +13 -0
- package/docs/examples/backups/update-policy.md +17 -0
- package/docs/examples/console/create-source.md +17 -0
- package/docs/examples/console/get-copon.md +13 -0
- package/docs/examples/console/plans.md +11 -0
- package/docs/examples/console/regions.md +11 -0
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-execution.md +1 -2
- package/docs/examples/functions/create.md +1 -3
- package/docs/examples/functions/{get-deployment-download.md → download-deployment.md} +1 -1
- package/docs/examples/functions/update.md +1 -3
- package/docs/examples/organizations/add-credit.md +14 -0
- package/docs/examples/organizations/create-invoice-payment.md +15 -0
- package/docs/examples/organizations/create.md +17 -0
- package/docs/examples/organizations/delete-backup-payment-method.md +13 -0
- package/docs/examples/organizations/delete-billing-address.md +13 -0
- package/docs/examples/organizations/delete-default-payment-method.md +13 -0
- package/docs/examples/organizations/delete.md +13 -0
- package/docs/examples/organizations/get-aggregation.md +14 -0
- package/docs/examples/organizations/get-billing-address.md +14 -0
- package/docs/examples/organizations/get-credit.md +14 -0
- package/docs/examples/organizations/get-invoice-download.md +14 -0
- package/docs/examples/organizations/get-invoice-view.md +14 -0
- package/docs/examples/organizations/get-invoice.md +14 -0
- package/docs/examples/organizations/get-payment-method.md +14 -0
- package/docs/examples/organizations/get-plan.md +13 -0
- package/docs/examples/organizations/get-usage.md +15 -0
- package/docs/examples/organizations/list-aggregations.md +14 -0
- package/docs/examples/organizations/list-invoices.md +14 -0
- package/docs/examples/organizations/list.md +14 -0
- package/docs/examples/organizations/set-backup-payment-method.md +14 -0
- package/docs/examples/organizations/set-billing-address.md +14 -0
- package/docs/examples/organizations/set-billing-email.md +14 -0
- package/docs/examples/organizations/set-billing-tax-id.md +14 -0
- package/docs/examples/organizations/set-default-payment-method.md +14 -0
- package/docs/examples/organizations/update-budget.md +15 -0
- package/docs/examples/organizations/update-plan.md +16 -0
- package/package.json +1 -1
- package/src/client.ts +5 -20
- package/src/enums/billing-plan.ts +5 -0
- package/src/enums/email-template-type.ts +0 -2
- package/src/enums/platform-type.ts +0 -2
- package/src/enums/runtime.ts +0 -1
- package/src/index.ts +4 -1
- package/src/models.ts +956 -282
- package/src/services/account.ts +412 -20
- package/src/services/assistant.ts +2 -0
- package/src/services/avatars.ts +36 -0
- package/src/services/backups.ts +425 -0
- package/src/services/console.ts +122 -0
- package/src/services/databases.ts +49 -0
- package/src/services/functions.ts +41 -189
- package/src/services/graphql.ts +3 -0
- package/src/services/health.ts +24 -0
- package/src/services/locale.ts +9 -0
- package/src/services/messaging.ts +47 -0
- package/src/services/migrations.ts +17 -0
- package/src/services/organizations.ts +896 -0
- package/src/services/project.ts +7 -0
- package/src/services/projects.ts +42 -105
- package/src/services/proxy.ts +6 -0
- package/src/services/storage.ts +28 -0
- package/src/services/teams.ts +15 -0
- package/src/services/users.ts +43 -36
- package/src/services/vcs.ts +9 -34
- package/types/client.d.ts +0 -1
- package/types/enums/billing-plan.d.ts +5 -0
- package/types/enums/email-template-type.d.ts +1 -3
- package/types/enums/platform-type.d.ts +1 -3
- package/types/enums/runtime.d.ts +1 -2
- package/types/index.d.ts +4 -1
- package/types/models.d.ts +956 -282
- package/types/services/account.d.ts +105 -1
- package/types/services/backups.d.ts +128 -0
- package/types/services/console.d.ts +38 -0
- package/types/services/functions.d.ts +8 -67
- package/types/services/organizations.d.ts +273 -0
- package/types/services/projects.d.ts +1 -32
- package/types/services/users.d.ts +0 -12
- package/types/services/vcs.d.ts +0 -11
- package/docs/examples/functions/delete-execution.md +0 -14
- package/docs/examples/functions/list-templates.md +0 -16
- package/docs/examples/functions/update-deployment-build.md +0 -14
- package/docs/examples/projects/create-j-w-t.md +0 -15
- package/docs/examples/projects/update-mock-numbers.md +0 -14
- package/docs/examples/projects/update-session-alerts.md +0 -14
- package/docs/examples/users/create-j-w-t.md +0 -15
- 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 { DatabaseUsageRange } from '../enums/database-usage-range';
|
|
@@ -37,6 +38,7 @@ export class Databases {
|
|
|
37
38
|
'content-type': 'application/json',
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
|
|
40
42
|
return await this.client.call(
|
|
41
43
|
'get',
|
|
42
44
|
uri,
|
|
@@ -80,6 +82,7 @@ export class Databases {
|
|
|
80
82
|
'content-type': 'application/json',
|
|
81
83
|
}
|
|
82
84
|
|
|
85
|
+
|
|
83
86
|
return await this.client.call(
|
|
84
87
|
'post',
|
|
85
88
|
uri,
|
|
@@ -107,6 +110,7 @@ export class Databases {
|
|
|
107
110
|
'content-type': 'application/json',
|
|
108
111
|
}
|
|
109
112
|
|
|
113
|
+
|
|
110
114
|
return await this.client.call(
|
|
111
115
|
'get',
|
|
112
116
|
uri,
|
|
@@ -135,6 +139,7 @@ export class Databases {
|
|
|
135
139
|
'content-type': 'application/json',
|
|
136
140
|
}
|
|
137
141
|
|
|
142
|
+
|
|
138
143
|
return await this.client.call(
|
|
139
144
|
'get',
|
|
140
145
|
uri,
|
|
@@ -174,6 +179,7 @@ export class Databases {
|
|
|
174
179
|
'content-type': 'application/json',
|
|
175
180
|
}
|
|
176
181
|
|
|
182
|
+
|
|
177
183
|
return await this.client.call(
|
|
178
184
|
'put',
|
|
179
185
|
uri,
|
|
@@ -202,6 +208,7 @@ export class Databases {
|
|
|
202
208
|
'content-type': 'application/json',
|
|
203
209
|
}
|
|
204
210
|
|
|
211
|
+
|
|
205
212
|
return await this.client.call(
|
|
206
213
|
'delete',
|
|
207
214
|
uri,
|
|
@@ -238,6 +245,7 @@ export class Databases {
|
|
|
238
245
|
'content-type': 'application/json',
|
|
239
246
|
}
|
|
240
247
|
|
|
248
|
+
|
|
241
249
|
return await this.client.call(
|
|
242
250
|
'get',
|
|
243
251
|
uri,
|
|
@@ -292,6 +300,7 @@ export class Databases {
|
|
|
292
300
|
'content-type': 'application/json',
|
|
293
301
|
}
|
|
294
302
|
|
|
303
|
+
|
|
295
304
|
return await this.client.call(
|
|
296
305
|
'post',
|
|
297
306
|
uri,
|
|
@@ -324,6 +333,7 @@ export class Databases {
|
|
|
324
333
|
'content-type': 'application/json',
|
|
325
334
|
}
|
|
326
335
|
|
|
336
|
+
|
|
327
337
|
return await this.client.call(
|
|
328
338
|
'get',
|
|
329
339
|
uri,
|
|
@@ -375,6 +385,7 @@ export class Databases {
|
|
|
375
385
|
'content-type': 'application/json',
|
|
376
386
|
}
|
|
377
387
|
|
|
388
|
+
|
|
378
389
|
return await this.client.call(
|
|
379
390
|
'put',
|
|
380
391
|
uri,
|
|
@@ -407,6 +418,7 @@ export class Databases {
|
|
|
407
418
|
'content-type': 'application/json',
|
|
408
419
|
}
|
|
409
420
|
|
|
421
|
+
|
|
410
422
|
return await this.client.call(
|
|
411
423
|
'delete',
|
|
412
424
|
uri,
|
|
@@ -443,6 +455,7 @@ export class Databases {
|
|
|
443
455
|
'content-type': 'application/json',
|
|
444
456
|
}
|
|
445
457
|
|
|
458
|
+
|
|
446
459
|
return await this.client.call(
|
|
447
460
|
'get',
|
|
448
461
|
uri,
|
|
@@ -498,6 +511,7 @@ export class Databases {
|
|
|
498
511
|
'content-type': 'application/json',
|
|
499
512
|
}
|
|
500
513
|
|
|
514
|
+
|
|
501
515
|
return await this.client.call(
|
|
502
516
|
'post',
|
|
503
517
|
uri,
|
|
@@ -548,6 +562,7 @@ export class Databases {
|
|
|
548
562
|
'content-type': 'application/json',
|
|
549
563
|
}
|
|
550
564
|
|
|
565
|
+
|
|
551
566
|
return await this.client.call(
|
|
552
567
|
'patch',
|
|
553
568
|
uri,
|
|
@@ -602,6 +617,7 @@ export class Databases {
|
|
|
602
617
|
'content-type': 'application/json',
|
|
603
618
|
}
|
|
604
619
|
|
|
620
|
+
|
|
605
621
|
return await this.client.call(
|
|
606
622
|
'post',
|
|
607
623
|
uri,
|
|
@@ -652,6 +668,7 @@ export class Databases {
|
|
|
652
668
|
'content-type': 'application/json',
|
|
653
669
|
}
|
|
654
670
|
|
|
671
|
+
|
|
655
672
|
return await this.client.call(
|
|
656
673
|
'patch',
|
|
657
674
|
uri,
|
|
@@ -707,6 +724,7 @@ export class Databases {
|
|
|
707
724
|
'content-type': 'application/json',
|
|
708
725
|
}
|
|
709
726
|
|
|
727
|
+
|
|
710
728
|
return await this.client.call(
|
|
711
729
|
'post',
|
|
712
730
|
uri,
|
|
@@ -758,6 +776,7 @@ export class Databases {
|
|
|
758
776
|
'content-type': 'application/json',
|
|
759
777
|
}
|
|
760
778
|
|
|
779
|
+
|
|
761
780
|
return await this.client.call(
|
|
762
781
|
'patch',
|
|
763
782
|
uri,
|
|
@@ -820,6 +839,7 @@ export class Databases {
|
|
|
820
839
|
'content-type': 'application/json',
|
|
821
840
|
}
|
|
822
841
|
|
|
842
|
+
|
|
823
843
|
return await this.client.call(
|
|
824
844
|
'post',
|
|
825
845
|
uri,
|
|
@@ -878,6 +898,7 @@ export class Databases {
|
|
|
878
898
|
'content-type': 'application/json',
|
|
879
899
|
}
|
|
880
900
|
|
|
901
|
+
|
|
881
902
|
return await this.client.call(
|
|
882
903
|
'patch',
|
|
883
904
|
uri,
|
|
@@ -941,6 +962,7 @@ export class Databases {
|
|
|
941
962
|
'content-type': 'application/json',
|
|
942
963
|
}
|
|
943
964
|
|
|
965
|
+
|
|
944
966
|
return await this.client.call(
|
|
945
967
|
'post',
|
|
946
968
|
uri,
|
|
@@ -1006,6 +1028,7 @@ export class Databases {
|
|
|
1006
1028
|
'content-type': 'application/json',
|
|
1007
1029
|
}
|
|
1008
1030
|
|
|
1031
|
+
|
|
1009
1032
|
return await this.client.call(
|
|
1010
1033
|
'patch',
|
|
1011
1034
|
uri,
|
|
@@ -1069,6 +1092,7 @@ export class Databases {
|
|
|
1069
1092
|
'content-type': 'application/json',
|
|
1070
1093
|
}
|
|
1071
1094
|
|
|
1095
|
+
|
|
1072
1096
|
return await this.client.call(
|
|
1073
1097
|
'post',
|
|
1074
1098
|
uri,
|
|
@@ -1134,6 +1158,7 @@ export class Databases {
|
|
|
1134
1158
|
'content-type': 'application/json',
|
|
1135
1159
|
}
|
|
1136
1160
|
|
|
1161
|
+
|
|
1137
1162
|
return await this.client.call(
|
|
1138
1163
|
'patch',
|
|
1139
1164
|
uri,
|
|
@@ -1189,6 +1214,7 @@ export class Databases {
|
|
|
1189
1214
|
'content-type': 'application/json',
|
|
1190
1215
|
}
|
|
1191
1216
|
|
|
1217
|
+
|
|
1192
1218
|
return await this.client.call(
|
|
1193
1219
|
'post',
|
|
1194
1220
|
uri,
|
|
@@ -1240,6 +1266,7 @@ export class Databases {
|
|
|
1240
1266
|
'content-type': 'application/json',
|
|
1241
1267
|
}
|
|
1242
1268
|
|
|
1269
|
+
|
|
1243
1270
|
return await this.client.call(
|
|
1244
1271
|
'patch',
|
|
1245
1272
|
uri,
|
|
@@ -1303,6 +1330,7 @@ export class Databases {
|
|
|
1303
1330
|
'content-type': 'application/json',
|
|
1304
1331
|
}
|
|
1305
1332
|
|
|
1333
|
+
|
|
1306
1334
|
return await this.client.call(
|
|
1307
1335
|
'post',
|
|
1308
1336
|
uri,
|
|
@@ -1369,6 +1397,7 @@ export class Databases {
|
|
|
1369
1397
|
'content-type': 'application/json',
|
|
1370
1398
|
}
|
|
1371
1399
|
|
|
1400
|
+
|
|
1372
1401
|
return await this.client.call(
|
|
1373
1402
|
'post',
|
|
1374
1403
|
uri,
|
|
@@ -1420,6 +1449,7 @@ export class Databases {
|
|
|
1420
1449
|
'content-type': 'application/json',
|
|
1421
1450
|
}
|
|
1422
1451
|
|
|
1452
|
+
|
|
1423
1453
|
return await this.client.call(
|
|
1424
1454
|
'patch',
|
|
1425
1455
|
uri,
|
|
@@ -1475,6 +1505,7 @@ export class Databases {
|
|
|
1475
1505
|
'content-type': 'application/json',
|
|
1476
1506
|
}
|
|
1477
1507
|
|
|
1508
|
+
|
|
1478
1509
|
return await this.client.call(
|
|
1479
1510
|
'post',
|
|
1480
1511
|
uri,
|
|
@@ -1526,6 +1557,7 @@ export class Databases {
|
|
|
1526
1557
|
'content-type': 'application/json',
|
|
1527
1558
|
}
|
|
1528
1559
|
|
|
1560
|
+
|
|
1529
1561
|
return await this.client.call(
|
|
1530
1562
|
'patch',
|
|
1531
1563
|
uri,
|
|
@@ -1562,6 +1594,7 @@ export class Databases {
|
|
|
1562
1594
|
'content-type': 'application/json',
|
|
1563
1595
|
}
|
|
1564
1596
|
|
|
1597
|
+
|
|
1565
1598
|
return await this.client.call(
|
|
1566
1599
|
'get',
|
|
1567
1600
|
uri,
|
|
@@ -1598,6 +1631,7 @@ export class Databases {
|
|
|
1598
1631
|
'content-type': 'application/json',
|
|
1599
1632
|
}
|
|
1600
1633
|
|
|
1634
|
+
|
|
1601
1635
|
return await this.client.call(
|
|
1602
1636
|
'delete',
|
|
1603
1637
|
uri,
|
|
@@ -1639,6 +1673,7 @@ export class Databases {
|
|
|
1639
1673
|
'content-type': 'application/json',
|
|
1640
1674
|
}
|
|
1641
1675
|
|
|
1676
|
+
|
|
1642
1677
|
return await this.client.call(
|
|
1643
1678
|
'patch',
|
|
1644
1679
|
uri,
|
|
@@ -1675,6 +1710,7 @@ export class Databases {
|
|
|
1675
1710
|
'content-type': 'application/json',
|
|
1676
1711
|
}
|
|
1677
1712
|
|
|
1713
|
+
|
|
1678
1714
|
return await this.client.call(
|
|
1679
1715
|
'get',
|
|
1680
1716
|
uri,
|
|
@@ -1725,6 +1761,7 @@ export class Databases {
|
|
|
1725
1761
|
'content-type': 'application/json',
|
|
1726
1762
|
}
|
|
1727
1763
|
|
|
1764
|
+
|
|
1728
1765
|
return await this.client.call(
|
|
1729
1766
|
'post',
|
|
1730
1767
|
uri,
|
|
@@ -1765,6 +1802,7 @@ export class Databases {
|
|
|
1765
1802
|
'content-type': 'application/json',
|
|
1766
1803
|
}
|
|
1767
1804
|
|
|
1805
|
+
|
|
1768
1806
|
return await this.client.call(
|
|
1769
1807
|
'get',
|
|
1770
1808
|
uri,
|
|
@@ -1809,6 +1847,7 @@ export class Databases {
|
|
|
1809
1847
|
'content-type': 'application/json',
|
|
1810
1848
|
}
|
|
1811
1849
|
|
|
1850
|
+
|
|
1812
1851
|
return await this.client.call(
|
|
1813
1852
|
'patch',
|
|
1814
1853
|
uri,
|
|
@@ -1845,6 +1884,7 @@ export class Databases {
|
|
|
1845
1884
|
'content-type': 'application/json',
|
|
1846
1885
|
}
|
|
1847
1886
|
|
|
1887
|
+
|
|
1848
1888
|
return await this.client.call(
|
|
1849
1889
|
'delete',
|
|
1850
1890
|
uri,
|
|
@@ -1885,6 +1925,7 @@ export class Databases {
|
|
|
1885
1925
|
'content-type': 'application/json',
|
|
1886
1926
|
}
|
|
1887
1927
|
|
|
1928
|
+
|
|
1888
1929
|
return await this.client.call(
|
|
1889
1930
|
'get',
|
|
1890
1931
|
uri,
|
|
@@ -1921,6 +1962,7 @@ export class Databases {
|
|
|
1921
1962
|
'content-type': 'application/json',
|
|
1922
1963
|
}
|
|
1923
1964
|
|
|
1965
|
+
|
|
1924
1966
|
return await this.client.call(
|
|
1925
1967
|
'get',
|
|
1926
1968
|
uri,
|
|
@@ -1979,6 +2021,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
1979
2021
|
'content-type': 'application/json',
|
|
1980
2022
|
}
|
|
1981
2023
|
|
|
2024
|
+
|
|
1982
2025
|
return await this.client.call(
|
|
1983
2026
|
'post',
|
|
1984
2027
|
uri,
|
|
@@ -2015,6 +2058,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2015
2058
|
'content-type': 'application/json',
|
|
2016
2059
|
}
|
|
2017
2060
|
|
|
2061
|
+
|
|
2018
2062
|
return await this.client.call(
|
|
2019
2063
|
'get',
|
|
2020
2064
|
uri,
|
|
@@ -2051,6 +2095,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2051
2095
|
'content-type': 'application/json',
|
|
2052
2096
|
}
|
|
2053
2097
|
|
|
2098
|
+
|
|
2054
2099
|
return await this.client.call(
|
|
2055
2100
|
'delete',
|
|
2056
2101
|
uri,
|
|
@@ -2087,6 +2132,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2087
2132
|
'content-type': 'application/json',
|
|
2088
2133
|
}
|
|
2089
2134
|
|
|
2135
|
+
|
|
2090
2136
|
return await this.client.call(
|
|
2091
2137
|
'get',
|
|
2092
2138
|
uri,
|
|
@@ -2122,6 +2168,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2122
2168
|
'content-type': 'application/json',
|
|
2123
2169
|
}
|
|
2124
2170
|
|
|
2171
|
+
|
|
2125
2172
|
return await this.client.call(
|
|
2126
2173
|
'get',
|
|
2127
2174
|
uri,
|
|
@@ -2154,6 +2201,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2154
2201
|
'content-type': 'application/json',
|
|
2155
2202
|
}
|
|
2156
2203
|
|
|
2204
|
+
|
|
2157
2205
|
return await this.client.call(
|
|
2158
2206
|
'get',
|
|
2159
2207
|
uri,
|
|
@@ -2185,6 +2233,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2185
2233
|
'content-type': 'application/json',
|
|
2186
2234
|
}
|
|
2187
2235
|
|
|
2236
|
+
|
|
2188
2237
|
return await this.client.call(
|
|
2189
2238
|
'get',
|
|
2190
2239
|
uri,
|