@leaflow/sdk 0.102.0 → 0.103.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.
package/dist/routes.d.ts CHANGED
@@ -938,8 +938,8 @@ export declare const routes: readonly [{
938
938
  readonly service: "billing";
939
939
  readonly contract: "billing/account";
940
940
  readonly method: "POST";
941
- readonly path: "/account/v1/invoices/{invoiceId}/collect-payment";
942
- readonly operationId: "collect-invoice-payment";
941
+ readonly path: "/account/v1/invoices/{invoiceId}/pay";
942
+ readonly operationId: "pay-invoice";
943
943
  readonly securityScheme: "AccessToken";
944
944
  readonly upstreamUrl: "https://billing.leaflow.cloud";
945
945
  }, {
@@ -982,14 +982,6 @@ export declare const routes: readonly [{
982
982
  readonly operationId: "preview-pay-together";
983
983
  readonly securityScheme: "AccessToken";
984
984
  readonly upstreamUrl: "https://billing.leaflow.cloud";
985
- }, {
986
- readonly service: "billing";
987
- readonly contract: "billing/account";
988
- readonly method: "POST";
989
- readonly path: "/account/v1/promotion-codes/preview";
990
- readonly operationId: "preview-promotion-code";
991
- readonly securityScheme: "AccessToken";
992
- readonly upstreamUrl: "https://billing.leaflow.cloud";
993
985
  }, {
994
986
  readonly service: "billing";
995
987
  readonly contract: "billing/account";
@@ -1590,6 +1582,30 @@ export declare const routes: readonly [{
1590
1582
  readonly operationId: "list-availability-zones";
1591
1583
  readonly securityScheme: "ScopedToken";
1592
1584
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1585
+ }, {
1586
+ readonly service: "compute";
1587
+ readonly contract: "compute";
1588
+ readonly method: "GET";
1589
+ readonly path: "/api/v1/regions/{regionId}/backup-capacity-packs";
1590
+ readonly operationId: "list-backup-capacity-packs";
1591
+ readonly securityScheme: "ScopedToken";
1592
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1593
+ }, {
1594
+ readonly service: "compute";
1595
+ readonly contract: "compute";
1596
+ readonly method: "GET";
1597
+ readonly path: "/api/v1/regions/{regionId}/backup-service";
1598
+ readonly operationId: "get-backup-service";
1599
+ readonly securityScheme: "ScopedToken";
1600
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1601
+ }, {
1602
+ readonly service: "compute";
1603
+ readonly contract: "compute";
1604
+ readonly method: "GET";
1605
+ readonly path: "/api/v1/regions/{regionId}/snapshot-quota";
1606
+ readonly operationId: "get-snapshot-quota";
1607
+ readonly securityScheme: "ScopedToken";
1608
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1593
1609
  }, {
1594
1610
  readonly service: "compute";
1595
1611
  readonly contract: "compute";
@@ -1630,14 +1646,6 @@ export declare const routes: readonly [{
1630
1646
  readonly operationId: "get-snapshot";
1631
1647
  readonly securityScheme: "ScopedToken";
1632
1648
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1633
- }, {
1634
- readonly service: "compute";
1635
- readonly contract: "compute";
1636
- readonly method: "GET";
1637
- readonly path: "/api/v1/tasks/{taskId}";
1638
- readonly operationId: "get-task";
1639
- readonly securityScheme: "ScopedToken";
1640
- readonly upstreamUrl: "https://compute.leaflow.cloud";
1641
1649
  }, {
1642
1650
  readonly service: "compute";
1643
1651
  readonly contract: "compute";
@@ -1714,8 +1722,8 @@ export declare const routes: readonly [{
1714
1722
  readonly service: "compute";
1715
1723
  readonly contract: "compute";
1716
1724
  readonly method: "POST";
1717
- readonly path: "/api/v1/backups/quote";
1718
- readonly operationId: "create-backup-quote";
1725
+ readonly path: "/api/v1/backups/{backupId}/restore/quote";
1726
+ readonly operationId: "create-backup-restore-quote";
1719
1727
  readonly securityScheme: "ScopedToken";
1720
1728
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1721
1729
  }, {
@@ -1734,6 +1742,14 @@ export declare const routes: readonly [{
1734
1742
  readonly operationId: "resize-disk";
1735
1743
  readonly securityScheme: "ScopedToken";
1736
1744
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1745
+ }, {
1746
+ readonly service: "compute";
1747
+ readonly contract: "compute";
1748
+ readonly method: "POST";
1749
+ readonly path: "/api/v1/disks/{diskId}/resize/quote";
1750
+ readonly operationId: "create-disk-resize-quote";
1751
+ readonly securityScheme: "ScopedToken";
1752
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1737
1753
  }, {
1738
1754
  readonly service: "compute";
1739
1755
  readonly contract: "compute";
@@ -1742,6 +1758,14 @@ export declare const routes: readonly [{
1742
1758
  readonly operationId: "revert-disk";
1743
1759
  readonly securityScheme: "ScopedToken";
1744
1760
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1761
+ }, {
1762
+ readonly service: "compute";
1763
+ readonly contract: "compute";
1764
+ readonly method: "POST";
1765
+ readonly path: "/api/v1/disks/quote";
1766
+ readonly operationId: "create-disk-quote";
1767
+ readonly securityScheme: "ScopedToken";
1768
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1745
1769
  }, {
1746
1770
  readonly service: "compute";
1747
1771
  readonly contract: "compute";
@@ -1750,6 +1774,22 @@ export declare const routes: readonly [{
1750
1774
  readonly operationId: "allocate-floating-ip";
1751
1775
  readonly securityScheme: "ScopedToken";
1752
1776
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1777
+ }, {
1778
+ readonly service: "compute";
1779
+ readonly contract: "compute";
1780
+ readonly method: "POST";
1781
+ readonly path: "/api/v1/floating-ips/{floatingIpId}/bandwidth/quote";
1782
+ readonly operationId: "create-floating-ip-bandwidth-quote";
1783
+ readonly securityScheme: "ScopedToken";
1784
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1785
+ }, {
1786
+ readonly service: "compute";
1787
+ readonly contract: "compute";
1788
+ readonly method: "POST";
1789
+ readonly path: "/api/v1/floating-ips/quote";
1790
+ readonly operationId: "create-floating-ip-quote";
1791
+ readonly securityScheme: "ScopedToken";
1792
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1753
1793
  }, {
1754
1794
  readonly service: "compute";
1755
1795
  readonly contract: "compute";
@@ -1846,6 +1886,14 @@ export declare const routes: readonly [{
1846
1886
  readonly operationId: "resize-instance";
1847
1887
  readonly securityScheme: "ScopedToken";
1848
1888
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1889
+ }, {
1890
+ readonly service: "compute";
1891
+ readonly contract: "compute";
1892
+ readonly method: "POST";
1893
+ readonly path: "/api/v1/instances/{instanceId}/resize/quote";
1894
+ readonly operationId: "create-instance-resize-quote";
1895
+ readonly securityScheme: "ScopedToken";
1896
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1849
1897
  }, {
1850
1898
  readonly service: "compute";
1851
1899
  readonly contract: "compute";
@@ -1862,6 +1910,14 @@ export declare const routes: readonly [{
1862
1910
  readonly operationId: "stop-instance";
1863
1911
  readonly securityScheme: "ScopedToken";
1864
1912
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1913
+ }, {
1914
+ readonly service: "compute";
1915
+ readonly contract: "compute";
1916
+ readonly method: "POST";
1917
+ readonly path: "/api/v1/instances/quote";
1918
+ readonly operationId: "create-instance-quote";
1919
+ readonly securityScheme: "ScopedToken";
1920
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1865
1921
  }, {
1866
1922
  readonly service: "compute";
1867
1923
  readonly contract: "compute";
@@ -1926,6 +1982,46 @@ export declare const routes: readonly [{
1926
1982
  readonly operationId: "create-subnet";
1927
1983
  readonly securityScheme: "ScopedToken";
1928
1984
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1985
+ }, {
1986
+ readonly service: "compute";
1987
+ readonly contract: "compute";
1988
+ readonly method: "POST";
1989
+ readonly path: "/api/v1/regions/{regionId}/backup-capacity-packs";
1990
+ readonly operationId: "create-backup-capacity-pack";
1991
+ readonly securityScheme: "ScopedToken";
1992
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1993
+ }, {
1994
+ readonly service: "compute";
1995
+ readonly contract: "compute";
1996
+ readonly method: "POST";
1997
+ readonly path: "/api/v1/regions/{regionId}/backup-capacity-packs/quote";
1998
+ readonly operationId: "create-backup-capacity-pack-quote";
1999
+ readonly securityScheme: "ScopedToken";
2000
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
2001
+ }, {
2002
+ readonly service: "compute";
2003
+ readonly contract: "compute";
2004
+ readonly method: "POST";
2005
+ readonly path: "/api/v1/regions/{regionId}/backup-service";
2006
+ readonly operationId: "create-backup-service";
2007
+ readonly securityScheme: "ScopedToken";
2008
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
2009
+ }, {
2010
+ readonly service: "compute";
2011
+ readonly contract: "compute";
2012
+ readonly method: "POST";
2013
+ readonly path: "/api/v1/regions/{regionId}/backup-service/quote";
2014
+ readonly operationId: "create-backup-service-quote";
2015
+ readonly securityScheme: "ScopedToken";
2016
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
2017
+ }, {
2018
+ readonly service: "compute";
2019
+ readonly contract: "compute";
2020
+ readonly method: "POST";
2021
+ readonly path: "/api/v1/regions/{regionId}/snapshot-quota/quote";
2022
+ readonly operationId: "create-snapshot-quota-quote";
2023
+ readonly securityScheme: "ScopedToken";
2024
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1929
2025
  }, {
1930
2026
  readonly service: "compute";
1931
2027
  readonly contract: "compute";
@@ -1982,6 +2078,14 @@ export declare const routes: readonly [{
1982
2078
  readonly operationId: "set-instance-notes";
1983
2079
  readonly securityScheme: "ScopedToken";
1984
2080
  readonly upstreamUrl: "https://compute.leaflow.cloud";
2081
+ }, {
2082
+ readonly service: "compute";
2083
+ readonly contract: "compute";
2084
+ readonly method: "PUT";
2085
+ readonly path: "/api/v1/regions/{regionId}/snapshot-quota";
2086
+ readonly operationId: "set-snapshot-quota";
2087
+ readonly securityScheme: "ScopedToken";
2088
+ readonly upstreamUrl: "https://compute.leaflow.cloud";
1985
2089
  }, {
1986
2090
  readonly service: "dns";
1987
2091
  readonly contract: "dns";
package/dist/routes.js CHANGED
@@ -1057,8 +1057,8 @@ export const routes = [
1057
1057
  service: "billing",
1058
1058
  contract: "billing/account",
1059
1059
  method: "POST",
1060
- path: "/account/v1/invoices/{invoiceId}/collect-payment",
1061
- operationId: "collect-invoice-payment",
1060
+ path: "/account/v1/invoices/{invoiceId}/pay",
1061
+ operationId: "pay-invoice",
1062
1062
  securityScheme: "AccessToken",
1063
1063
  upstreamUrl: "https://billing.leaflow.cloud",
1064
1064
  },
@@ -1107,15 +1107,6 @@ export const routes = [
1107
1107
  securityScheme: "AccessToken",
1108
1108
  upstreamUrl: "https://billing.leaflow.cloud",
1109
1109
  },
1110
- {
1111
- service: "billing",
1112
- contract: "billing/account",
1113
- method: "POST",
1114
- path: "/account/v1/promotion-codes/preview",
1115
- operationId: "preview-promotion-code",
1116
- securityScheme: "AccessToken",
1117
- upstreamUrl: "https://billing.leaflow.cloud",
1118
- },
1119
1110
  {
1120
1111
  service: "billing",
1121
1112
  contract: "billing/account",
@@ -1791,6 +1782,33 @@ export const routes = [
1791
1782
  securityScheme: "ScopedToken",
1792
1783
  upstreamUrl: "https://compute.leaflow.cloud",
1793
1784
  },
1785
+ {
1786
+ service: "compute",
1787
+ contract: "compute",
1788
+ method: "GET",
1789
+ path: "/api/v1/regions/{regionId}/backup-capacity-packs",
1790
+ operationId: "list-backup-capacity-packs",
1791
+ securityScheme: "ScopedToken",
1792
+ upstreamUrl: "https://compute.leaflow.cloud",
1793
+ },
1794
+ {
1795
+ service: "compute",
1796
+ contract: "compute",
1797
+ method: "GET",
1798
+ path: "/api/v1/regions/{regionId}/backup-service",
1799
+ operationId: "get-backup-service",
1800
+ securityScheme: "ScopedToken",
1801
+ upstreamUrl: "https://compute.leaflow.cloud",
1802
+ },
1803
+ {
1804
+ service: "compute",
1805
+ contract: "compute",
1806
+ method: "GET",
1807
+ path: "/api/v1/regions/{regionId}/snapshot-quota",
1808
+ operationId: "get-snapshot-quota",
1809
+ securityScheme: "ScopedToken",
1810
+ upstreamUrl: "https://compute.leaflow.cloud",
1811
+ },
1794
1812
  {
1795
1813
  service: "compute",
1796
1814
  contract: "compute",
@@ -1836,15 +1854,6 @@ export const routes = [
1836
1854
  securityScheme: "ScopedToken",
1837
1855
  upstreamUrl: "https://compute.leaflow.cloud",
1838
1856
  },
1839
- {
1840
- service: "compute",
1841
- contract: "compute",
1842
- method: "GET",
1843
- path: "/api/v1/tasks/{taskId}",
1844
- operationId: "get-task",
1845
- securityScheme: "ScopedToken",
1846
- upstreamUrl: "https://compute.leaflow.cloud",
1847
- },
1848
1857
  {
1849
1858
  service: "compute",
1850
1859
  contract: "compute",
@@ -1930,8 +1939,8 @@ export const routes = [
1930
1939
  service: "compute",
1931
1940
  contract: "compute",
1932
1941
  method: "POST",
1933
- path: "/api/v1/backups/quote",
1934
- operationId: "create-backup-quote",
1942
+ path: "/api/v1/backups/{backupId}/restore/quote",
1943
+ operationId: "create-backup-restore-quote",
1935
1944
  securityScheme: "ScopedToken",
1936
1945
  upstreamUrl: "https://compute.leaflow.cloud",
1937
1946
  },
@@ -1953,6 +1962,15 @@ export const routes = [
1953
1962
  securityScheme: "ScopedToken",
1954
1963
  upstreamUrl: "https://compute.leaflow.cloud",
1955
1964
  },
1965
+ {
1966
+ service: "compute",
1967
+ contract: "compute",
1968
+ method: "POST",
1969
+ path: "/api/v1/disks/{diskId}/resize/quote",
1970
+ operationId: "create-disk-resize-quote",
1971
+ securityScheme: "ScopedToken",
1972
+ upstreamUrl: "https://compute.leaflow.cloud",
1973
+ },
1956
1974
  {
1957
1975
  service: "compute",
1958
1976
  contract: "compute",
@@ -1962,6 +1980,15 @@ export const routes = [
1962
1980
  securityScheme: "ScopedToken",
1963
1981
  upstreamUrl: "https://compute.leaflow.cloud",
1964
1982
  },
1983
+ {
1984
+ service: "compute",
1985
+ contract: "compute",
1986
+ method: "POST",
1987
+ path: "/api/v1/disks/quote",
1988
+ operationId: "create-disk-quote",
1989
+ securityScheme: "ScopedToken",
1990
+ upstreamUrl: "https://compute.leaflow.cloud",
1991
+ },
1965
1992
  {
1966
1993
  service: "compute",
1967
1994
  contract: "compute",
@@ -1971,6 +1998,24 @@ export const routes = [
1971
1998
  securityScheme: "ScopedToken",
1972
1999
  upstreamUrl: "https://compute.leaflow.cloud",
1973
2000
  },
2001
+ {
2002
+ service: "compute",
2003
+ contract: "compute",
2004
+ method: "POST",
2005
+ path: "/api/v1/floating-ips/{floatingIpId}/bandwidth/quote",
2006
+ operationId: "create-floating-ip-bandwidth-quote",
2007
+ securityScheme: "ScopedToken",
2008
+ upstreamUrl: "https://compute.leaflow.cloud",
2009
+ },
2010
+ {
2011
+ service: "compute",
2012
+ contract: "compute",
2013
+ method: "POST",
2014
+ path: "/api/v1/floating-ips/quote",
2015
+ operationId: "create-floating-ip-quote",
2016
+ securityScheme: "ScopedToken",
2017
+ upstreamUrl: "https://compute.leaflow.cloud",
2018
+ },
1974
2019
  {
1975
2020
  service: "compute",
1976
2021
  contract: "compute",
@@ -2079,6 +2124,15 @@ export const routes = [
2079
2124
  securityScheme: "ScopedToken",
2080
2125
  upstreamUrl: "https://compute.leaflow.cloud",
2081
2126
  },
2127
+ {
2128
+ service: "compute",
2129
+ contract: "compute",
2130
+ method: "POST",
2131
+ path: "/api/v1/instances/{instanceId}/resize/quote",
2132
+ operationId: "create-instance-resize-quote",
2133
+ securityScheme: "ScopedToken",
2134
+ upstreamUrl: "https://compute.leaflow.cloud",
2135
+ },
2082
2136
  {
2083
2137
  service: "compute",
2084
2138
  contract: "compute",
@@ -2097,6 +2151,15 @@ export const routes = [
2097
2151
  securityScheme: "ScopedToken",
2098
2152
  upstreamUrl: "https://compute.leaflow.cloud",
2099
2153
  },
2154
+ {
2155
+ service: "compute",
2156
+ contract: "compute",
2157
+ method: "POST",
2158
+ path: "/api/v1/instances/quote",
2159
+ operationId: "create-instance-quote",
2160
+ securityScheme: "ScopedToken",
2161
+ upstreamUrl: "https://compute.leaflow.cloud",
2162
+ },
2100
2163
  {
2101
2164
  service: "compute",
2102
2165
  contract: "compute",
@@ -2169,6 +2232,51 @@ export const routes = [
2169
2232
  securityScheme: "ScopedToken",
2170
2233
  upstreamUrl: "https://compute.leaflow.cloud",
2171
2234
  },
2235
+ {
2236
+ service: "compute",
2237
+ contract: "compute",
2238
+ method: "POST",
2239
+ path: "/api/v1/regions/{regionId}/backup-capacity-packs",
2240
+ operationId: "create-backup-capacity-pack",
2241
+ securityScheme: "ScopedToken",
2242
+ upstreamUrl: "https://compute.leaflow.cloud",
2243
+ },
2244
+ {
2245
+ service: "compute",
2246
+ contract: "compute",
2247
+ method: "POST",
2248
+ path: "/api/v1/regions/{regionId}/backup-capacity-packs/quote",
2249
+ operationId: "create-backup-capacity-pack-quote",
2250
+ securityScheme: "ScopedToken",
2251
+ upstreamUrl: "https://compute.leaflow.cloud",
2252
+ },
2253
+ {
2254
+ service: "compute",
2255
+ contract: "compute",
2256
+ method: "POST",
2257
+ path: "/api/v1/regions/{regionId}/backup-service",
2258
+ operationId: "create-backup-service",
2259
+ securityScheme: "ScopedToken",
2260
+ upstreamUrl: "https://compute.leaflow.cloud",
2261
+ },
2262
+ {
2263
+ service: "compute",
2264
+ contract: "compute",
2265
+ method: "POST",
2266
+ path: "/api/v1/regions/{regionId}/backup-service/quote",
2267
+ operationId: "create-backup-service-quote",
2268
+ securityScheme: "ScopedToken",
2269
+ upstreamUrl: "https://compute.leaflow.cloud",
2270
+ },
2271
+ {
2272
+ service: "compute",
2273
+ contract: "compute",
2274
+ method: "POST",
2275
+ path: "/api/v1/regions/{regionId}/snapshot-quota/quote",
2276
+ operationId: "create-snapshot-quota-quote",
2277
+ securityScheme: "ScopedToken",
2278
+ upstreamUrl: "https://compute.leaflow.cloud",
2279
+ },
2172
2280
  {
2173
2281
  service: "compute",
2174
2282
  contract: "compute",
@@ -2232,6 +2340,15 @@ export const routes = [
2232
2340
  securityScheme: "ScopedToken",
2233
2341
  upstreamUrl: "https://compute.leaflow.cloud",
2234
2342
  },
2343
+ {
2344
+ service: "compute",
2345
+ contract: "compute",
2346
+ method: "PUT",
2347
+ path: "/api/v1/regions/{regionId}/snapshot-quota",
2348
+ operationId: "set-snapshot-quota",
2349
+ securityScheme: "ScopedToken",
2350
+ upstreamUrl: "https://compute.leaflow.cloud",
2351
+ },
2235
2352
  {
2236
2353
  service: "dns",
2237
2354
  contract: "dns",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.102.0",
3
+ "version": "0.103.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {