@appwrite.io/console 1.0.0 → 1.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.
@@ -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,6 +680,7 @@ export class Users {
665
680
  'content-type': 'application/json',
666
681
  }
667
682
 
683
+
668
684
  return await this.client.call(
669
685
  'patch',
670
686
  uri,
@@ -701,6 +717,7 @@ export class Users {
701
717
  'content-type': 'application/json',
702
718
  }
703
719
 
720
+
704
721
  return await this.client.call(
705
722
  'post',
706
723
  uri,
@@ -738,6 +755,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
738
755
  'content-type': 'application/json',
739
756
  }
740
757
 
758
+
741
759
  return await this.client.call(
742
760
  'put',
743
761
  uri,
@@ -770,6 +788,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
770
788
  'content-type': 'application/json',
771
789
  }
772
790
 
791
+
773
792
  return await this.client.call(
774
793
  'get',
775
794
  uri,
@@ -798,6 +817,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
798
817
  'content-type': 'application/json',
799
818
  }
800
819
 
820
+
801
821
  return await this.client.call(
802
822
  'get',
803
823
  uri,
@@ -833,6 +853,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
833
853
  'content-type': 'application/json',
834
854
  }
835
855
 
856
+
836
857
  return await this.client.call(
837
858
  'patch',
838
859
  uri,
@@ -865,6 +886,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
865
886
  'content-type': 'application/json',
866
887
  }
867
888
 
889
+
868
890
  return await this.client.call(
869
891
  'delete',
870
892
  uri,
@@ -893,6 +915,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
893
915
  'content-type': 'application/json',
894
916
  }
895
917
 
918
+
896
919
  return await this.client.call(
897
920
  'get',
898
921
  uri,
@@ -921,6 +944,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
921
944
  'content-type': 'application/json',
922
945
  }
923
946
 
947
+
924
948
  return await this.client.call(
925
949
  'get',
926
950
  uri,
@@ -949,6 +973,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
949
973
  'content-type': 'application/json',
950
974
  }
951
975
 
976
+
952
977
  return await this.client.call(
953
978
  'put',
954
979
  uri,
@@ -977,6 +1002,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
977
1002
  'content-type': 'application/json',
978
1003
  }
979
1004
 
1005
+
980
1006
  return await this.client.call(
981
1007
  'patch',
982
1008
  uri,
@@ -1012,6 +1038,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1012
1038
  'content-type': 'application/json',
1013
1039
  }
1014
1040
 
1041
+
1015
1042
  return await this.client.call(
1016
1043
  'patch',
1017
1044
  uri,
@@ -1047,6 +1074,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1047
1074
  'content-type': 'application/json',
1048
1075
  }
1049
1076
 
1077
+
1050
1078
  return await this.client.call(
1051
1079
  'patch',
1052
1080
  uri,
@@ -1082,6 +1110,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1082
1110
  'content-type': 'application/json',
1083
1111
  }
1084
1112
 
1113
+
1085
1114
  return await this.client.call(
1086
1115
  'patch',
1087
1116
  uri,
@@ -1110,6 +1139,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1110
1139
  'content-type': 'application/json',
1111
1140
  }
1112
1141
 
1142
+
1113
1143
  return await this.client.call(
1114
1144
  'get',
1115
1145
  uri,
@@ -1145,6 +1175,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1145
1175
  'content-type': 'application/json',
1146
1176
  }
1147
1177
 
1178
+
1148
1179
  return await this.client.call(
1149
1180
  'patch',
1150
1181
  uri,
@@ -1173,6 +1204,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
1173
1204
  'content-type': 'application/json',
1174
1205
  }
1175
1206
 
1207
+
1176
1208
  return await this.client.call(
1177
1209
  'get',
1178
1210
  uri,
@@ -1203,6 +1235,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1203
1235
  'content-type': 'application/json',
1204
1236
  }
1205
1237
 
1238
+
1206
1239
  return await this.client.call(
1207
1240
  'post',
1208
1241
  uri,
@@ -1231,6 +1264,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1231
1264
  'content-type': 'application/json',
1232
1265
  }
1233
1266
 
1267
+
1234
1268
  return await this.client.call(
1235
1269
  'delete',
1236
1270
  uri,
@@ -1263,6 +1297,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1263
1297
  'content-type': 'application/json',
1264
1298
  }
1265
1299
 
1300
+
1266
1301
  return await this.client.call(
1267
1302
  'delete',
1268
1303
  uri,
@@ -1298,6 +1333,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1298
1333
  'content-type': 'application/json',
1299
1334
  }
1300
1335
 
1336
+
1301
1337
  return await this.client.call(
1302
1338
  'patch',
1303
1339
  uri,
@@ -1330,6 +1366,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1330
1366
  'content-type': 'application/json',
1331
1367
  }
1332
1368
 
1369
+
1333
1370
  return await this.client.call(
1334
1371
  'get',
1335
1372
  uri,
@@ -1387,6 +1424,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1387
1424
  'content-type': 'application/json',
1388
1425
  }
1389
1426
 
1427
+
1390
1428
  return await this.client.call(
1391
1429
  'post',
1392
1430
  uri,
@@ -1419,6 +1457,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1419
1457
  'content-type': 'application/json',
1420
1458
  }
1421
1459
 
1460
+
1422
1461
  return await this.client.call(
1423
1462
  'get',
1424
1463
  uri,
@@ -1463,6 +1502,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1463
1502
  'content-type': 'application/json',
1464
1503
  }
1465
1504
 
1505
+
1466
1506
  return await this.client.call(
1467
1507
  'patch',
1468
1508
  uri,
@@ -1495,6 +1535,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1495
1535
  'content-type': 'application/json',
1496
1536
  }
1497
1537
 
1538
+
1498
1539
  return await this.client.call(
1499
1540
  'delete',
1500
1541
  uri,
@@ -1532,6 +1573,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1532
1573
  'content-type': 'application/json',
1533
1574
  }
1534
1575
 
1576
+
1535
1577
  return await this.client.call(
1536
1578
  'post',
1537
1579
  uri,
@@ -1567,6 +1609,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1567
1609
  'content-type': 'application/json',
1568
1610
  }
1569
1611
 
1612
+
1570
1613
  return await this.client.call(
1571
1614
  'patch',
1572
1615
  uri,
@@ -1602,6 +1645,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1602
1645
  'content-type': 'application/json',
1603
1646
  }
1604
1647
 
1648
+
1605
1649
  return await this.client.call(
1606
1650
  'patch',
1607
1651
  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,6 +139,7 @@ export class Vcs {
135
139
  'content-type': 'application/json',
136
140
  }
137
141
 
142
+
138
143
  return await this.client.call(
139
144
  'get',
140
145
  uri,
@@ -170,6 +175,7 @@ export class Vcs {
170
175
  'content-type': 'application/json',
171
176
  }
172
177
 
178
+
173
179
  return await this.client.call(
174
180
  'get',
175
181
  uri,
@@ -205,6 +211,7 @@ export class Vcs {
205
211
  'content-type': 'application/json',
206
212
  }
207
213
 
214
+
208
215
  return await this.client.call(
209
216
  'post',
210
217
  uri,
@@ -243,6 +250,7 @@ export class Vcs {
243
250
  'content-type': 'application/json',
244
251
  }
245
252
 
253
+
246
254
  return await this.client.call(
247
255
  'patch',
248
256
  uri,
@@ -274,6 +282,7 @@ export class Vcs {
274
282
  'content-type': 'application/json',
275
283
  }
276
284
 
285
+
277
286
  return await this.client.call(
278
287
  'get',
279
288
  uri,
@@ -301,6 +310,7 @@ export class Vcs {
301
310
  'content-type': 'application/json',
302
311
  }
303
312
 
313
+
304
314
  return await this.client.call(
305
315
  'get',
306
316
  uri,
@@ -328,6 +338,7 @@ export class Vcs {
328
338
  'content-type': 'application/json',
329
339
  }
330
340
 
341
+
331
342
  return await this.client.call(
332
343
  'delete',
333
344
  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
  }