@homeflare/distilled-proxmox-backup 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1451,14 +1451,9 @@ export interface DeleteConfigAccessAdRequest {
1451
1451
  export const DeleteConfigAccessAdRequest = /*@__PURE__*/ S.suspend(() =>
1452
1452
  S.Struct({
1453
1453
  realm: S.String.pipe(T.Label()),
1454
- digest: S.optional(S.String),
1454
+ digest: S.optional(S.String.pipe(T.Query())),
1455
1455
  }).pipe(
1456
- T.Http({
1457
- method: "DELETE",
1458
- uri: "/config/access/ad/{realm}",
1459
- code: 200,
1460
- contentType: "form-urlencoded",
1461
- }),
1456
+ T.Http({ method: "DELETE", uri: "/config/access/ad/{realm}", code: 200 }),
1462
1457
  ),
1463
1458
  ).annotate({
1464
1459
  identifier: "DeleteConfigAccessAdRequest",
@@ -1479,14 +1474,9 @@ export interface DeleteConfigAccessLdapRequest {
1479
1474
  export const DeleteConfigAccessLdapRequest = /*@__PURE__*/ S.suspend(() =>
1480
1475
  S.Struct({
1481
1476
  realm: S.String.pipe(T.Label()),
1482
- digest: S.optional(S.String),
1477
+ digest: S.optional(S.String.pipe(T.Query())),
1483
1478
  }).pipe(
1484
- T.Http({
1485
- method: "DELETE",
1486
- uri: "/config/access/ldap/{realm}",
1487
- code: 200,
1488
- contentType: "form-urlencoded",
1489
- }),
1479
+ T.Http({ method: "DELETE", uri: "/config/access/ldap/{realm}", code: 200 }),
1490
1480
  ),
1491
1481
  ).annotate({
1492
1482
  identifier: "DeleteConfigAccessLdapRequest",
@@ -1507,13 +1497,12 @@ export interface DeleteConfigAccessOpenidRequest {
1507
1497
  export const DeleteConfigAccessOpenidRequest = /*@__PURE__*/ S.suspend(() =>
1508
1498
  S.Struct({
1509
1499
  realm: S.String.pipe(T.Label()),
1510
- digest: S.optional(S.String),
1500
+ digest: S.optional(S.String.pipe(T.Query())),
1511
1501
  }).pipe(
1512
1502
  T.Http({
1513
1503
  method: "DELETE",
1514
1504
  uri: "/config/access/openid/{realm}",
1515
1505
  code: 200,
1516
- contentType: "form-urlencoded",
1517
1506
  }),
1518
1507
  ),
1519
1508
  ).annotate({
@@ -1535,14 +1524,9 @@ export interface DeleteConfigAcmeAccountRequest {
1535
1524
  export const DeleteConfigAcmeAccountRequest = /*@__PURE__*/ S.suspend(() =>
1536
1525
  S.Struct({
1537
1526
  name: S.String.pipe(T.Label()),
1538
- force: S.optional(S.String),
1527
+ force: S.optional(S.String.pipe(T.Query())),
1539
1528
  }).pipe(
1540
- T.Http({
1541
- method: "DELETE",
1542
- uri: "/config/acme/account/{name}",
1543
- code: 200,
1544
- contentType: "form-urlencoded",
1545
- }),
1529
+ T.Http({ method: "DELETE", uri: "/config/acme/account/{name}", code: 200 }),
1546
1530
  ),
1547
1531
  ).annotate({
1548
1532
  identifier: "DeleteConfigAcmeAccountRequest",
@@ -1607,16 +1591,11 @@ export interface DeleteConfigDatastoreRequest {
1607
1591
  export const DeleteConfigDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
1608
1592
  S.Struct({
1609
1593
  name: S.String.pipe(T.Label()),
1610
- destroy_data: S.optional(S.String.pipe(T.Body("destroy-data"))),
1611
- digest: S.optional(S.String),
1612
- keep_job_configs: S.optional(S.String.pipe(T.Body("keep-job-configs"))),
1594
+ destroy_data: S.optional(S.String.pipe(T.Query("destroy-data"))),
1595
+ digest: S.optional(S.String.pipe(T.Query())),
1596
+ keep_job_configs: S.optional(S.String.pipe(T.Query("keep-job-configs"))),
1613
1597
  }).pipe(
1614
- T.Http({
1615
- method: "DELETE",
1616
- uri: "/config/datastore/{name}",
1617
- code: 200,
1618
- contentType: "form-urlencoded",
1619
- }),
1598
+ T.Http({ method: "DELETE", uri: "/config/datastore/{name}", code: 200 }),
1620
1599
  ),
1621
1600
  ).annotate({
1622
1601
  identifier: "DeleteConfigDatastoreRequest",
@@ -1655,13 +1634,12 @@ export interface DeleteConfigEncryptionKeyRequest {
1655
1634
  export const DeleteConfigEncryptionKeyRequest = /*@__PURE__*/ S.suspend(() =>
1656
1635
  S.Struct({
1657
1636
  id: S.String.pipe(T.Label()),
1658
- digest: S.optional(S.String),
1637
+ digest: S.optional(S.String.pipe(T.Query())),
1659
1638
  }).pipe(
1660
1639
  T.Http({
1661
1640
  method: "DELETE",
1662
1641
  uri: "/config/encryption-keys/{id}",
1663
1642
  code: 200,
1664
- contentType: "form-urlencoded",
1665
1643
  }),
1666
1644
  ),
1667
1645
  ).annotate({
@@ -1704,13 +1682,12 @@ export const DeleteConfigMetricsInfluxdbHttpRequest = /*@__PURE__*/ S.suspend(
1704
1682
  () =>
1705
1683
  S.Struct({
1706
1684
  name: S.String.pipe(T.Label()),
1707
- digest: S.optional(S.String),
1685
+ digest: S.optional(S.String.pipe(T.Query())),
1708
1686
  }).pipe(
1709
1687
  T.Http({
1710
1688
  method: "DELETE",
1711
1689
  uri: "/config/metrics/influxdb-http/{name}",
1712
1690
  code: 200,
1713
- contentType: "form-urlencoded",
1714
1691
  }),
1715
1692
  ),
1716
1693
  ).annotate({
@@ -1733,13 +1710,12 @@ export const DeleteConfigMetricsInfluxdbUdpRequest = /*@__PURE__*/ S.suspend(
1733
1710
  () =>
1734
1711
  S.Struct({
1735
1712
  name: S.String.pipe(T.Label()),
1736
- digest: S.optional(S.String),
1713
+ digest: S.optional(S.String.pipe(T.Query())),
1737
1714
  }).pipe(
1738
1715
  T.Http({
1739
1716
  method: "DELETE",
1740
1717
  uri: "/config/metrics/influxdb-udp/{name}",
1741
1718
  code: 200,
1742
- contentType: "form-urlencoded",
1743
1719
  }),
1744
1720
  ),
1745
1721
  ).annotate({
@@ -1882,15 +1858,8 @@ export interface DeleteConfigPruneRequest {
1882
1858
  export const DeleteConfigPruneRequest = /*@__PURE__*/ S.suspend(() =>
1883
1859
  S.Struct({
1884
1860
  id: S.String.pipe(T.Label()),
1885
- digest: S.optional(S.String),
1886
- }).pipe(
1887
- T.Http({
1888
- method: "DELETE",
1889
- uri: "/config/prune/{id}",
1890
- code: 200,
1891
- contentType: "form-urlencoded",
1892
- }),
1893
- ),
1861
+ digest: S.optional(S.String.pipe(T.Query())),
1862
+ }).pipe(T.Http({ method: "DELETE", uri: "/config/prune/{id}", code: 200 })),
1894
1863
  ).annotate({
1895
1864
  identifier: "DeleteConfigPruneRequest",
1896
1865
  }) as any as S.Schema<DeleteConfigPruneRequest>;
@@ -1910,14 +1879,9 @@ export interface DeleteConfigRemoteRequest {
1910
1879
  export const DeleteConfigRemoteRequest = /*@__PURE__*/ S.suspend(() =>
1911
1880
  S.Struct({
1912
1881
  name: S.String.pipe(T.Label()),
1913
- digest: S.optional(S.String),
1882
+ digest: S.optional(S.String.pipe(T.Query())),
1914
1883
  }).pipe(
1915
- T.Http({
1916
- method: "DELETE",
1917
- uri: "/config/remote/{name}",
1918
- code: 200,
1919
- contentType: "form-urlencoded",
1920
- }),
1884
+ T.Http({ method: "DELETE", uri: "/config/remote/{name}", code: 200 }),
1921
1885
  ),
1922
1886
  ).annotate({
1923
1887
  identifier: "DeleteConfigRemoteRequest",
@@ -1938,15 +1902,8 @@ export interface DeleteConfigS3Request {
1938
1902
  export const DeleteConfigS3Request = /*@__PURE__*/ S.suspend(() =>
1939
1903
  S.Struct({
1940
1904
  id: S.String.pipe(T.Label()),
1941
- digest: S.optional(S.String),
1942
- }).pipe(
1943
- T.Http({
1944
- method: "DELETE",
1945
- uri: "/config/s3/{id}",
1946
- code: 200,
1947
- contentType: "form-urlencoded",
1948
- }),
1949
- ),
1905
+ digest: S.optional(S.String.pipe(T.Query())),
1906
+ }).pipe(T.Http({ method: "DELETE", uri: "/config/s3/{id}", code: 200 })),
1950
1907
  ).annotate({
1951
1908
  identifier: "DeleteConfigS3Request",
1952
1909
  }) as any as S.Schema<DeleteConfigS3Request>;
@@ -1966,15 +1923,8 @@ export interface DeleteConfigSyncRequest {
1966
1923
  export const DeleteConfigSyncRequest = /*@__PURE__*/ S.suspend(() =>
1967
1924
  S.Struct({
1968
1925
  id: S.String.pipe(T.Label()),
1969
- digest: S.optional(S.String),
1970
- }).pipe(
1971
- T.Http({
1972
- method: "DELETE",
1973
- uri: "/config/sync/{id}",
1974
- code: 200,
1975
- contentType: "form-urlencoded",
1976
- }),
1977
- ),
1926
+ digest: S.optional(S.String.pipe(T.Query())),
1927
+ }).pipe(T.Http({ method: "DELETE", uri: "/config/sync/{id}", code: 200 })),
1978
1928
  ).annotate({
1979
1929
  identifier: "DeleteConfigSyncRequest",
1980
1930
  }) as any as S.Schema<DeleteConfigSyncRequest>;
@@ -1994,13 +1944,12 @@ export interface DeleteConfigTapeBackupJobRequest {
1994
1944
  export const DeleteConfigTapeBackupJobRequest = /*@__PURE__*/ S.suspend(() =>
1995
1945
  S.Struct({
1996
1946
  id: S.String.pipe(T.Label()),
1997
- digest: S.optional(S.String),
1947
+ digest: S.optional(S.String.pipe(T.Query())),
1998
1948
  }).pipe(
1999
1949
  T.Http({
2000
1950
  method: "DELETE",
2001
1951
  uri: "/config/tape-backup-job/{id}",
2002
1952
  code: 200,
2003
- contentType: "form-urlencoded",
2004
1953
  }),
2005
1954
  ),
2006
1955
  ).annotate({
@@ -2023,13 +1972,12 @@ export const DeleteConfigTapeEncryptionKeyRequest = /*@__PURE__*/ S.suspend(
2023
1972
  () =>
2024
1973
  S.Struct({
2025
1974
  fingerprint: S.String.pipe(T.Label()),
2026
- digest: S.optional(S.String),
1975
+ digest: S.optional(S.String.pipe(T.Query())),
2027
1976
  }).pipe(
2028
1977
  T.Http({
2029
1978
  method: "DELETE",
2030
1979
  uri: "/config/tape-encryption-keys/{fingerprint}",
2031
1980
  code: 200,
2032
- contentType: "form-urlencoded",
2033
1981
  }),
2034
1982
  ),
2035
1983
  ).annotate({
@@ -2051,13 +1999,12 @@ export interface DeleteConfigTrafficControlRequest {
2051
1999
  export const DeleteConfigTrafficControlRequest = /*@__PURE__*/ S.suspend(() =>
2052
2000
  S.Struct({
2053
2001
  name: S.String.pipe(T.Label()),
2054
- digest: S.optional(S.String),
2002
+ digest: S.optional(S.String.pipe(T.Query())),
2055
2003
  }).pipe(
2056
2004
  T.Http({
2057
2005
  method: "DELETE",
2058
2006
  uri: "/config/traffic-control/{name}",
2059
2007
  code: 200,
2060
- contentType: "form-urlencoded",
2061
2008
  }),
2062
2009
  ),
2063
2010
  ).annotate({
@@ -2079,15 +2026,8 @@ export interface DeleteConfigVerifyRequest {
2079
2026
  export const DeleteConfigVerifyRequest = /*@__PURE__*/ S.suspend(() =>
2080
2027
  S.Struct({
2081
2028
  id: S.String.pipe(T.Label()),
2082
- digest: S.optional(S.String),
2083
- }).pipe(
2084
- T.Http({
2085
- method: "DELETE",
2086
- uri: "/config/verify/{id}",
2087
- code: 200,
2088
- contentType: "form-urlencoded",
2089
- }),
2090
- ),
2029
+ digest: S.optional(S.String.pipe(T.Query())),
2030
+ }).pipe(T.Http({ method: "DELETE", uri: "/config/verify/{id}", code: 200 })),
2091
2031
  ).annotate({
2092
2032
  identifier: "DeleteConfigVerifyRequest",
2093
2033
  }) as any as S.Schema<DeleteConfigVerifyRequest>;
@@ -558,13 +558,12 @@ export interface DeleteNodeCertificateCustomRequest {
558
558
  export const DeleteNodeCertificateCustomRequest = /*@__PURE__*/ S.suspend(() =>
559
559
  S.Struct({
560
560
  node: S.String.pipe(T.Label()),
561
- restart: S.optional(S.String),
561
+ restart: S.optional(S.String.pipe(T.Query())),
562
562
  }).pipe(
563
563
  T.Http({
564
564
  method: "DELETE",
565
565
  uri: "/nodes/{node}/certificates/custom",
566
566
  code: 200,
567
- contentType: "form-urlencoded",
568
567
  }),
569
568
  ),
570
569
  ).annotate({
@@ -634,13 +633,12 @@ export const DeleteNodeNetwork2Request = /*@__PURE__*/ S.suspend(() =>
634
633
  S.Struct({
635
634
  node: S.String.pipe(T.Label()),
636
635
  iface: S.String.pipe(T.Label()),
637
- digest: S.optional(S.String),
636
+ digest: S.optional(S.String.pipe(T.Query())),
638
637
  }).pipe(
639
638
  T.Http({
640
639
  method: "DELETE",
641
640
  uri: "/nodes/{node}/network/{iface}",
642
641
  code: 200,
643
- contentType: "form-urlencoded",
644
642
  }),
645
643
  ),
646
644
  ).annotate({