barco-pulse-rs 0.1.6

Rust client for Barco Pulse projector JSON-RPC API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193

// Copyright (c) 2026 Efstratios Pahis
// SPDX-License-Identifier: MPL-2.0

#![allow(unused_variables)]
#![allow(non_snake_case)]


#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
pub struct APICallResponse {
    pub jsonrpc: String,
    #[serde(default)]
    pub result: serde_json::Value,
    #[serde(default)]
    pub error: serde_json::Value,
    pub id: serde_json::Value,
}

type APICallResult = Result<APICallResponse, Box<dyn std::error::Error>>;

pub struct PulseSession {
    stream: tokio::net::TcpStream,
}

impl PulseSession {
    pub async fn connect(address: &str) -> Result<Self, Box<dyn std::error::Error>> {
        Ok(Self {
            stream: tokio::net::TcpStream::connect(address).await?,
        })
    }

    pub async fn call(
        &mut self,
        payload: serde_json::Value,
    ) -> APICallResult {
        use tokio::io::{AsyncReadExt, AsyncWriteExt};

        let mut payload_string = payload.to_string();
        payload_string.push('\n');

        self.stream.write_all(payload_string.as_bytes()).await?;
        self.stream.flush().await?;

        let mut buf = vec![0_u8; 8192];

        let n = tokio::time::timeout(
            tokio::time::Duration::from_secs(15),
            self.stream.read(&mut buf)
        ).await??;

        let body = String::from_utf8_lossy(&buf[..n]).to_string();

        println!("Pulse response: {:?}", body);

        let res: APICallResponse = serde_json::from_str(&body)?;
        Ok(res)
    }
}
/// custom pulse method api call
pub async fn custom_method_call(
    session: &mut PulseSession,
    method_name: &str,
    params: std::collections::HashMap<String, String>,
) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": method_name,
        "id": method_name,
        "params": params
    });

    session.call(payload).await
}
///[DEPRECATED] Authenticate using pin code
pub async fn set_authenticate(
    session: &mut PulseSession,
    code: u64,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "authenticate",
        "id": "authenticate",
        "params": {"code": code,}
    });

    session.call(payload).await
}
///Request a new token for the currently authenticated user
pub async fn set_generatenewtoken(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"generatenewtoken","id":"generatenewtoken","params":{}});

    session.call(payload).await
}
///Get the challenge for key-based authentication
pub async fn set_getchallenge(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"getchallenge","id":"getchallenge","params":{}});

    session.call(payload).await
}
///Introspect the API for a specified object path
pub async fn set_introspect(
    session: &mut PulseSession,
    object: String,descriptions: bool,recursive: bool,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "introspect",
        "id": "introspect",
        "params": {"object": object,"descriptions": descriptions,"recursive": recursive,}
    });

    session.call(payload).await
}
///Login using username and signed challenge (set token true to receive a token)
pub async fn set_login(
    session: &mut PulseSession,
    signature: String,token: bool,username: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "login",
        "id": "login",
        "params": {"signature": signature,"token": token,"username": username,}
    });

    session.call(payload).await
}
///Login using username and password (set token true to receive a token)
pub async fn set_login_basic(
    session: &mut PulseSession,
    password: String,token: bool,username: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "login",
        "id": "login_basic",
        "params": {"password": password,"token": token,"username": username,}
    });

    session.call(payload).await
}
///Login using token
pub async fn set_login_token(
    session: &mut PulseSession,
    token: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "login",
        "id": "login_token",
        "params": {"token": token,}
    });

    session.call(payload).await
}
///Login using code
pub async fn set_login_code(
    session: &mut PulseSession,
    token: bool,code: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "login",
        "id": "login_code",
        "params": {"token": token,"code": code,}
    });

    session.call(payload).await
}
///De-authenticate
pub async fn set_logout(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"logout","id":"logout","params":{}});

    session.call(payload).await
}
///Return a list of available channel names
pub async fn set_dmx_listchannels(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"dmx.listchannels","id":"dmx.listchannels","params":{}});

    session.call(payload).await
}
///Return a list of all modes
pub async fn set_dmx_listmodes(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"dmx.listmodes","id":"dmx.listmodes","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_environment_getalarminfo(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"environment.getalarminfo","id":"environment.getalarminfo","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_environment_getcontrolblocks(
    session: &mut PulseSession,
    valuetype: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "environment.getcontrolblocks",
        "id": "environment.getcontrolblocks",
        "params": {"valuetype": valuetype,}
    });

    session.call(payload).await
}
///List of possible GPO modes.
pub async fn set_gpio_gpo_trigger1_listavailablemodes(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"gpio.gpo.trigger1.listavailablemodes","id":"gpio.gpo.trigger1.listavailablemodes","params":{}});

    session.call(payload).await
}
///Single toggle value of output
pub async fn set_gpio_gpo_trigger1_pulse(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"gpio.gpo.trigger1.pulse","id":"gpio.gpo.trigger1.pulse","params":{}});

    session.call(payload).await
}
///List of possible GPO modes.
pub async fn set_gpio_gpo_trigger2_listavailablemodes(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"gpio.gpo.trigger2.listavailablemodes","id":"gpio.gpo.trigger2.listavailablemodes","params":{}});

    session.call(payload).await
}
///Single toggle value of output
pub async fn set_gpio_gpo_trigger2_pulse(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"gpio.gpo.trigger2.pulse","id":"gpio.gpo.trigger2.pulse","params":{}});

    session.call(payload).await
}
///List the names of all General Purpose Inputs
pub async fn set_gpio_listinputs(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"gpio.listinputs","id":"gpio.listinputs","params":{}});

    session.call(payload).await
}
///List the names of all General Purpose Outputs
pub async fn set_gpio_listoutputs(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"gpio.listoutputs","id":"gpio.listoutputs","params":{}});

    session.call(payload).await
}
///Engage CLO at the current light level
pub async fn set_illumination_clo_engage(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"illumination.clo.engage","id":"illumination.clo.engage","params":{}});

    session.call(payload).await
}
///List possible BrilliantColor modes.
pub async fn set_image_brilliantcolor_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.brilliantcolor.list","id":"image.brilliantcolor.list","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_image_color_p7_custom_copypresettocustom(
    session: &mut PulseSession,
    presetname: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.color.p7.custom.copypresettocustom",
        "id": "image.color.p7.custom.copypresettocustom",
        "params": {"presetname": presetname,}
    });

    session.call(payload).await
}
///Create a balanced colorspace from the current primaries
pub async fn set_image_color_p7_custom_makebalanced(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.color.p7.custom.makebalanced","id":"image.color.p7.custom.makebalanced","params":{}});

    session.call(payload).await
}
///Reset preset back to its default values
pub async fn set_image_color_p7_custom_resetpreset(
    session: &mut PulseSession,
    presetname: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.color.p7.custom.resetpreset",
        "id": "image.color.p7.custom.resetpreset",
        "params": {"presetname": presetname,}
    });

    session.call(payload).await
}
///Description not provided
pub async fn set_image_color_p7_custom_resettonative(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.color.p7.custom.resettonative","id":"image.color.p7.custom.resettonative","params":{}});

    session.call(payload).await
}
///Change to the next RGB mode. Lets you cycle through all possible modes.
pub async fn set_image_color_rgbmode_nextrgbmode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.color.rgbmode.nextrgbmode","id":"image.color.rgbmode.nextrgbmode","params":{}});

    session.call(payload).await
}
///List system EDIDs available for this connector
pub async fn set_image_connector_displayport_edid_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.connector.displayport.edid.list","id":"image.connector.displayport.edid.list","params":{}});

    session.call(payload).await
}
///List system EDIDs available for this connector
pub async fn set_image_connector_hdmi_edid_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.connector.hdmi.edid.list","id":"image.connector.hdmi.edid.list","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_image_connector_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.connector.list","id":"image.connector.list","params":{}});

    session.call(payload).await
}
///List possible display modes.
pub async fn set_image_display_listdisplaymodes(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.display.listdisplaymodes","id":"image.display.listdisplaymodes","params":{}});

    session.call(payload).await
}
///List all available orientation modes
pub async fn set_image_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.list","id":"image.list","params":{}});

    session.call(payload).await
}
///List all available gamma types.
pub async fn set_image_listgammatypes(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.listgammatypes","id":"image.listgammatypes","params":{}});

    session.call(payload).await
}
///Returns the four boxes describing the black level edges.
pub async fn set_image_processing_blacklevel_basicblacklevel_getblacklevelarea(
    session: &mut PulseSession,
    resolution_width: std::collections::HashMap<String, String>,resolution_height: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.blacklevel.basicblacklevel.getblacklevelarea",
        "id": "image.processing.blacklevel.basicblacklevel.getblacklevelarea",
        "params": {"resolution_width": resolution_width,"resolution_height": resolution_height,}
    });

    session.call(payload).await
}
///Returns the four boxes describing the black level edges, after warp.
pub async fn set_image_processing_blacklevel_basicblacklevel_getwarpedblacklevelarea(
    session: &mut PulseSession,
    resolution_width: std::collections::HashMap<String, String>,resolution_height: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.blacklevel.basicblacklevel.getwarpedblacklevelarea",
        "id": "image.processing.blacklevel.basicblacklevel.getwarpedblacklevelarea",
        "params": {"resolution_width": resolution_width,"resolution_height": resolution_height,}
    });

    session.call(payload).await
}
///Deletes afile with the given name.
pub async fn set_image_processing_blacklevel_file_delete(
    session: &mut PulseSession,
    filename: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.blacklevel.file.delete",
        "id": "image.processing.blacklevel.file.delete",
        "params": {"filename": filename,}
    });

    session.call(payload).await
}
///Returns a list of available black level correctionfiles
pub async fn set_image_processing_blacklevel_file_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.processing.blacklevel.file.list","id":"image.processing.blacklevel.file.list","params":{}});

    session.call(payload).await
}
///Returns the four boxes describing the blend edges.
pub async fn set_image_processing_blend_basicblend_getblendarea(
    session: &mut PulseSession,
    resolution_width: std::collections::HashMap<String, String>,resolution_height: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.blend.basicblend.getblendarea",
        "id": "image.processing.blend.basicblend.getblendarea",
        "params": {"resolution_width": resolution_width,"resolution_height": resolution_height,}
    });

    session.call(payload).await
}
///Returns the four boxes describing the blend edges, after warp.
pub async fn set_image_processing_blend_basicblend_getwarpedblendarea(
    session: &mut PulseSession,
    resolution_width: std::collections::HashMap<String, String>,resolution_height: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.blend.basicblend.getwarpedblendarea",
        "id": "image.processing.blend.basicblend.getwarpedblendarea",
        "params": {"resolution_width": resolution_width,"resolution_height": resolution_height,}
    });

    session.call(payload).await
}
///Deletes afile with the given name.
pub async fn set_image_processing_blend_file_delete(
    session: &mut PulseSession,
    filename: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.blend.file.delete",
        "id": "image.processing.blend.file.delete",
        "params": {"filename": filename,}
    });

    session.call(payload).await
}
///Returns a list of available blendfiles
pub async fn set_image_processing_blend_file_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.processing.blend.file.list","id":"image.processing.blend.file.list","params":{}});

    session.call(payload).await
}
///Deletes afile with the given name.
pub async fn set_image_processing_warp_file_delete(
    session: &mut PulseSession,
    filename: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.warp.file.delete",
        "id": "image.processing.warp.file.delete",
        "params": {"filename": filename,}
    });

    session.call(payload).await
}
///Returns a list of available warpfiles
pub async fn set_image_processing_warp_file_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.processing.warp.file.list","id":"image.processing.warp.file.list","params":{}});

    session.call(payload).await
}
///Get the corners scaled to the given resolution
pub async fn set_image_processing_warp_fourcorners_getscaledcorners(
    session: &mut PulseSession,
    resolution: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.warp.fourcorners.getscaledcorners",
        "id": "image.processing.warp.fourcorners.getscaledcorners",
        "params": {"resolution": resolution,}
    });

    session.call(payload).await
}
///Takes an array of points and returns their warped equivalents.
pub async fn set_image_processing_warp_warpscaledpoints(
    session: &mut PulseSession,
    points: std::vec::Vec<std::collections::HashMap<String, String>>,resolution: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.warp.warpscaledpoints",
        "id": "image.processing.warp.warpscaledpoints",
        "params": {"points": points,"resolution": resolution,}
    });

    session.call(payload).await
}
///Get the current grid points as normalized and relative
pub async fn set_image_processing_warpgrid_getgrid(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.processing.warpgrid.getgrid","id":"image.processing.warpgrid.getgrid","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_image_processing_warpgrid_getgridsize(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.processing.warpgrid.getgridsize","id":"image.processing.warpgrid.getgridsize","params":{}});

    session.call(payload).await
}
///Get the current grid scaled to the given resolution
pub async fn set_image_processing_warpgrid_getscaledgrid(
    session: &mut PulseSession,
    resolution: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.processing.warpgrid.getscaledgrid",
        "id": "image.processing.warpgrid.getscaledgrid",
        "params": {"resolution": resolution,}
    });

    session.call(payload).await
}
///List all possible resolutions.
pub async fn set_image_resolution_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.resolution.list","id":"image.resolution.list","params":{}});

    session.call(payload).await
}
///Get all connectors that are assigned to this source with their layout position
pub async fn set_image_source_displayport_listconnectors(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.source.displayport.listconnectors","id":"image.source.displayport.listconnectors","params":{}});

    session.call(payload).await
}
///Get all connectors that are assigned to this source with their layout position
pub async fn set_image_source_hdmi_listconnectors(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.source.hdmi.listconnectors","id":"image.source.hdmi.listconnectors","params":{}});

    session.call(payload).await
}
///List all available sources
pub async fn set_image_source_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.source.list","id":"image.source.list","params":{}});

    session.call(payload).await
}
///List all possible darktime values (in us).
pub async fn set_image_stereo_listdarktime(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.stereo.listdarktime","id":"image.stereo.listdarktime","params":{}});

    session.call(payload).await
}
///Deletes afile with the given name.
pub async fn set_image_testpattern_file_delete(
    session: &mut PulseSession,
    filename: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.testpattern.file.delete",
        "id": "image.testpattern.file.delete",
        "params": {"filename": filename,}
    });

    session.call(payload).await
}
///Get a list of available custom uploaded patterns
pub async fn set_image_testpattern_file_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.file.list","id":"image.testpattern.file.list","params":{}});

    session.call(payload).await
}
///Get the properties of a pattern
pub async fn set_image_testpattern_getproperties(
    session: &mut PulseSession,
    id: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.testpattern.getproperties",
        "id": "image.testpattern.getproperties",
        "params": {"id": id,}
    });

    session.call(payload).await
}
///Return the list of possible testpatterns to iterate.
pub async fn set_image_testpattern_iterator_calibration_listpossiblepatterns(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.calibration.listpossiblepatterns","id":"image.testpattern.iterator.calibration.listpossiblepatterns","params":{}});

    session.call(payload).await
}
///Show the next testpattern in the list.
pub async fn set_image_testpattern_iterator_calibration_next(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.calibration.next","id":"image.testpattern.iterator.calibration.next","params":{}});

    session.call(payload).await
}
///Return the list of possible testpatterns to iterate.
pub async fn set_image_testpattern_iterator_iris_listpossiblepatterns(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.iris.listpossiblepatterns","id":"image.testpattern.iterator.iris.listpossiblepatterns","params":{}});

    session.call(payload).await
}
///Show the next testpattern in the list.
pub async fn set_image_testpattern_iterator_iris_next(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.iris.next","id":"image.testpattern.iterator.iris.next","params":{}});

    session.call(payload).await
}
///Return the list of possible testpatterns to iterate.
pub async fn set_image_testpattern_iterator_optics_listpossiblepatterns(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.optics.listpossiblepatterns","id":"image.testpattern.iterator.optics.listpossiblepatterns","params":{}});

    session.call(payload).await
}
///Show the next testpattern in the list.
pub async fn set_image_testpattern_iterator_optics_next(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.optics.next","id":"image.testpattern.iterator.optics.next","params":{}});

    session.call(payload).await
}
///Return the list of possible testpatterns to iterate.
pub async fn set_image_testpattern_iterator_shift_listpossiblepatterns(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.shift.listpossiblepatterns","id":"image.testpattern.iterator.shift.listpossiblepatterns","params":{}});

    session.call(payload).await
}
///Show the next testpattern in the list.
pub async fn set_image_testpattern_iterator_shift_next(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.shift.next","id":"image.testpattern.iterator.shift.next","params":{}});

    session.call(payload).await
}
///Return the list of possible testpatterns to iterate.
pub async fn set_image_testpattern_iterator_stereo_listpossiblepatterns(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.stereo.listpossiblepatterns","id":"image.testpattern.iterator.stereo.listpossiblepatterns","params":{}});

    session.call(payload).await
}
///Show the next testpattern in the list.
pub async fn set_image_testpattern_iterator_stereo_next(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.stereo.next","id":"image.testpattern.iterator.stereo.next","params":{}});

    session.call(payload).await
}
///Return the list of possible testpatterns to iterate.
pub async fn set_image_testpattern_iterator_xpr_listpossiblepatterns(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.xpr.listpossiblepatterns","id":"image.testpattern.iterator.xpr.listpossiblepatterns","params":{}});

    session.call(payload).await
}
///Show the next testpattern in the list.
pub async fn set_image_testpattern_iterator_xpr_next(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.iterator.xpr.next","id":"image.testpattern.iterator.xpr.next","params":{}});

    session.call(payload).await
}
///Get a list of available patterns
pub async fn set_image_testpattern_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.list","id":"image.testpattern.list","params":{}});

    session.call(payload).await
}
///Get a list of available internal patterns
pub async fn set_image_testpattern_listinternal(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.listinternal","id":"image.testpattern.listinternal","params":{}});

    session.call(payload).await
}
///Get a list of available NoSignal patterns
pub async fn set_image_testpattern_nosignal_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.nosignal.list","id":"image.testpattern.nosignal.list","params":{}});

    session.call(payload).await
}
///Set the properties of a pattern
pub async fn set_image_testpattern_setproperties(
    session: &mut PulseSession,
    value: String,id: String,key: String,properties: std::vec::Vec<std::collections::HashMap<String, String>>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "image.testpattern.setproperties",
        "id": "image.testpattern.setproperties",
        "params": {"value": value,"id": id,"key": key,"properties": properties,}
    });

    session.call(payload).await
}
///Toggle display of selected test pattern on/off
pub async fn set_image_testpattern_toggle(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.testpattern.toggle","id":"image.testpattern.toggle","params":{}});

    session.call(payload).await
}
///List all available windows
pub async fn set_image_window_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"image.window.list","id":"image.window.list","params":{}});

    session.call(payload).await
}
///Create and send a synthetic key event
pub async fn set_keydispatcher_postevent(
    session: &mut PulseSession,
    key: String,eventtype: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "keydispatcher.postevent",
        "id": "keydispatcher.postevent",
        "params": {"key": key,"eventtype": eventtype,}
    });

    session.call(payload).await
}
///Activates the LEDS when enabled and restarts the LED timeout counter
pub async fn set_led_activity(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"led.activity","id":"led.activity","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_led_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"led.list","id":"led.list","params":{}});

    session.call(payload).await
}
///Mutes the LEDS.
pub async fn set_led_muteall(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"led.muteall","id":"led.muteall","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_lightmeasurement_getlightoutput(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"lightmeasurement.getlightoutput","id":"lightmeasurement.getlightoutput","params":{}});

    session.call(payload).await
}
///List of logical device id, e.g: 'wired1', 'wifi1'
pub async fn set_network_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"network.list","id":"network.list","params":{}});

    session.call(payload).await
}
///Retrieve all active notifications for the given severity
pub async fn set_notification_caution_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.caution.list","id":"notification.caution.list","params":{}});

    session.call(payload).await
}
///Dismiss the notification with the specified id
pub async fn set_notification_dismiss(
    session: &mut PulseSession,
    response: String,id: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "notification.dismiss",
        "id": "notification.dismiss",
        "params": {"response": response,"id": id,}
    });

    session.call(payload).await
}
///Retrieve all active notifications for the given severity
pub async fn set_notification_error_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.error.list","id":"notification.error.list","params":{}});

    session.call(payload).await
}
///Retrieve all active notifications for the given severity
pub async fn set_notification_info_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.info.list","id":"notification.info.list","params":{}});

    session.call(payload).await
}
///List all active notifications
pub async fn set_notification_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.list","id":"notification.list","params":{}});

    session.call(payload).await
}
///Get a list of suppressed notification codes
pub async fn set_notification_listsuppressed(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.listsuppressed","id":"notification.listsuppressed","params":{}});

    session.call(payload).await
}
///List received notifications
pub async fn set_notification_log(
    session: &mut PulseSession,
    start: std::collections::HashMap<String, String>,count: std::collections::HashMap<String, String>,minimumseverity: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "notification.log",
        "id": "notification.log",
        "params": {"start": start,"count": count,"minimumseverity": minimumseverity,}
    });

    session.call(payload).await
}
///Add a notification code to suppress (log but do not show on the LCD/OSD)
pub async fn set_notification_suppress(
    session: &mut PulseSession,
    code: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "notification.suppress",
        "id": "notification.suppress",
        "params": {"code": code,}
    });

    session.call(payload).await
}
///No longer suppress a certain notification code
pub async fn set_notification_unsuppress(
    session: &mut PulseSession,
    code: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "notification.unsuppress",
        "id": "notification.unsuppress",
        "params": {"code": code,}
    });

    session.call(payload).await
}
///No longer suppress any notification codes
pub async fn set_notification_unsuppressall(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.unsuppressall","id":"notification.unsuppressall","params":{}});

    session.call(payload).await
}
///Retrieve all active notifications for the given severity
pub async fn set_notification_warning_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"notification.warning.list","id":"notification.warning.list","params":{}});

    session.call(payload).await
}
///Calibrate motor
pub async fn set_optics_focus_calibrate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.focus.calibrate","id":"optics.focus.calibrate","params":{}});

    session.call(payload).await
}
///Run forward
pub async fn set_optics_focus_runforward(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.focus.runforward","id":"optics.focus.runforward","params":{}});

    session.call(payload).await
}
///Run forward for X milliseconds
pub async fn set_optics_focus_runforwardtime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.focus.runforwardtime",
        "id": "optics.focus.runforwardtime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Run reverse
