@leaflow/sdk 0.101.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
@@ -954,32 +954,32 @@ export declare const routes: readonly [{
954
954
  readonly service: "billing";
955
955
  readonly contract: "billing/account";
956
956
  readonly method: "POST";
957
- readonly path: "/account/v1/payment-methods/setup";
958
- readonly operationId: "create-payment-method-setup";
957
+ readonly path: "/account/v1/orders/{orderId}/checkout";
958
+ readonly operationId: "checkout-order";
959
959
  readonly securityScheme: "AccessToken";
960
960
  readonly upstreamUrl: "https://billing.leaflow.cloud";
961
961
  }, {
962
962
  readonly service: "billing";
963
963
  readonly contract: "billing/account";
964
964
  readonly method: "POST";
965
- readonly path: "/account/v1/payments";
966
- readonly operationId: "pay-together";
965
+ readonly path: "/account/v1/payment-methods/setup";
966
+ readonly operationId: "create-payment-method-setup";
967
967
  readonly securityScheme: "AccessToken";
968
968
  readonly upstreamUrl: "https://billing.leaflow.cloud";
969
969
  }, {
970
970
  readonly service: "billing";
971
971
  readonly contract: "billing/account";
972
972
  readonly method: "POST";
973
- readonly path: "/account/v1/payments/preview";
974
- readonly operationId: "preview-pay-together";
973
+ readonly path: "/account/v1/payments";
974
+ readonly operationId: "pay-together";
975
975
  readonly securityScheme: "AccessToken";
976
976
  readonly upstreamUrl: "https://billing.leaflow.cloud";
977
977
  }, {
978
978
  readonly service: "billing";
979
979
  readonly contract: "billing/account";
980
980
  readonly method: "POST";
981
- readonly path: "/account/v1/promotion-codes/preview";
982
- readonly operationId: "preview-promotion-code";
981
+ readonly path: "/account/v1/payments/preview";
982
+ readonly operationId: "preview-pay-together";
983
983
  readonly securityScheme: "AccessToken";
984
984
  readonly upstreamUrl: "https://billing.leaflow.cloud";
985
985
  }, {
@@ -1582,6 +1582,30 @@ export declare const routes: readonly [{
1582
1582
  readonly operationId: "list-availability-zones";
1583
1583
  readonly securityScheme: "ScopedToken";
1584
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";
1585
1609
  }, {
1586
1610
  readonly service: "compute";
1587
1611
  readonly contract: "compute";
@@ -1622,14 +1646,6 @@ export declare const routes: readonly [{
1622
1646
  readonly operationId: "get-snapshot";
1623
1647
  readonly securityScheme: "ScopedToken";
1624
1648
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1625
- }, {
1626
- readonly service: "compute";
1627
- readonly contract: "compute";
1628
- readonly method: "GET";
1629
- readonly path: "/api/v1/tasks/{taskId}";
1630
- readonly operationId: "get-task";
1631
- readonly securityScheme: "ScopedToken";
1632
- readonly upstreamUrl: "https://compute.leaflow.cloud";
1633
1649
  }, {
1634
1650
  readonly service: "compute";
1635
1651
  readonly contract: "compute";
@@ -1706,8 +1722,8 @@ export declare const routes: readonly [{
1706
1722
  readonly service: "compute";
1707
1723
  readonly contract: "compute";
1708
1724
  readonly method: "POST";
1709
- readonly path: "/api/v1/backups/quote";
1710
- readonly operationId: "create-backup-quote";
1725
+ readonly path: "/api/v1/backups/{backupId}/restore/quote";
1726
+ readonly operationId: "create-backup-restore-quote";
1711
1727
  readonly securityScheme: "ScopedToken";
1712
1728
  readonly upstreamUrl: "https://compute.leaflow.cloud";
1713
1729
  }, {
@@ -1726,6 +1742,14 @@ export declare const routes: readonly [{
1726
1742
  readonly operationId: "resize-disk";
1727
1743
  readonly securityScheme: "ScopedToken";
1728
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";
1729
1753
  }, {
1730
1754
  readonly service: "compute";
1731
1755
  readonly contract: "compute";
@@ -1734,6 +1758,14 @@ export declare const routes: readonly [{
1734
1758
  readonly operationId: "revert-disk";
1735
1759
  readonly securityScheme: "ScopedToken";
1736
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";
1737
1769
  }, {
1738
1770
  readonly service: "compute";
1739
1771
  readonly contract: "compute";
@@ -1742,6 +1774,22 @@ export declare const routes: readonly [{
1742
1774
  readonly operationId: "allocate-floating-ip";
1743
1775
  readonly securityScheme: "ScopedToken";
1744
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";
1745
1793
  }, {
1746
1794
  readonly service: "compute";
1747
1795
  readonly contract: "compute";
@@ -1838,6 +1886,14 @@ export declare const routes: readonly [{
1838
1886
  readonly operationId: "resize-instance";
1839
1887
  readonly securityScheme: "ScopedToken";
1840
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";
1841
1897
  }, {
1842
1898
  readonly service: "compute";
1843
1899
  readonly contract: "compute";
@@ -1854,6 +1910,14 @@ export declare const routes: readonly [{
1854
1910
  readonly operationId: "stop-instance";
1855
1911
  readonly securityScheme: "ScopedToken";
1856
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";
1857
1921
  }, {
1858
1922
  readonly service: "compute";
1859
1923
  readonly contract: "compute";
@@ -1918,6 +1982,46 @@ export declare const routes: readonly [{
1918
1982
  readonly operationId: "create-subnet";
1919
1983
  readonly securityScheme: "ScopedToken";
1920
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";
1921
2025
  }, {
1922
2026
  readonly service: "compute";
1923
2027
  readonly contract: "compute";
@@ -1974,6 +2078,14 @@ export declare const routes: readonly [{
1974
2078
  readonly operationId: "set-instance-notes";
1975
2079
  readonly securityScheme: "ScopedToken";
1976
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";
1977
2089
  }, {
1978
2090
  readonly service: "dns";
1979
2091
  readonly contract: "dns";
package/dist/routes.js CHANGED
@@ -1075,8 +1075,8 @@ export const routes = [
1075
1075
  service: "billing",
1076
1076
  contract: "billing/account",
1077
1077
  method: "POST",
1078
- path: "/account/v1/payment-methods/setup",
1079
- operationId: "create-payment-method-setup",
1078
+ path: "/account/v1/orders/{orderId}/checkout",
1079
+ operationId: "checkout-order",
1080
1080
  securityScheme: "AccessToken",
1081
1081
  upstreamUrl: "https://billing.leaflow.cloud",
1082
1082
  },
@@ -1084,8 +1084,8 @@ export const routes = [
1084
1084
  service: "billing",
1085
1085
  contract: "billing/account",
1086
1086
  method: "POST",
1087
- path: "/account/v1/payments",
1088
- operationId: "pay-together",
1087
+ path: "/account/v1/payment-methods/setup",
1088
+ operationId: "create-payment-method-setup",
1089
1089
  securityScheme: "AccessToken",
1090
1090
  upstreamUrl: "https://billing.leaflow.cloud",
1091
1091
  },
@@ -1093,8 +1093,8 @@ export const routes = [
1093
1093
  service: "billing",
1094
1094
  contract: "billing/account",
1095
1095
  method: "POST",
1096
- path: "/account/v1/payments/preview",
1097
- operationId: "preview-pay-together",
1096
+ path: "/account/v1/payments",
1097
+ operationId: "pay-together",
1098
1098
  securityScheme: "AccessToken",
1099
1099
  upstreamUrl: "https://billing.leaflow.cloud",
1100
1100
  },
@@ -1102,8 +1102,8 @@ export const routes = [
1102
1102
  service: "billing",
1103
1103
  contract: "billing/account",
1104
1104
  method: "POST",
1105
- path: "/account/v1/promotion-codes/preview",
1106
- operationId: "preview-promotion-code",
1105
+ path: "/account/v1/payments/preview",
1106
+ operationId: "preview-pay-together",
1107
1107
  securityScheme: "AccessToken",
1108
1108
  upstreamUrl: "https://billing.leaflow.cloud",
1109
1109
  },
@@ -1782,6 +1782,33 @@ export const routes = [
1782
1782
  securityScheme: "ScopedToken",
1783
1783
  upstreamUrl: "https://compute.leaflow.cloud",
1784
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
+ },
1785
1812
  {
1786
1813
  service: "compute",
1787
1814
  contract: "compute",
@@ -1827,15 +1854,6 @@ export const routes = [
1827
1854
  securityScheme: "ScopedToken",
1828
1855
  upstreamUrl: "https://compute.leaflow.cloud",
1829
1856
  },
1830
- {
1831
- service: "compute",
1832
- contract: "compute",
1833
- method: "GET",
1834
- path: "/api/v1/tasks/{taskId}",
1835
- operationId: "get-task",
1836
- securityScheme: "ScopedToken",
1837
- upstreamUrl: "https://compute.leaflow.cloud",
1838
- },
1839
1857
  {
1840
1858
  service: "compute",
1841
1859
  contract: "compute",
@@ -1921,8 +1939,8 @@ export const routes = [
1921
1939
  service: "compute",
1922
1940
  contract: "compute",
1923
1941
  method: "POST",
1924
- path: "/api/v1/backups/quote",
1925
- operationId: "create-backup-quote",
1942
+ path: "/api/v1/backups/{backupId}/restore/quote",
1943
+ operationId: "create-backup-restore-quote",
1926
1944
  securityScheme: "ScopedToken",
1927
1945
  upstreamUrl: "https://compute.leaflow.cloud",
1928
1946
  },
@@ -1944,6 +1962,15 @@ export const routes = [
1944
1962
  securityScheme: "ScopedToken",
1945
1963
  upstreamUrl: "https://compute.leaflow.cloud",
1946
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
+ },
1947
1974
  {
1948
1975
  service: "compute",
1949
1976
  contract: "compute",
@@ -1953,6 +1980,15 @@ export const routes = [
1953
1980
  securityScheme: "ScopedToken",
1954
1981
  upstreamUrl: "https://compute.leaflow.cloud",
1955
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
+ },
1956
1992
  {
1957
1993
  service: "compute",
1958
1994
  contract: "compute",
@@ -1962,6 +1998,24 @@ export const routes = [
1962
1998
  securityScheme: "ScopedToken",
1963
1999
  upstreamUrl: "https://compute.leaflow.cloud",
1964
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
+ },
1965
2019
  {
1966
2020
  service: "compute",
1967
2021
  contract: "compute",
@@ -2070,6 +2124,15 @@ export const routes = [
2070
2124
  securityScheme: "ScopedToken",
2071
2125
  upstreamUrl: "https://compute.leaflow.cloud",
2072
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
+ },
2073
2136
  {
2074
2137
  service: "compute",
2075
2138
  contract: "compute",
@@ -2088,6 +2151,15 @@ export const routes = [
2088
2151
  securityScheme: "ScopedToken",
2089
2152
  upstreamUrl: "https://compute.leaflow.cloud",
2090
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
+ },
2091
2163
  {
2092
2164
  service: "compute",
2093
2165
  contract: "compute",
@@ -2160,6 +2232,51 @@ export const routes = [
2160
2232
  securityScheme: "ScopedToken",
2161
2233
  upstreamUrl: "https://compute.leaflow.cloud",
2162
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
+ },
2163
2280
  {
2164
2281
  service: "compute",
2165
2282
  contract: "compute",
@@ -2223,6 +2340,15 @@ export const routes = [
2223
2340
  securityScheme: "ScopedToken",
2224
2341
  upstreamUrl: "https://compute.leaflow.cloud",
2225
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
+ },
2226
2352
  {
2227
2353
  service: "dns",
2228
2354
  contract: "dns",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.101.0",
3
+ "version": "0.103.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {