@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
 
@@ -33,6 +34,7 @@ export class Teams {
33
34
  'content-type': 'application/json',
34
35
  }
35
36
 
37
+
36
38
  return await this.client.call(
37
39
  'get',
38
40
  uri,
@@ -75,6 +77,7 @@ export class Teams {
75
77
  'content-type': 'application/json',
76
78
  }
77
79
 
80
+
78
81
  return await this.client.call(
79
82
  'post',
80
83
  uri,
@@ -103,6 +106,7 @@ export class Teams {
103
106
  'content-type': 'application/json',
104
107
  }
105
108
 
109
+
106
110
  return await this.client.call(
107
111
  'get',
108
112
  uri,
@@ -138,6 +142,7 @@ export class Teams {
138
142
  'content-type': 'application/json',
139
143
  }
140
144
 
145
+
141
146
  return await this.client.call(
142
147
  'put',
143
148
  uri,
@@ -166,6 +171,7 @@ export class Teams {
166
171
  'content-type': 'application/json',
167
172
  }
168
173
 
174
+
169
175
  return await this.client.call(
170
176
  'delete',
171
177
  uri,
@@ -198,6 +204,7 @@ export class Teams {
198
204
  'content-type': 'application/json',
199
205
  }
200
206
 
207
+
201
208
  return await this.client.call(
202
209
  'get',
203
210
  uri,
@@ -234,6 +241,7 @@ export class Teams {
234
241
  'content-type': 'application/json',
235
242
  }
236
243
 
244
+
237
245
  return await this.client.call(
238
246
  'get',
239
247
  uri,
@@ -296,6 +304,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
296
304
  'content-type': 'application/json',
297
305
  }
298
306
 
307
+
299
308
  return await this.client.call(
300
309
  'post',
301
310
  uri,
@@ -328,6 +337,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
328
337
  'content-type': 'application/json',
329
338
  }
330
339
 
340
+
331
341
  return await this.client.call(
332
342
  'get',
333
343
  uri,
@@ -368,6 +378,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
368
378
  'content-type': 'application/json',
369
379
  }
370
380
 
381
+
371
382
  return await this.client.call(
372
383
  'patch',
373
384
  uri,
@@ -400,6 +411,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
400
411
  'content-type': 'application/json',
401
412
  }
402
413
 
414
+
403
415
  return await this.client.call(
404
416
  'delete',
405
417
  uri,
@@ -449,6 +461,7 @@ If the request is successful, a session for the user is automatically created.
449
461
  'content-type': 'application/json',
450
462
  }
451
463
 
464
+
452
465
  return await this.client.call(
453
466
  'patch',
454
467
  uri,
@@ -477,6 +490,7 @@ If the request is successful, a session for the user is automatically created.
477
490
  'content-type': 'application/json',
478
491
  }
479
492
 
493
+
480
494
  return await this.client.call(
481
495
  'get',
482
496
  uri,
@@ -512,6 +526,7 @@ If the request is successful, a session for the user is automatically created.
512
526
  'content-type': 'application/json',
513
527
  }
514
528
 
529
+
515
530
  return await this.client.call(
516
531
  'put',
517
532
  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 { PasswordHash } from '../enums/password-hash';
@@ -37,6 +38,7 @@ export class Users {
37
38
  'content-type': 'application/json',
38
39
  }
39
40
 
41
+
40
42
  return await this.client.call(
41
43
  'get',
42
44
  uri,
@@ -84,6 +86,7 @@ export class Users {
84
86
  'content-type': 'application/json',
85
87
  }
86
88
 
89
+
87
90
  return await this.client.call(
88
91
  'post',
89
92
  uri,
@@ -133,6 +136,7 @@ export class Users {
133
136
  'content-type': 'application/json',
134
137
  }
135
138
 
139
+
136
140
  return await this.client.call(
137
141
  'post',
138
142
  uri,
@@ -182,6 +186,7 @@ export class Users {
182
186
  'content-type': 'application/json',
183
187
  }
184
188
 
189
+
185
190
  return await this.client.call(
186
191
  'post',
187
192
  uri,
@@ -214,6 +219,7 @@ export class Users {
214
219
  'content-type': 'application/json',
215
220
  }
216
221
 
222
+
217
223
  return await this.client.call(
218
224
  'get',
219
225
  uri,
@@ -242,6 +248,7 @@ export class Users {
242
248
  'content-type': 'application/json',
243
249
  }
244
250
 
251
+
245
252
  return await this.client.call(
246
253
  'delete',
247
254
  uri,
@@ -291,6 +298,7 @@ export class Users {
291
298
  'content-type': 'application/json',
292
299
  }
293
300
 
301
+
294
302
  return await this.client.call(
295
303
  'post',
296
304
  uri,
@@ -340,6 +348,7 @@ export class Users {
340
348
  'content-type': 'application/json',
341
349
  }
342
350
 
351
+
343
352
  return await this.client.call(
344
353
  'post',
345
354
  uri,
@@ -424,6 +433,7 @@ export class Users {
424
433
  'content-type': 'application/json',
425
434
  }
426
435
 
436
+
427
437
  return await this.client.call(
428
438
  'post',
429
439
  uri,
@@ -494,6 +504,7 @@ export class Users {
494
504
  'content-type': 'application/json',
495
505
  }
496
506
 
507
+
497
508
  return await this.client.call(
498
509
  'post',
499
510
  uri,
@@ -547,6 +558,7 @@ export class Users {
547
558
  'content-type': 'application/json',
548
559
  }
549
560
 
561
+
550
562
  return await this.client.call(
551
563
  'post',
552
564
  uri,
@@ -574,6 +586,7 @@ export class Users {
574
586
  'content-type': 'application/json',
575
587
  }
576
588
 
589
+
577
590
  return await this.client.call(
578
591
  'get',
579
592
  uri,
@@ -602,6 +615,7 @@ export class Users {
602
615
  'content-type': 'application/json',
603
616
  }
604
617
 
618
+
605
619
  return await this.client.call(
606
620
  'get',
607
621
  uri,
@@ -630,6 +644,7 @@ export class Users {
630
644
  'content-type': 'application/json',
631
645
  }
632
646
 
647
+
633
648
  return await this.client.call(
634
649
  'delete',
635
650
  uri,
@@ -665,44 +680,9 @@ export class Users {
665
680
  'content-type': 'application/json',
666
681
  }
667
682
 
668
- return await this.client.call(
669
- 'patch',
670
- uri,
671
- apiHeaders,
672
- payload
673
- );
674
- }
675
- /**
676
- * Create user JWT
677
- *
678
- * Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
679
- *
680
- * @param {string} userId
681
- * @param {string} sessionId
682
- * @param {number} duration
683
- * @throws {AppwriteException}
684
- * @returns {Promise<Models.Jwt>}
685
- */
686
- async createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt> {
687
- if (typeof userId === 'undefined') {
688
- throw new AppwriteException('Missing required parameter: "userId"');
689
- }
690
- const apiPath = '/users/{userId}/jwts'.replace('{userId}', userId);
691
- const payload: Payload = {};
692
- if (typeof sessionId !== 'undefined') {
693
- payload['sessionId'] = sessionId;
694
- }
695
- if (typeof duration !== 'undefined') {
696
- payload['duration'] = duration;
697
- }
698
- const uri = new URL(this.client.config.endpoint + apiPath);
699
-
700
- const apiHeaders: { [header: string]: string } = {
701
- 'content-type': 'application/json',
702
- }
703
683
 
704
684
  return await this.client.call(
705
- 'post',
685
+ 'patch',
706
686
  uri,
707
687
  apiHeaders,
708
688
  payload
@@ -738,6 +718,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
738
718
  'content-type': 'application/json',
739
719
  }
740
720
 
721
+
741
722
  return await this.client.call(
742
723
  'put',
743
724
  uri,
@@ -770,6 +751,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
770
751
  'content-type': 'application/json',
771
752
  }
772
753
 
754
+
773
755
  return await this.client.call(
774
756
  'get',
775
757
  uri,
@@ -798,6 +780,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
798
780
  'content-type': 'application/json',
799
781
  }
800
782
 
783
+
801
784
  return await this.client.call(
802
785
  'get',
803
786
  uri,
@@ -833,6 +816,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
833
816
  'content-type': 'application/json',
834
817
  }
835
818
 
819
+
836
820
  return await this.client.call(
837
821
  'patch',
838
822
  uri,
@@ -865,6 +849,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
865
849
  'content-type': 'application/json',
866
850
  }
867
851
 
852
+
868
853
  return await this.client.call(
869
854
  'delete',
870
855
  uri,
@@ -893,6 +878,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
893
878
  'content-type': 'application/json',
894
879
  }
895
880
 
881
+
896
882
  return await this.client.call(
897
883
  'get',
898
884
  uri,
@@ -921,6 +907,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
921
907
  'content-type': 'application/json',
922
908
  }
923
909
 
910
+
924
911
  return await this.client.call(
925
912
  'get',
926
913
  uri,
@@ -949,6 +936,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
949
936
  'content-type': 'application/json',
950
937
  }
951
938
 
939
+
952
940
  return await this.client.call(
953
941
  'put',
954
942
  uri,
@@ -977,6 +965,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
977
965
  'content-type': 'application/json',
978
966
  }
979
967
 
968
+
980
969
  return await this.client.call(
981
970
  'patch',
982
971
  uri,
@@ -1012,6 +1001,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1012
1001
  'content-type': 'application/json',
1013
1002
  }
1014
1003
 
1004
+
1015
1005
  return await this.client.call(
1016
1006
  'patch',
1017
1007
  uri,
@@ -1047,6 +1037,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1047
1037
  'content-type': 'application/json',
1048
1038
  }
1049
1039
 
1040
+
1050
1041
  return await this.client.call(
1051
1042
  'patch',
1052
1043
  uri,
@@ -1082,6 +1073,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1082
1073
  'content-type': 'application/json',
1083
1074
  }
1084
1075
 
1076
+
1085
1077
  return await this.client.call(
1086
1078
  'patch',
1087
1079
  uri,
@@ -1110,6 +1102,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1110
1102
  'content-type': 'application/json',
1111
1103
  }
1112
1104
 
1105
+
1113
1106
  return await this.client.call(
1114
1107
  'get',
1115
1108
  uri,
@@ -1145,6 +1138,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1145
1138
  'content-type': 'application/json',
1146
1139
  }
1147
1140
 
1141
+
1148
1142
  return await this.client.call(
1149
1143
  'patch',
1150
1144
  uri,
@@ -1173,6 +1167,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1173
1167
  'content-type': 'application/json',
1174
1168
  }
1175
1169
 
1170
+
1176
1171
  return await this.client.call(
1177
1172
  'get',
1178
1173
  uri,
@@ -1203,6 +1198,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1203
1198
  'content-type': 'application/json',
1204
1199
  }
1205
1200
 
1201
+
1206
1202
  return await this.client.call(
1207
1203
  'post',
1208
1204
  uri,
@@ -1231,6 +1227,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1231
1227
  'content-type': 'application/json',
1232
1228
  }
1233
1229
 
1230
+
1234
1231
  return await this.client.call(
1235
1232
  'delete',
1236
1233
  uri,
@@ -1263,6 +1260,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1263
1260
  'content-type': 'application/json',
1264
1261
  }
1265
1262
 
1263
+
1266
1264
  return await this.client.call(
1267
1265
  'delete',
1268
1266
  uri,
@@ -1298,6 +1296,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1298
1296
  'content-type': 'application/json',
1299
1297
  }
1300
1298
 
1299
+
1301
1300
  return await this.client.call(
1302
1301
  'patch',
1303
1302
  uri,
@@ -1330,6 +1329,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1330
1329
  'content-type': 'application/json',
1331
1330
  }
1332
1331
 
1332
+
1333
1333
  return await this.client.call(
1334
1334
  'get',
1335
1335
  uri,
@@ -1387,6 +1387,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1387
1387
  'content-type': 'application/json',
1388
1388
  }
1389
1389
 
1390
+
1390
1391
  return await this.client.call(
1391
1392
  'post',
1392
1393
  uri,
@@ -1419,6 +1420,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1419
1420
  'content-type': 'application/json',
1420
1421
  }
1421
1422
 
1423
+
1422
1424
  return await this.client.call(
1423
1425
  'get',
1424
1426
  uri,
@@ -1463,6 +1465,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1463
1465
  'content-type': 'application/json',
1464
1466
  }
1465
1467
 
1468
+
1466
1469
  return await this.client.call(
1467
1470
  'patch',
1468
1471
  uri,
@@ -1495,6 +1498,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1495
1498
  'content-type': 'application/json',
1496
1499
  }
1497
1500
 
1501
+
1498
1502
  return await this.client.call(
1499
1503
  'delete',
1500
1504
  uri,
@@ -1532,6 +1536,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1532
1536
  'content-type': 'application/json',
1533
1537
  }
1534
1538
 
1539
+
1535
1540
  return await this.client.call(
1536
1541
  'post',
1537
1542
  uri,
@@ -1567,6 +1572,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1567
1572
  'content-type': 'application/json',
1568
1573
  }
1569
1574
 
1575
+
1570
1576
  return await this.client.call(
1571
1577
  'patch',
1572
1578
  uri,
@@ -1602,6 +1608,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1602
1608
  'content-type': 'application/json',
1603
1609
  }
1604
1610
 
1611
+
1605
1612
  return await this.client.call(
1606
1613
  'patch',
1607
1614
  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
 
@@ -32,6 +33,7 @@ export class Vcs {
32
33
  'content-type': 'application/json',
33
34
  }
34
35
 
36
+
35
37
  return await this.client.call(
36
38
  'get',
37
39
  uri,
@@ -73,6 +75,7 @@ export class Vcs {
73
75
  'content-type': 'application/json',
74
76
  }
75
77
 
78
+
76
79
  return await this.client.call(
77
80
  'post',
78
81
  uri,
@@ -104,6 +107,7 @@ export class Vcs {
104
107
  'content-type': 'application/json',
105
108
  }
106
109
 
110
+
107
111
  return await this.client.call(
108
112
  'get',
109
113
  uri,
@@ -135,40 +139,6 @@ export class Vcs {
135
139
  'content-type': 'application/json',
136
140
  }
137
141
 
138
- return await this.client.call(
139
- 'get',
140
- uri,
141
- apiHeaders,
142
- payload
143
- );
144
- }
145
- /**
146
- * Get files and directories of a VCS repository
147
- *
148
- *
149
- * @param {string} installationId
150
- * @param {string} providerRepositoryId
151
- * @param {string} providerRootDirectory
152
- * @throws {AppwriteException}
153
- * @returns {Promise<Models.VcsContentList>}
154
- */
155
- async getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.VcsContentList> {
156
- if (typeof installationId === 'undefined') {
157
- throw new AppwriteException('Missing required parameter: "installationId"');
158
- }
159
- if (typeof providerRepositoryId === 'undefined') {
160
- throw new AppwriteException('Missing required parameter: "providerRepositoryId"');
161
- }
162
- const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/contents'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
163
- const payload: Payload = {};
164
- if (typeof providerRootDirectory !== 'undefined') {
165
- payload['providerRootDirectory'] = providerRootDirectory;
166
- }
167
- const uri = new URL(this.client.config.endpoint + apiPath);
168
-
169
- const apiHeaders: { [header: string]: string } = {
170
- 'content-type': 'application/json',
171
- }
172
142
 
173
143
  return await this.client.call(
174
144
  'get',
@@ -205,6 +175,7 @@ export class Vcs {
205
175
  'content-type': 'application/json',
206
176
  }
207
177
 
178
+
208
179
  return await this.client.call(
209
180
  'post',
210
181
  uri,
@@ -243,6 +214,7 @@ export class Vcs {
243
214
  'content-type': 'application/json',
244
215
  }
245
216
 
217
+
246
218
  return await this.client.call(
247
219
  'patch',
248
220
  uri,
@@ -274,6 +246,7 @@ export class Vcs {
274
246
  'content-type': 'application/json',
275
247
  }
276
248
 
249
+
277
250
  return await this.client.call(
278
251
  'get',
279
252
  uri,
@@ -301,6 +274,7 @@ export class Vcs {
301
274
  'content-type': 'application/json',
302
275
  }
303
276
 
277
+
304
278
  return await this.client.call(
305
279
  'get',
306
280
  uri,
@@ -328,6 +302,7 @@ export class Vcs {
328
302
  'content-type': 'application/json',
329
303
  }
330
304
 
305
+
331
306
  return await this.client.call(
332
307
  'delete',
333
308
  uri,
package/types/client.d.ts CHANGED
@@ -201,7 +201,6 @@ declare class Client {
201
201
  options: RequestInit;
202
202
  };
203
203
  chunkedUpload(method: string, url: URL, headers: Headers | undefined, originalPayload: Payload | undefined, onProgress: (progress: UploadProgress) => void): Promise<any>;
204
- redirect(method: string, url: URL, headers?: Headers, params?: Payload): Promise<string>;
205
204
  call(method: string, url: URL, headers?: Headers, params?: Payload, responseType?: string): Promise<any>;
206
205
  static flatten(data: Payload, prefix?: string): Payload;
207
206
  }
@@ -0,0 +1,5 @@
1
+ export declare enum BillingPlan {
2
+ Tier0 = "tier-0",
3
+ Tier1 = "tier-1",
4
+ Tier2 = "tier-2"
5
+ }
@@ -3,7 +3,5 @@ export declare enum EmailTemplateType {
3
3
  Magicsession = "magicsession",
4
4
  Recovery = "recovery",
5
5
  Invitation = "invitation",
6
- Mfachallenge = "mfachallenge",
7
- Sessionalert = "sessionalert",
8
- Otpsession = "otpsession"
6
+ Mfachallenge = "mfachallenge"
9
7
  }
@@ -11,7 +11,5 @@ export declare enum PlatformType {
11
11
  Applewatchos = "apple-watchos",
12
12
  Appletvos = "apple-tvos",
13
13
  Android = "android",
14
- Unity = "unity",
15
- Reactnativeios = "react-native-ios",
16
- Reactnativeandroid = "react-native-android"
14
+ Unity = "unity"
17
15
  }
@@ -43,6 +43,5 @@ export declare enum Runtime {
43
43
  Kotlin19 = "kotlin-1.9",
44
44
  Cpp17 = "cpp-17",
45
45
  Cpp20 = "cpp-20",
46
- Bun10 = "bun-1.0",
47
- Go123 = "go-1.23"
46
+ Bun10 = "bun-1.0"
48
47
  }
package/types/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * Appwrite Console SDK
3
3
  *
4
- * This SDK is compatible with Appwrite server version 1.6.x.
4
+ * This SDK is compatible with Appwrite server version 1.5.x.
5
5
  * For older versions, please check
6
6
  * [previous releases](https://github.com/appwrite/sdk-for-console/releases).
7
7
  */
8
8
  export { Client, Query, AppwriteException } from './client';
9
9
  export { Account } from './services/account';
10
10
  export { Avatars } from './services/avatars';
11
+ export { Backups } from './services/backups';
11
12
  export { Assistant } from './services/assistant';
12
13
  export { Console } from './services/console';
13
14
  export { Databases } from './services/databases';
@@ -17,6 +18,7 @@ export { Health } from './services/health';
17
18
  export { Locale } from './services/locale';
18
19
  export { Messaging } from './services/messaging';
19
20
  export { Migrations } from './services/migrations';
21
+ export { Organizations } from './services/organizations';
20
22
  export { Project } from './services/project';
21
23
  export { Projects } from './services/projects';
22
24
  export { Proxy } from './services/proxy';
@@ -44,6 +46,7 @@ export { FunctionUsageRange } from './enums/function-usage-range';
44
46
  export { ExecutionMethod } from './enums/execution-method';
45
47
  export { Name } from './enums/name';
46
48
  export { SmtpEncryption } from './enums/smtp-encryption';
49
+ export { BillingPlan } from './enums/billing-plan';
47
50
  export { ProjectUsageRange } from './enums/project-usage-range';
48
51
  export { Region } from './enums/region';
49
52
  export { Api } from './enums/api';