pub async fn set_optics_focus_runreverse(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.focus.runreverse","id":"optics.focus.runreverse","params":{}});

    session.call(payload).await
}
///Run reverse for X milliseconds
pub async fn set_optics_focus_runreversetime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.focus.runreversetime",
        "id": "optics.focus.runreversetime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Step forward
pub async fn set_optics_focus_stepforward(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.focus.stepforward",
        "id": "optics.focus.stepforward",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Step reverse
pub async fn set_optics_focus_stepreverse(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.focus.stepreverse",
        "id": "optics.focus.stepreverse",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Stop
pub async fn set_optics_focus_stop(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.focus.stop","id":"optics.focus.stop","params":{}});

    session.call(payload).await
}
///List available lenses
pub async fn set_optics_lens_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lens.list","id":"optics.lens.list","params":{}});

    session.call(payload).await
}
///Calibrate motor
pub async fn set_optics_lensshift_horizontal_calibrate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.horizontal.calibrate","id":"optics.lensshift.horizontal.calibrate","params":{}});

    session.call(payload).await
}
///Run forward
pub async fn set_optics_lensshift_horizontal_runforward(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.horizontal.runforward","id":"optics.lensshift.horizontal.runforward","params":{}});

    session.call(payload).await
}
///Run forward for X milliseconds
pub async fn set_optics_lensshift_horizontal_runforwardtime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.horizontal.runforwardtime",
        "id": "optics.lensshift.horizontal.runforwardtime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Run reverse
