@appwrite.io/console 1.4.7 → 1.5.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.
@@ -35,6 +35,8 @@ export class Proxy {
35
35
  'content-type': 'application/json',
36
36
  }
37
37
 
38
+ payload['project'] = this.client.config.project;
39
+
38
40
 
39
41
  return await this.client.call(
40
42
  'get',
@@ -78,6 +80,8 @@ export class Proxy {
78
80
  'content-type': 'application/json',
79
81
  }
80
82
 
83
+ payload['project'] = this.client.config.project;
84
+
81
85
 
82
86
  return await this.client.call(
83
87
  'post',
@@ -107,6 +111,8 @@ export class Proxy {
107
111
  'content-type': 'application/json',
108
112
  }
109
113
 
114
+ payload['project'] = this.client.config.project;
115
+
110
116
 
111
117
  return await this.client.call(
112
118
  'get',
@@ -136,6 +142,8 @@ export class Proxy {
136
142
  'content-type': 'application/json',
137
143
  }
138
144
 
145
+ payload['project'] = this.client.config.project;
146
+
139
147
 
140
148
  return await this.client.call(
141
149
  'delete',
@@ -165,6 +173,8 @@ export class Proxy {
165
173
  'content-type': 'application/json',
166
174
  }
167
175
 
176
+ payload['project'] = this.client.config.project;
177
+
168
178
 
169
179
  return await this.client.call(
170
180
  'patch',
@@ -38,6 +38,8 @@ export class Storage {
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',
@@ -109,6 +111,8 @@ export class Storage {
109
111
  'content-type': 'application/json',
110
112
  }
111
113
 
114
+ payload['project'] = this.client.config.project;
115
+
112
116
 
113
117
  return await this.client.call(
114
118
  'post',
@@ -138,6 +142,8 @@ export class Storage {
138
142
  'content-type': 'application/json',
139
143
  }
140
144
 
145
+ payload['project'] = this.client.config.project;
146
+
141
147
 
142
148
  return await this.client.call(
143
149
  'get',
@@ -206,6 +212,8 @@ export class Storage {
206
212
  'content-type': 'application/json',
207
213
  }
208
214
 
215
+ payload['project'] = this.client.config.project;
216
+
209
217
 
210
218
  return await this.client.call(
211
219
  'put',
@@ -235,6 +243,8 @@ export class Storage {
235
243
  'content-type': 'application/json',
236
244
  }
237
245
 
246
+ payload['project'] = this.client.config.project;
247
+
238
248
 
239
249
  return await this.client.call(
240
250
  'delete',
@@ -272,6 +282,8 @@ export class Storage {
272
282
  'content-type': 'application/json',
273
283
  }
274
284
 
285
+ payload['project'] = this.client.config.project;
286
+
275
287
 
276
288
  return await this.client.call(
277
289
  'get',
@@ -326,6 +338,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
326
338
  'content-type': 'multipart/form-data',
327
339
  }
328
340
 
341
+ payload['project'] = this.client.config.project;
342
+
329
343
 
330
344
  return await this.client.chunkedUpload(
331
345
  'post',
@@ -360,6 +374,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
360
374
  'content-type': 'application/json',
361
375
  }
362
376
 
377
+ payload['project'] = this.client.config.project;
378
+
363
379
 
364
380
  return await this.client.call(
365
381
  'get',
@@ -401,6 +417,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
401
417
  'content-type': 'application/json',
402
418
  }
403
419
 
420
+ payload['project'] = this.client.config.project;
421
+
404
422
 
405
423
  return await this.client.call(
406
424
  'put',
@@ -434,6 +452,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
434
452
  'content-type': 'application/json',
435
453
  }
436
454
 
455
+ payload['project'] = this.client.config.project;
456
+
437
457
 
438
458
  return await this.client.call(
439
459
  'delete',
@@ -467,14 +487,9 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
467
487
  'content-type': 'application/json',
468
488
  }
469
489
 
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
-
475
490
  payload['project'] = this.client.config.project;
476
491
 
477
- for (const [key, value] of Object.entries(Client.flatten(payload))) {
492
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
478
493
  uri.searchParams.append(key, value);
479
494
  }
480
495
 
@@ -550,13 +565,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
550
565
  }
551
566
 
552
567
  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
568
 
557
- payload['project'] = this.client.config.project;
558
-
559
- for (const [key, value] of Object.entries(Client.flatten(payload))) {
569
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
560
570
  uri.searchParams.append(key, value);
561
571
  }
562
572
 
@@ -587,14 +597,9 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
587
597
  'content-type': 'application/json',
588
598
  }
589
599
 
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
-
595
600
  payload['project'] = this.client.config.project;
596
601
 
597
- for (const [key, value] of Object.entries(Client.flatten(payload))) {
602
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
598
603
  uri.searchParams.append(key, value);
599
604
  }
600
605
 
@@ -622,6 +627,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
622
627
  'content-type': 'application/json',
623
628
  }
624
629
 
630
+ payload['project'] = this.client.config.project;
631
+
625
632
 
626
633
  return await this.client.call(
627
634
  'get',
@@ -656,6 +663,8 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
656
663
  'content-type': 'application/json',
657
664
  }
658
665
 
666
+ payload['project'] = this.client.config.project;
667
+
659
668
 
660
669
  return await this.client.call(
661
670
  'get',
@@ -34,6 +34,8 @@ export class Teams {
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 Teams {
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',
@@ -106,6 +110,8 @@ export class Teams {
106
110
  'content-type': 'application/json',
107
111
  }
108
112
 
113
+ payload['project'] = this.client.config.project;
114
+
109
115
 
110
116
  return await this.client.call(
111
117
  'get',
@@ -142,6 +148,8 @@ export class Teams {
142
148
  'content-type': 'application/json',
143
149
  }
144
150
 
151
+ payload['project'] = this.client.config.project;
152
+
145
153
 
146
154
  return await this.client.call(
147
155
  'put',
@@ -171,6 +179,8 @@ export class Teams {
171
179
  'content-type': 'application/json',
172
180
  }
173
181
 
182
+ payload['project'] = this.client.config.project;
183
+
174
184
 
175
185
  return await this.client.call(
176
186
  'delete',
@@ -204,6 +214,8 @@ export class Teams {
204
214
  'content-type': 'application/json',
205
215
  }
206
216
 
217
+ payload['project'] = this.client.config.project;
218
+
207
219
 
208
220
  return await this.client.call(
209
221
  'get',
@@ -241,6 +253,8 @@ export class Teams {
241
253
  'content-type': 'application/json',
242
254
  }
243
255
 
256
+ payload['project'] = this.client.config.project;
257
+
244
258
 
245
259
  return await this.client.call(
246
260
  'get',
@@ -304,6 +318,8 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
304
318
  'content-type': 'application/json',
305
319
  }
306
320
 
321
+ payload['project'] = this.client.config.project;
322
+
307
323
 
308
324
  return await this.client.call(
309
325
  'post',
@@ -337,6 +353,8 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
337
353
  'content-type': 'application/json',
338
354
  }
339
355
 
356
+ payload['project'] = this.client.config.project;
357
+
340
358
 
341
359
  return await this.client.call(
342
360
  'get',
@@ -378,6 +396,8 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
378
396
  'content-type': 'application/json',
379
397
  }
380
398
 
399
+ payload['project'] = this.client.config.project;
400
+
381
401
 
382
402
  return await this.client.call(
383
403
  'patch',
@@ -411,6 +431,8 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
411
431
  'content-type': 'application/json',
412
432
  }
413
433
 
434
+ payload['project'] = this.client.config.project;
435
+
414
436
 
415
437
  return await this.client.call(
416
438
  'delete',
@@ -461,6 +483,8 @@ If the request is successful, a session for the user is automatically created.
461
483
  'content-type': 'application/json',
462
484
  }
463
485
 
486
+ payload['project'] = this.client.config.project;
487
+
464
488
 
465
489
  return await this.client.call(
466
490
  'patch',
@@ -490,6 +514,8 @@ If the request is successful, a session for the user is automatically created.
490
514
  'content-type': 'application/json',
491
515
  }
492
516
 
517
+ payload['project'] = this.client.config.project;
518
+
493
519
 
494
520
  return await this.client.call(
495
521
  'get',
@@ -526,6 +552,8 @@ If the request is successful, a session for the user is automatically created.
526
552
  'content-type': 'application/json',
527
553
  }
528
554
 
555
+ payload['project'] = this.client.config.project;
556
+
529
557
 
530
558
  return await this.client.call(
531
559
  'put',
@@ -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',