@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
@@ -45,6 +45,8 @@ export class Projects {
45
45
  'content-type': 'application/json',
46
46
  }
47
47
 
48
+ payload['project'] = this.client.config.project;
49
+
48
50
 
49
51
  return await this.client.call(
50
52
  'get',
@@ -131,6 +133,8 @@ export class Projects {
131
133
  'content-type': 'application/json',
132
134
  }
133
135
 
136
+ payload['project'] = this.client.config.project;
137
+
134
138
 
135
139
  return await this.client.call(
136
140
  'post',
@@ -160,6 +164,8 @@ export class Projects {
160
164
  'content-type': 'application/json',
161
165
  }
162
166
 
167
+ payload['project'] = this.client.config.project;
168
+
163
169
 
164
170
  return await this.client.call(
165
171
  'get',
@@ -232,6 +238,8 @@ export class Projects {
232
238
  'content-type': 'application/json',
233
239
  }
234
240
 
241
+ payload['project'] = this.client.config.project;
242
+
235
243
 
236
244
  return await this.client.call(
237
245
  'patch',
@@ -261,6 +269,8 @@ export class Projects {
261
269
  'content-type': 'application/json',
262
270
  }
263
271
 
272
+ payload['project'] = this.client.config.project;
273
+
264
274
 
265
275
  return await this.client.call(
266
276
  'delete',
@@ -304,6 +314,8 @@ export class Projects {
304
314
  'content-type': 'application/json',
305
315
  }
306
316
 
317
+ payload['project'] = this.client.config.project;
318
+
307
319
 
308
320
  return await this.client.call(
309
321
  'patch',
@@ -340,6 +352,8 @@ export class Projects {
340
352
  'content-type': 'application/json',
341
353
  }
342
354
 
355
+ payload['project'] = this.client.config.project;
356
+
343
357
 
344
358
  return await this.client.call(
345
359
  'patch',
@@ -376,6 +390,8 @@ export class Projects {
376
390
  'content-type': 'application/json',
377
391
  }
378
392
 
393
+ payload['project'] = this.client.config.project;
394
+
379
395
 
380
396
  return await this.client.call(
381
397
  'patch',
@@ -412,6 +428,8 @@ export class Projects {
412
428
  'content-type': 'application/json',
413
429
  }
414
430
 
431
+ payload['project'] = this.client.config.project;
432
+
415
433
 
416
434
  return await this.client.call(
417
435
  'patch',
@@ -448,6 +466,8 @@ export class Projects {
448
466
  'content-type': 'application/json',
449
467
  }
450
468
 
469
+ payload['project'] = this.client.config.project;
470
+
451
471
 
452
472
  return await this.client.call(
453
473
  'patch',
@@ -498,6 +518,8 @@ export class Projects {
498
518
  'content-type': 'application/json',
499
519
  }
500
520
 
521
+ payload['project'] = this.client.config.project;
522
+
501
523
 
502
524
  return await this.client.call(
503
525
  'patch',
@@ -534,6 +556,8 @@ export class Projects {
534
556
  'content-type': 'application/json',
535
557
  }
536
558
 
559
+ payload['project'] = this.client.config.project;
560
+
537
561
 
538
562
  return await this.client.call(
539
563
  'patch',
@@ -570,6 +594,8 @@ export class Projects {
570
594
  'content-type': 'application/json',
571
595
  }
572
596
 
597
+ payload['project'] = this.client.config.project;
598
+
573
599
 
574
600
  return await this.client.call(
575
601
  'patch',
@@ -606,6 +632,8 @@ export class Projects {
606
632
  'content-type': 'application/json',
607
633
  }
608
634
 
635
+ payload['project'] = this.client.config.project;
636
+
609
637
 
610
638
  return await this.client.call(
611
639
  'patch',
@@ -642,6 +670,8 @@ export class Projects {
642
670
  'content-type': 'application/json',
643
671
  }
644
672
 
673
+ payload['project'] = this.client.config.project;
674
+
645
675
 
646
676
  return await this.client.call(
647
677
  'patch',
@@ -678,6 +708,8 @@ export class Projects {
678
708
  'content-type': 'application/json',
679
709
  }
680
710
 
711
+ payload['project'] = this.client.config.project;
712
+
681
713
 
682
714
  return await this.client.call(
683
715
  'patch',
@@ -718,6 +750,8 @@ export class Projects {
718
750
  'content-type': 'application/json',
719
751
  }
720
752
 
753
+ payload['project'] = this.client.config.project;
754
+
721
755
 
722
756
  return await this.client.call(
723
757
  'patch',
@@ -758,6 +792,8 @@ export class Projects {
758
792
  'content-type': 'application/json',
759
793
  }
760
794
 
795
+ payload['project'] = this.client.config.project;
796
+
761
797
 
762
798
  return await this.client.call(
763
799
  'post',
@@ -787,6 +823,8 @@ export class Projects {
787
823
  'content-type': 'application/json',
788
824
  }
789
825
 
826
+ payload['project'] = this.client.config.project;
827
+
790
828
 
791
829
  return await this.client.call(
792
830
  'get',
@@ -834,6 +872,8 @@ export class Projects {
834
872
  'content-type': 'application/json',
835
873
  }
836
874
 
875
+ payload['project'] = this.client.config.project;
876
+
837
877
 
838
878
  return await this.client.call(
839
879
  'post',
@@ -867,6 +907,8 @@ export class Projects {
867
907
  'content-type': 'application/json',
868
908
  }
869
909
 
910
+ payload['project'] = this.client.config.project;
911
+
870
912
 
871
913
  return await this.client.call(
872
914
  'get',
@@ -918,6 +960,8 @@ export class Projects {
918
960
  'content-type': 'application/json',
919
961
  }
920
962
 
963
+ payload['project'] = this.client.config.project;
964
+
921
965
 
922
966
  return await this.client.call(
923
967
  'put',
@@ -951,6 +995,8 @@ export class Projects {
951
995
  'content-type': 'application/json',
952
996
  }
953
997
 
998
+ payload['project'] = this.client.config.project;
999
+
954
1000
 
955
1001
  return await this.client.call(
956
1002
  'delete',
@@ -999,6 +1045,8 @@ export class Projects {
999
1045
  'content-type': 'application/json',
1000
1046
  }
1001
1047
 
1048
+ payload['project'] = this.client.config.project;
1049
+
1002
1050
 
1003
1051
  return await this.client.call(
1004
1052
  'patch',
@@ -1028,6 +1076,8 @@ export class Projects {
1028
1076
  'content-type': 'application/json',
1029
1077
  }
1030
1078
 
1079
+ payload['project'] = this.client.config.project;
1080
+
1031
1081
 
1032
1082
  return await this.client.call(
1033
1083
  'get',
@@ -1083,6 +1133,8 @@ export class Projects {
1083
1133
  'content-type': 'application/json',
1084
1134
  }
1085
1135
 
1136
+ payload['project'] = this.client.config.project;
1137
+
1086
1138
 
1087
1139
  return await this.client.call(
1088
1140
  'post',
@@ -1116,6 +1168,8 @@ export class Projects {
1116
1168
  'content-type': 'application/json',
1117
1169
  }
1118
1170
 
1171
+ payload['project'] = this.client.config.project;
1172
+
1119
1173
 
1120
1174
  return await this.client.call(
1121
1175
  'get',
@@ -1168,6 +1222,8 @@ export class Projects {
1168
1222
  'content-type': 'application/json',
1169
1223
  }
1170
1224
 
1225
+ payload['project'] = this.client.config.project;
1226
+
1171
1227
 
1172
1228
  return await this.client.call(
1173
1229
  'put',
@@ -1201,6 +1257,8 @@ export class Projects {
1201
1257
  'content-type': 'application/json',
1202
1258
  }
1203
1259
 
1260
+ payload['project'] = this.client.config.project;
1261
+
1204
1262
 
1205
1263
  return await this.client.call(
1206
1264
  'delete',
@@ -1244,6 +1302,8 @@ export class Projects {
1244
1302
  'content-type': 'application/json',
1245
1303
  }
1246
1304
 
1305
+ payload['project'] = this.client.config.project;
1306
+
1247
1307
 
1248
1308
  return await this.client.call(
1249
1309
  'patch',
@@ -1280,6 +1340,8 @@ export class Projects {
1280
1340
  'content-type': 'application/json',
1281
1341
  }
1282
1342
 
1343
+ payload['project'] = this.client.config.project;
1344
+
1283
1345
 
1284
1346
  return await this.client.call(
1285
1347
  'patch',
@@ -1348,6 +1410,8 @@ export class Projects {
1348
1410
  'content-type': 'application/json',
1349
1411
  }
1350
1412
 
1413
+ payload['project'] = this.client.config.project;
1414
+
1351
1415
 
1352
1416
  return await this.client.call(
1353
1417
  'patch',
@@ -1425,6 +1489,8 @@ export class Projects {
1425
1489
  'content-type': 'application/json',
1426
1490
  }
1427
1491
 
1492
+ payload['project'] = this.client.config.project;
1493
+
1428
1494
 
1429
1495
  return await this.client.call(
1430
1496
  'post',
@@ -1461,6 +1527,8 @@ export class Projects {
1461
1527
  'content-type': 'application/json',
1462
1528
  }
1463
1529
 
1530
+ payload['project'] = this.client.config.project;
1531
+
1464
1532
 
1465
1533
  return await this.client.call(
1466
1534
  'patch',
@@ -1498,6 +1566,8 @@ export class Projects {
1498
1566
  'content-type': 'application/json',
1499
1567
  }
1500
1568
 
1569
+ payload['project'] = this.client.config.project;
1570
+
1501
1571
 
1502
1572
  return await this.client.call(
1503
1573
  'get',
@@ -1561,6 +1631,8 @@ export class Projects {
1561
1631
  'content-type': 'application/json',
1562
1632
  }
1563
1633
 
1634
+ payload['project'] = this.client.config.project;
1635
+
1564
1636
 
1565
1637
  return await this.client.call(
1566
1638
  'patch',
@@ -1598,6 +1670,8 @@ export class Projects {
1598
1670
  'content-type': 'application/json',
1599
1671
  }
1600
1672
 
1673
+ payload['project'] = this.client.config.project;
1674
+
1601
1675
 
1602
1676
  return await this.client.call(
1603
1677
  'delete',
@@ -1635,6 +1709,8 @@ export class Projects {
1635
1709
  'content-type': 'application/json',
1636
1710
  }
1637
1711
 
1712
+ payload['project'] = this.client.config.project;
1713
+
1638
1714
 
1639
1715
  return await this.client.call(
1640
1716
  'get',
@@ -1679,6 +1755,8 @@ export class Projects {
1679
1755
  'content-type': 'application/json',
1680
1756
  }
1681
1757
 
1758
+ payload['project'] = this.client.config.project;
1759
+
1682
1760
 
1683
1761
  return await this.client.call(
1684
1762
  'patch',
@@ -1716,6 +1794,8 @@ export class Projects {
1716
1794
  'content-type': 'application/json',
1717
1795
  }
1718
1796
 
1797
+ payload['project'] = this.client.config.project;
1798
+
1719
1799
 
1720
1800
  return await this.client.call(
1721
1801
  'delete',
@@ -1745,6 +1825,8 @@ export class Projects {
1745
1825
  'content-type': 'application/json',
1746
1826
  }
1747
1827
 
1828
+ payload['project'] = this.client.config.project;
1829
+
1748
1830
 
1749
1831
  return await this.client.call(
1750
1832
  'get',
@@ -1814,6 +1896,8 @@ export class Projects {
1814
1896
  'content-type': 'application/json',
1815
1897
  }
1816
1898
 
1899
+ payload['project'] = this.client.config.project;
1900
+
1817
1901
 
1818
1902
  return await this.client.call(
1819
1903
  'post',
@@ -1847,6 +1931,8 @@ export class Projects {
1847
1931
  'content-type': 'application/json',
1848
1932
  }
1849
1933
 
1934
+ payload['project'] = this.client.config.project;
1935
+
1850
1936
 
1851
1937
  return await this.client.call(
1852
1938
  'get',
@@ -1920,6 +2006,8 @@ export class Projects {
1920
2006
  'content-type': 'application/json',
1921
2007
  }
1922
2008
 
2009
+ payload['project'] = this.client.config.project;
2010
+
1923
2011
 
1924
2012
  return await this.client.call(
1925
2013
  'put',
@@ -1953,6 +2041,8 @@ export class Projects {
1953
2041
  'content-type': 'application/json',
1954
2042
  }
1955
2043
 
2044
+ payload['project'] = this.client.config.project;
2045
+
1956
2046
 
1957
2047
  return await this.client.call(
1958
2048
  'delete',
@@ -1986,6 +2076,8 @@ export class Projects {
1986
2076
  'content-type': 'application/json',
1987
2077
  }
1988
2078
 
2079
+ payload['project'] = this.client.config.project;
2080
+
1989
2081
 
1990
2082
  return await this.client.call(
1991
2083
  'patch',
@@ -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',