pub async fn set_optics_lensshift_horizontal_runreverse(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.horizontal.runreverse","id":"optics.lensshift.horizontal.runreverse","params":{}});

    session.call(payload).await
}
///Run reverse for X milliseconds
pub async fn set_optics_lensshift_horizontal_runreversetime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.horizontal.runreversetime",
        "id": "optics.lensshift.horizontal.runreversetime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Step forward
pub async fn set_optics_lensshift_horizontal_stepforward(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.horizontal.stepforward",
        "id": "optics.lensshift.horizontal.stepforward",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Step reverse
pub async fn set_optics_lensshift_horizontal_stepreverse(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.horizontal.stepreverse",
        "id": "optics.lensshift.horizontal.stepreverse",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Stop
pub async fn set_optics_lensshift_horizontal_stop(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.horizontal.stop","id":"optics.lensshift.horizontal.stop","params":{}});

    session.call(payload).await
}
///Calibrate motor
pub async fn set_optics_lensshift_vertical_calibrate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.vertical.calibrate","id":"optics.lensshift.vertical.calibrate","params":{}});

    session.call(payload).await
}
///Run forward
pub async fn set_optics_lensshift_vertical_runforward(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.vertical.runforward","id":"optics.lensshift.vertical.runforward","params":{}});

    session.call(payload).await
}
///Run forward for X milliseconds
pub async fn set_optics_lensshift_vertical_runforwardtime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.vertical.runforwardtime",
        "id": "optics.lensshift.vertical.runforwardtime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Run reverse
pub async fn set_optics_lensshift_vertical_runreverse(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.vertical.runreverse","id":"optics.lensshift.vertical.runreverse","params":{}});

    session.call(payload).await
}
///Run reverse for X milliseconds
pub async fn set_optics_lensshift_vertical_runreversetime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.vertical.runreversetime",
        "id": "optics.lensshift.vertical.runreversetime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Step forward
pub async fn set_optics_lensshift_vertical_stepforward(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.vertical.stepforward",
        "id": "optics.lensshift.vertical.stepforward",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Step reverse
pub async fn set_optics_lensshift_vertical_stepreverse(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.lensshift.vertical.stepreverse",
        "id": "optics.lensshift.vertical.stepreverse",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Stop
pub async fn set_optics_lensshift_vertical_stop(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.lensshift.vertical.stop","id":"optics.lensshift.vertical.stop","params":{}});

    session.call(payload).await
}
///Shift lens to center of allowed shift range
pub async fn set_optics_shifttocenter(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.shifttocenter","id":"optics.shifttocenter","params":{}});

    session.call(payload).await
}
///Get object path of shutter
pub async fn set_optics_shutter_getobjectpath(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.shutter.getobjectpath","id":"optics.shutter.getobjectpath","params":{}});

    session.call(payload).await
}
///Get state of shutter
pub async fn set_optics_shutter_getstate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.shutter.getstate","id":"optics.shutter.getstate","params":{}});

    session.call(payload).await
}
///Toggle shutter position
pub async fn set_optics_shutter_toggle(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.shutter.toggle","id":"optics.shutter.toggle","params":{}});

    session.call(payload).await
}
///Calibrate motor
pub async fn set_optics_zoom_calibrate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.zoom.calibrate","id":"optics.zoom.calibrate","params":{}});

    session.call(payload).await
}
///Run forward
pub async fn set_optics_zoom_runforward(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.zoom.runforward","id":"optics.zoom.runforward","params":{}});

    session.call(payload).await
}
///Run forward for X milliseconds
pub async fn set_optics_zoom_runforwardtime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.zoom.runforwardtime",
        "id": "optics.zoom.runforwardtime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Run reverse
pub async fn set_optics_zoom_runreverse(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.zoom.runreverse","id":"optics.zoom.runreverse","params":{}});

    session.call(payload).await
}
///Run reverse for X milliseconds
pub async fn set_optics_zoom_runreversetime(
    session: &mut PulseSession,
    milliseconds: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.zoom.runreversetime",
        "id": "optics.zoom.runreversetime",
        "params": {"milliseconds": milliseconds,}
    });

    session.call(payload).await
}
///Step forward
pub async fn set_optics_zoom_stepforward(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.zoom.stepforward",
        "id": "optics.zoom.stepforward",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Step reverse
pub async fn set_optics_zoom_stepreverse(
    session: &mut PulseSession,
    steps: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "optics.zoom.stepreverse",
        "id": "optics.zoom.stepreverse",
        "params": {"steps": steps,}
    });

    session.call(payload).await
}
///Stop
pub async fn set_optics_zoom_stop(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"optics.zoom.stop","id":"optics.zoom.stop","params":{}});

    session.call(payload).await
}
///Trigger auto detection of connected peripherals.
pub async fn set_peripheral_autodetect(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"peripheral.autodetect","id":"peripheral.autodetect","params":{}});

    session.call(payload).await
}
///List alignment tools.
pub async fn set_peripheral_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"peripheral.list","id":"peripheral.list","params":{}});

    session.call(payload).await
}
///Activate the profile associated with the given preset.
pub async fn set_profile_activatepreset(
    session: &mut PulseSession,
    preset: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.activatepreset",
        "id": "profile.activatepreset",
        "params": {"preset": preset,}
    });

    session.call(payload).await
}
///Activate the given profile
pub async fn set_profile_activateprofile(
    session: &mut PulseSession,
    name: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.activateprofile",
        "id": "profile.activateprofile",
        "params": {"name": name,}
    });

    session.call(payload).await
}
///Assign a profile to a preset.
pub async fn set_profile_assignpreset(
    session: &mut PulseSession,
    profile: String,preset: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.assignpreset",
        "id": "profile.assignpreset",
        "params": {"profile": profile,"preset": preset,}
    });

    session.call(payload).await
}
///Create a profile containing the current values of the listed domains.
pub async fn set_profile_createprofile(
    session: &mut PulseSession,
    domains: std::vec::Vec<String>,profilename: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.createprofile",
        "id": "profile.createprofile",
        "params": {"domains": domains,"profilename": profilename,}
    });

    session.call(payload).await
}
///Delete the given profile
pub async fn set_profile_deleteprofile(
    session: &mut PulseSession,
    name: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.deleteprofile",
        "id": "profile.deleteprofile",
        "params": {"name": name,}
    });

    session.call(payload).await
}
///Get the list of domains stored in a profile.
pub async fn set_profile_getdomainsforprofile(
    session: &mut PulseSession,
    name: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.getdomainsforprofile",
        "id": "profile.getdomainsforprofile",
        "params": {"name": name,}
    });

    session.call(payload).await
}
///Get the preset assignment for given profile. -1 means unassigned.
pub async fn set_profile_presetforprofile(
    session: &mut PulseSession,
    name: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.presetforprofile",
        "id": "profile.presetforprofile",
        "params": {"name": name,}
    });

    session.call(payload).await
}
///Get the profile associated with the given preset assignment. Empty string means unassigned.
pub async fn set_profile_profileforpreset(
    session: &mut PulseSession,
    preset: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "profile.profileforpreset",
        "id": "profile.profileforpreset",
        "params": {"preset": preset,}
    });

    session.call(payload).await
}
///Return a list of all the object names of the IR sensors
pub async fn set_remotecontrol_listsensors(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"remotecontrol.listsensors","id":"remotecontrol.listsensors","params":{}});

    session.call(payload).await
}
///Create a new action for scheduler.
pub async fn set_scheduler_create(
    session: &mut PulseSession,
    name: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "scheduler.create",
        "id": "scheduler.create",
        "params": {"name": name,}
    });

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_illuminationonuptime_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.illumination on uptime.getname","id":"statistics.illumination on uptime.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_illuminationonuptime_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.illumination on uptime.getunit","id":"statistics.illumination on uptime.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_laserruntime_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser runtime.getname","id":"statistics.laser runtime.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_laserruntime_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser runtime.getunit","id":"statistics.laser runtime.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_laser_plate01_bank01_runtimeseconds_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate01.bank01.runtimeseconds.getname","id":"statistics.laser.plate01.bank01.runtimeseconds.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_laser_plate01_bank01_runtimeseconds_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate01.bank01.runtimeseconds.getunit","id":"statistics.laser.plate01.bank01.runtimeseconds.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_laser_plate01_bank02_runtimeseconds_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate01.bank02.runtimeseconds.getname","id":"statistics.laser.plate01.bank02.runtimeseconds.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_laser_plate01_bank02_runtimeseconds_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate01.bank02.runtimeseconds.getunit","id":"statistics.laser.plate01.bank02.runtimeseconds.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_laser_plate02_bank01_runtimeseconds_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate02.bank01.runtimeseconds.getname","id":"statistics.laser.plate02.bank01.runtimeseconds.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_laser_plate02_bank01_runtimeseconds_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate02.bank01.runtimeseconds.getunit","id":"statistics.laser.plate02.bank01.runtimeseconds.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_laser_plate02_bank02_runtimeseconds_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate02.bank02.runtimeseconds.getname","id":"statistics.laser.plate02.bank02.runtimeseconds.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_laser_plate02_bank02_runtimeseconds_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.laser.plate02.bank02.runtimeseconds.getunit","id":"statistics.laser.plate02.bank02.runtimeseconds.getunit","params":{}});

    session.call(payload).await
}
///List all counter names
pub async fn set_statistics_listcounters(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.listcounters","id":"statistics.listcounters","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_maintenance_actuator_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.maintenance.actuator.getname","id":"statistics.maintenance.actuator.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_maintenance_actuator_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.maintenance.actuator.getunit","id":"statistics.maintenance.actuator.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_maintenance_colorwheel_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.maintenance.colorwheel.getname","id":"statistics.maintenance.colorwheel.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_maintenance_colorwheel_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.maintenance.colorwheel.getunit","id":"statistics.maintenance.colorwheel.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_maintenance_phosphorwheel_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.maintenance.phosphorwheel.getname","id":"statistics.maintenance.phosphorwheel.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_maintenance_phosphorwheel_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.maintenance.phosphorwheel.getunit","id":"statistics.maintenance.phosphorwheel.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_projectoron_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.projector on.getname","id":"statistics.projector on.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_projectoron_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.projector on.getunit","id":"statistics.projector on.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_projectoruptime_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.projector uptime.getname","id":"statistics.projector uptime.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_projectoruptime_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.projector uptime.getunit","id":"statistics.projector uptime.getunit","params":{}});

    session.call(payload).await
}
///Name of the counter
pub async fn set_statistics_projector_getname(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.projector.getname","id":"statistics.projector.getname","params":{}});

    session.call(payload).await
}
///Unit of measurements
pub async fn set_statistics_projector_getunit(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"statistics.projector.getunit","id":"statistics.projector.getunit","params":{}});

    session.call(payload).await
}
///Signal user activity (resets timeout countdown timers)
pub async fn set_system_activity(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.activity","id":"system.activity","params":{}});

    session.call(payload).await
}
///Retrieve list of detected boards
pub async fn set_system_boards_getboardlist(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.boards.getboardlist","id":"system.boards.getboardlist","params":{}});

    session.call(payload).await
}
///Retrieve list of missing boards
pub async fn set_system_boards_getmissingboardlist(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.boards.getmissingboardlist","id":"system.boards.getmissingboardlist","params":{}});

    session.call(payload).await
}
///Returns the system date as local time.
pub async fn set_system_date_getlocaldate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.date.getlocaldate","id":"system.date.getlocaldate","params":{}});

    session.call(payload).await
}
///Returns the system date as UTC time.
pub async fn set_system_date_getsystemdate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.date.getsystemdate","id":"system.date.getsystemdate","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_system_getidentifications(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.getidentifications","id":"system.getidentifications","params":{}});

    session.call(payload).await
}
///Description not provided
pub async fn set_system_getsystemdate(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.getsystemdate","id":"system.getsystemdate","params":{}});

    session.call(payload).await
}
///Set the device in the eco state
pub async fn set_system_gotoeco(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.gotoeco","id":"system.gotoeco","params":{}});

    session.call(payload).await
}
///Set the device from standby state to ready state
pub async fn set_system_gotoready(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.gotoready","id":"system.gotoready","params":{}});

    session.call(payload).await
}
///Save registrationfile to usb memory device
pub async fn set_system_license_file_saveregistrationtousb(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.license.file.saveregistrationtousb","id":"system.license.file.saveregistrationtousb","params":{}});

    session.call(payload).await
}
///Upload license from usb memory device
pub async fn set_system_license_file_uploadfromusb(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.license.file.uploadfromusb","id":"system.license.file.uploadfromusb","params":{}});

    session.call(payload).await
}
///Returns the list of available reset domains
pub async fn set_system_listresetdomains(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.listresetdomains","id":"system.listresetdomains","params":{}});

    session.call(payload).await
}
///Power off the unit
pub async fn set_system_poweroff(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.poweroff","id":"system.poweroff","params":{}});

    session.call(payload).await
}
///Power on the unit
pub async fn set_system_poweron(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.poweron","id":"system.poweron","params":{}});

    session.call(payload).await
}
///
pub async fn set_system_reset(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.reset","id":"system.reset","params":{}});

    session.call(payload).await
}
///'Performed'-signals. Subsequent calls to 'ResetAll' or 'Reset' will fail until all domains have completed.
pub async fn set_Asynchronouslystartsresetofselecteddomains_Thecompletionofthedomainsaresignalledbyoneoremore(
    session: &mut PulseSession,
    domains: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "Asynchronously starts reset of selected domains. The completion of the domains are signalled by one ore more",
        "id": "Asynchronously starts reset of selected domains. The completion of the domains are signalled by one ore more",
        "params": {"domains": domains,}
    });

    session.call(payload).await
}
///Asynchronously starts reset of all domains. The completion of the domains are signalled by one ore more 'Performed'- signals. Subsequent calls to 'ResetAll' or 'Reset' will fail until all domains have completed. Execute this function with caution, as it might remove the projector's hostname, requiring physical access to the projector.
pub async fn set_system_resetall(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"system.resetall","id":"system.resetall","params":{}});

    session.call(payload).await
}
///Set the state and color of the key LEDs
pub async fn set_ui_leds_setstate(
    session: &mut PulseSession,
    key: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "ui.leds.setstate",
        "id": "ui.leds.setstate",
        "params": {"key": key,}
    });

    session.call(payload).await
}
///Get the value of the specified key
pub async fn set_ui_settings_get(
    session: &mut PulseSession,
    key: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "ui.settings.get",
        "id": "ui.settings.get",
        "params": {"key": key,}
    });

    session.call(payload).await
}
///
pub async fn set_ui_settings_getfonticons(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.settings.getfonticons","id":"ui.settings.getfonticons","params":{}});

    session.call(payload).await
}
///name and the icon class name.
pub async fn set_Returnadictionaryoficonsforthespecifiedcategory_Theniconisreturnedasastringcontainingthefontsetclass(
    session: &mut PulseSession,
    category: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "Return a dictionary of icons for the specified category. Then icon is returned as a string containing the font set class",
        "id": "Return a dictionary of icons for the specified category. Then icon is returned as a string containing the font set class",
        "params": {"category": category,}
    });

    session.call(payload).await
}
///Return a dictionary of icons for the specified category. The icon is return as a SVG sprite name.
pub async fn set_ui_settings_geticons(
    session: &mut PulseSession,
    category: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "ui.settings.geticons",
        "id": "ui.settings.geticons",
        "params": {"category": category,}
    });

    session.call(payload).await
}
///Return a list of all the keys
pub async fn set_ui_settings_keys(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.settings.keys","id":"ui.settings.keys","params":{}});

    session.call(payload).await
}
///Return a list of key/value pairs of all the settings
pub async fn set_ui_settings_list(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.settings.list","id":"ui.settings.list","params":{}});

    session.call(payload).await
}
///Remove the specfied key and value
pub async fn set_ui_settings_remove(
    session: &mut PulseSession,
    key: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "ui.settings.remove",
        "id": "ui.settings.remove",
        "params": {"key": key,}
    });

    session.call(payload).await
}
///Set the key to the specified value
pub async fn set_ui_settings_set(
    session: &mut PulseSession,
    key: String,value: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "ui.settings.set",
        "id": "ui.settings.set",
        "params": {"key": key,"value": value,}
    });

    session.call(payload).await
}
///Toggle lens menu on or off
pub async fn set_ui_togglelensmenu(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.togglelensmenu","id":"ui.togglelensmenu","params":{}});

    session.call(payload).await
}
///Toggle menu on/off
pub async fn set_ui_togglemenu(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.togglemenu","id":"ui.togglemenu","params":{}});

    session.call(payload).await
}
///Toggle on screen display on or off
pub async fn set_ui_toggleosd(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.toggleosd","id":"ui.toggleosd","params":{}});

    session.call(payload).await
}
///Toggle the pattern menu on or off
pub async fn set_ui_togglepatternmenu(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.togglepatternmenu","id":"ui.togglepatternmenu","params":{}});

    session.call(payload).await
}
///Toggle the source menu on or off
pub async fn set_ui_togglesourcemenu(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.togglesourcemenu","id":"ui.togglesourcemenu","params":{}});

    session.call(payload).await
}
///[DEPRECATED]
pub async fn set_ui_togglestealthmode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"ui.togglestealthmode","id":"ui.togglestealthmode","params":{}});

    session.call(payload).await
}
///Called from touchpanel when the touchpanel is in Test mode
pub async fn set_ui_touchscreen_tapped(
    session: &mut PulseSession,
    x: std::collections::HashMap<String, String>,y: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "ui.touchscreen.tapped",
        "id": "ui.touchscreen.tapped",
        "params": {"x": x,"y": y,}
    });

    session.call(payload).await
}
///Change the user group
pub async fn set_user_admin_changegroup(
    session: &mut PulseSession,
    newgroup: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.admin.changegroup",
        "id": "user.admin.changegroup",
        "params": {"newgroup": newgroup,}
    });

    session.call(payload).await
}
///Change the password
pub async fn set_user_admin_changepassword(
    session: &mut PulseSession,
    newpassword: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.admin.changepassword",
        "id": "user.admin.changepassword",
        "params": {"newpassword": newpassword,}
    });

    session.call(payload).await
}
///Change the 6-digit PIN code
pub async fn set_user_admin_changepincode(
    session: &mut PulseSession,
    newpincode: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.admin.changepincode",
        "id": "user.admin.changepincode",
        "params": {"newpincode": newpincode,}
    });

    session.call(payload).await
}
///Change the public key
pub async fn set_user_admin_changepublickey(
    session: &mut PulseSession,
    newpublickey: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.admin.changepublickey",
        "id": "user.admin.changepublickey",
        "params": {"newpublickey": newpublickey,}
    });

    session.call(payload).await
}
///Change the username
pub async fn set_user_admin_changeusername(
    session: &mut PulseSession,
    newusername: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.admin.changeusername",
        "id": "user.admin.changeusername",
        "params": {"newusername": newusername,}
    });

    session.call(payload).await
}
///Disable the user
pub async fn set_user_admin_disable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.admin.disable","id":"user.admin.disable","params":{}});

    session.call(payload).await
}
///Enable the user
pub async fn set_user_admin_enable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.admin.enable","id":"user.admin.enable","params":{}});

    session.call(payload).await
}
///Invalidate all tokens
pub async fn set_user_admin_invalidatetokens(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.admin.invalidatetokens","id":"user.admin.invalidatetokens","params":{}});

    session.call(payload).await
}
///Invalidate all tokens and log out of all active sessions
pub async fn set_user_admin_logouteverywhere(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.admin.logouteverywhere","id":"user.admin.logouteverywhere","params":{}});

    session.call(payload).await
}
///Remove the password
pub async fn set_user_admin_removepassword(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.admin.removepassword","id":"user.admin.removepassword","params":{}});

    session.call(payload).await
}
///Remove the 6-digit PIN code
pub async fn set_user_admin_removepincode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.admin.removepincode","id":"user.admin.removepincode","params":{}});

    session.call(payload).await
}
///Change the user group
pub async fn set_user_currentuser_changegroup(
    session: &mut PulseSession,
    newgroup: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.currentuser.changegroup",
        "id": "user.currentuser.changegroup",
        "params": {"newgroup": newgroup,}
    });

    session.call(payload).await
}
///Change the password
pub async fn set_user_currentuser_changepassword(
    session: &mut PulseSession,
    newpassword: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.currentuser.changepassword",
        "id": "user.currentuser.changepassword",
        "params": {"newpassword": newpassword,}
    });

    session.call(payload).await
}
///Change the 6-digit PIN code
pub async fn set_user_currentuser_changepincode(
    session: &mut PulseSession,
    newpincode: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.currentuser.changepincode",
        "id": "user.currentuser.changepincode",
        "params": {"newpincode": newpincode,}
    });

    session.call(payload).await
}
///Change the public key
pub async fn set_user_currentuser_changepublickey(
    session: &mut PulseSession,
    newpublickey: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.currentuser.changepublickey",
        "id": "user.currentuser.changepublickey",
        "params": {"newpublickey": newpublickey,}
    });

    session.call(payload).await
}
///Change the username
pub async fn set_user_currentuser_changeusername(
    session: &mut PulseSession,
    newusername: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.currentuser.changeusername",
        "id": "user.currentuser.changeusername",
        "params": {"newusername": newusername,}
    });

    session.call(payload).await
}
///Disable the user
pub async fn set_user_currentuser_disable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.currentuser.disable","id":"user.currentuser.disable","params":{}});

    session.call(payload).await
}
///Enable the user
pub async fn set_user_currentuser_enable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.currentuser.enable","id":"user.currentuser.enable","params":{}});

    session.call(payload).await
}
///Invalidate all tokens
pub async fn set_user_currentuser_invalidatetokens(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.currentuser.invalidatetokens","id":"user.currentuser.invalidatetokens","params":{}});

    session.call(payload).await
}
///Invalidate all tokens and log out of all active sessions
pub async fn set_user_currentuser_logouteverywhere(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.currentuser.logouteverywhere","id":"user.currentuser.logouteverywhere","params":{}});

    session.call(payload).await
}
///Remove the password
pub async fn set_user_currentuser_removepassword(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.currentuser.removepassword","id":"user.currentuser.removepassword","params":{}});

    session.call(payload).await
}
///Remove the 6-digit PIN code
pub async fn set_user_currentuser_removepincode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.currentuser.removepincode","id":"user.currentuser.removepincode","params":{}});

    session.call(payload).await
}
///Change the user group
pub async fn set_user_poweruser_changegroup(
    session: &mut PulseSession,
    newgroup: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.poweruser.changegroup",
        "id": "user.poweruser.changegroup",
        "params": {"newgroup": newgroup,}
    });

    session.call(payload).await
}
///Change the password
pub async fn set_user_poweruser_changepassword(
    session: &mut PulseSession,
    newpassword: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.poweruser.changepassword",
        "id": "user.poweruser.changepassword",
        "params": {"newpassword": newpassword,}
    });

    session.call(payload).await
}
///Change the 6-digit PIN code
pub async fn set_user_poweruser_changepincode(
    session: &mut PulseSession,
    newpincode: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.poweruser.changepincode",
        "id": "user.poweruser.changepincode",
        "params": {"newpincode": newpincode,}
    });

    session.call(payload).await
}
///Change the public key
pub async fn set_user_poweruser_changepublickey(
    session: &mut PulseSession,
    newpublickey: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.poweruser.changepublickey",
        "id": "user.poweruser.changepublickey",
        "params": {"newpublickey": newpublickey,}
    });

    session.call(payload).await
}
///Change the username
pub async fn set_user_poweruser_changeusername(
    session: &mut PulseSession,
    newusername: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.poweruser.changeusername",
        "id": "user.poweruser.changeusername",
        "params": {"newusername": newusername,}
    });

    session.call(payload).await
}
///Disable the user
pub async fn set_user_poweruser_disable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.poweruser.disable","id":"user.poweruser.disable","params":{}});

    session.call(payload).await
}
///Enable the user
pub async fn set_user_poweruser_enable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.poweruser.enable","id":"user.poweruser.enable","params":{}});

    session.call(payload).await
}
///Invalidate all tokens
pub async fn set_user_poweruser_invalidatetokens(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.poweruser.invalidatetokens","id":"user.poweruser.invalidatetokens","params":{}});

    session.call(payload).await
}
///Invalidate all tokens and log out of all active sessions
pub async fn set_user_poweruser_logouteverywhere(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.poweruser.logouteverywhere","id":"user.poweruser.logouteverywhere","params":{}});

    session.call(payload).await
}
///Remove the password
pub async fn set_user_poweruser_removepassword(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.poweruser.removepassword","id":"user.poweruser.removepassword","params":{}});

    session.call(payload).await
}
///Remove the 6-digit PIN code
pub async fn set_user_poweruser_removepincode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.poweruser.removepincode","id":"user.poweruser.removepincode","params":{}});

    session.call(payload).await
}
///Reset the administrator account using the response provided by barco
pub async fn set_user_resetadministrator(
    session: &mut PulseSession,
    response: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.resetadministrator",
        "id": "user.resetadministrator",
        "params": {"response": response,}
    });

    session.call(payload).await
}
///Change the user group
pub async fn set_user_testuser_changegroup(
    session: &mut PulseSession,
    newgroup: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.testuser.changegroup",
        "id": "user.testuser.changegroup",
        "params": {"newgroup": newgroup,}
    });

    session.call(payload).await
}
///Change the password
pub async fn set_user_testuser_changepassword(
    session: &mut PulseSession,
    newpassword: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.testuser.changepassword",
        "id": "user.testuser.changepassword",
        "params": {"newpassword": newpassword,}
    });

    session.call(payload).await
}
///Change the 6-digit PIN code
pub async fn set_user_testuser_changepincode(
    session: &mut PulseSession,
    newpincode: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.testuser.changepincode",
        "id": "user.testuser.changepincode",
        "params": {"newpincode": newpincode,}
    });

    session.call(payload).await
}
///Change the public key
pub async fn set_user_testuser_changepublickey(
    session: &mut PulseSession,
    newpublickey: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.testuser.changepublickey",
        "id": "user.testuser.changepublickey",
        "params": {"newpublickey": newpublickey,}
    });

    session.call(payload).await
}
///Change the username
pub async fn set_user_testuser_changeusername(
    session: &mut PulseSession,
    newusername: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.testuser.changeusername",
        "id": "user.testuser.changeusername",
        "params": {"newusername": newusername,}
    });

    session.call(payload).await
}
///Disable the user
pub async fn set_user_testuser_disable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.testuser.disable","id":"user.testuser.disable","params":{}});

    session.call(payload).await
}
///Enable the user
pub async fn set_user_testuser_enable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.testuser.enable","id":"user.testuser.enable","params":{}});

    session.call(payload).await
}
///Invalidate all tokens
pub async fn set_user_testuser_invalidatetokens(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.testuser.invalidatetokens","id":"user.testuser.invalidatetokens","params":{}});

    session.call(payload).await
}
///Invalidate all tokens and log out of all active sessions
pub async fn set_user_testuser_logouteverywhere(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.testuser.logouteverywhere","id":"user.testuser.logouteverywhere","params":{}});

    session.call(payload).await
}
///Remove the password
pub async fn set_user_testuser_removepassword(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.testuser.removepassword","id":"user.testuser.removepassword","params":{}});

    session.call(payload).await
}
///Remove the 6-digit PIN code
pub async fn set_user_testuser_removepincode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.testuser.removepincode","id":"user.testuser.removepincode","params":{}});

    session.call(payload).await
}
///Change the user group
pub async fn set_user_user_changegroup(
    session: &mut PulseSession,
    newgroup: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.user.changegroup",
        "id": "user.user.changegroup",
        "params": {"newgroup": newgroup,}
    });

    session.call(payload).await
}
///Change the password
pub async fn set_user_user_changepassword(
    session: &mut PulseSession,
    newpassword: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.user.changepassword",
        "id": "user.user.changepassword",
        "params": {"newpassword": newpassword,}
    });

    session.call(payload).await
}
///Change the 6-digit PIN code
pub async fn set_user_user_changepincode(
    session: &mut PulseSession,
    newpincode: std::collections::HashMap<String, String>,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.user.changepincode",
        "id": "user.user.changepincode",
        "params": {"newpincode": newpincode,}
    });

    session.call(payload).await
}
///Change the public key
pub async fn set_user_user_changepublickey(
    session: &mut PulseSession,
    newpublickey: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.user.changepublickey",
        "id": "user.user.changepublickey",
        "params": {"newpublickey": newpublickey,}
    });

    session.call(payload).await
}
///Change the username
pub async fn set_user_user_changeusername(
    session: &mut PulseSession,
    newusername: String,) -> APICallResult {
    let payload = serde_json::json!({
        "jsonrpc": "2.0",
        "method": "user.user.changeusername",
        "id": "user.user.changeusername",
        "params": {"newusername": newusername,}
    });

    session.call(payload).await
}
///Disable the user
pub async fn set_user_user_disable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.user.disable","id":"user.user.disable","params":{}});

    session.call(payload).await
}
///Enable the user
pub async fn set_user_user_enable(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.user.enable","id":"user.user.enable","params":{}});

    session.call(payload).await
}
///Invalidate all tokens
pub async fn set_user_user_invalidatetokens(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.user.invalidatetokens","id":"user.user.invalidatetokens","params":{}});

    session.call(payload).await
}
///Invalidate all tokens and log out of all active sessions
pub async fn set_user_user_logouteverywhere(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.user.logouteverywhere","id":"user.user.logouteverywhere","params":{}});

    session.call(payload).await
}
///Remove the password
pub async fn set_user_user_removepassword(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.user.removepassword","id":"user.user.removepassword","params":{}});

    session.call(payload).await
}
///Remove the 6-digit PIN code
pub async fn set_user_user_removepincode(session: &mut PulseSession) -> APICallResult {
    let payload = serde_json::json!({"jsonrpc":"2.0","method":"user.user.removepincode","id":"user.user.removepincode","params":{}});

    session.call(payload).await
}