@leaflow/sdk 0.0.0-dev.401.gdfcdac0 → 0.0.0-dev.403.g86286e3
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.
|
@@ -1146,7 +1146,7 @@ export const setInstanceNotes = async (instanceId, setInstanceNotesRequestBody,
|
|
|
1146
1146
|
return { data, status: res.status, headers: res.headers };
|
|
1147
1147
|
};
|
|
1148
1148
|
export const getResetInstancePasswordUrl = (instanceId) => {
|
|
1149
|
-
return `https://compute.leaflow.cloud/api/v1/instances/${encodeURIComponent(String(instanceId))}
|
|
1149
|
+
return `https://compute.leaflow.cloud/api/v1/instances/${encodeURIComponent(String(instanceId))}:resetPassword`;
|
|
1150
1150
|
};
|
|
1151
1151
|
/**
|
|
1152
1152
|
* Changes the root password without a reboot. The instance must be running.
|
|
@@ -1801,7 +1801,7 @@ export const getPrivateNetworkIpv6 = async (privateNetworkId, options, fetchFn)
|
|
|
1801
1801
|
return { data, status: res.status, headers: res.headers };
|
|
1802
1802
|
};
|
|
1803
1803
|
export const getEnablePrivateNetworkIpv6Url = (privateNetworkId) => {
|
|
1804
|
-
return `https://compute.leaflow.cloud/api/v1/private-networks/${encodeURIComponent(String(privateNetworkId))}
|
|
1804
|
+
return `https://compute.leaflow.cloud/api/v1/private-networks/${encodeURIComponent(String(privateNetworkId))}:enableIpv6`;
|
|
1805
1805
|
};
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Allocates an IPv6 prefix to the private network. Addresses are assigned to instances by the network itself, can be neither requested nor released individually, and consume no public IPv4 address.
|
|
@@ -1819,7 +1819,7 @@ export const enablePrivateNetworkIpv6 = async (privateNetworkId, options, fetchF
|
|
|
1819
1819
|
return { data, status: res.status, headers: res.headers };
|
|
1820
1820
|
};
|
|
1821
1821
|
export const getDisablePrivateNetworkIpv6Url = (privateNetworkId) => {
|
|
1822
|
-
return `https://compute.leaflow.cloud/api/v1/private-networks/${encodeURIComponent(String(privateNetworkId))}
|
|
1822
|
+
return `https://compute.leaflow.cloud/api/v1/private-networks/${encodeURIComponent(String(privateNetworkId))}:disableIpv6`;
|
|
1823
1823
|
};
|
|
1824
1824
|
/**
|
|
1825
1825
|
* A released prefix is not re-allocated immediately.
|
|
@@ -1828,7 +1828,7 @@ export const getDisablePrivateNetworkIpv6Url = (privateNetworkId) => {
|
|
|
1828
1828
|
export const disablePrivateNetworkIpv6 = async (privateNetworkId, options, fetchFn) => {
|
|
1829
1829
|
const res = await (fetchFn ?? fetch)(getDisablePrivateNetworkIpv6Url(privateNetworkId), {
|
|
1830
1830
|
...options,
|
|
1831
|
-
method: "
|
|
1831
|
+
method: "POST",
|
|
1832
1832
|
});
|
|
1833
1833
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1834
1834
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -137,7 +137,7 @@ export const deleteCredential = async (credentialId, options, fetchFn) => {
|
|
|
137
137
|
return { data, status: res.status, headers: res.headers };
|
|
138
138
|
};
|
|
139
139
|
export const getVerifyCredentialUrl = (credentialId) => {
|
|
140
|
-
return `https://dns.leaflow.cloud/api/v1/credentials/${encodeURIComponent(String(credentialId))}
|
|
140
|
+
return `https://dns.leaflow.cloud/api/v1/credentials/${encodeURIComponent(String(credentialId))}:verify`;
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
143
143
|
* Checks the credential against the provider and records the outcome in `last_verified_at`
|
|
@@ -609,7 +609,7 @@ export const disableServerMonitoring = async (serverId, options, fetchFn) => {
|
|
|
609
609
|
return { data, status: res.status, headers: res.headers };
|
|
610
610
|
};
|
|
611
611
|
export const getRotateAgentPskUrl = (serverId) => {
|
|
612
|
-
return `https://monitoring.leaflow.cloud/api/v1/servers/${encodeURIComponent(String(serverId))}
|
|
612
|
+
return `https://monitoring.leaflow.cloud/api/v1/servers/${encodeURIComponent(String(serverId))}:rotatePsk`;
|
|
613
613
|
};
|
|
614
614
|
/**
|
|
615
615
|
* The agent configuration must be updated to match, otherwise the machine loses contact immediately. The new key is likewise **returned in clear text only in this response**.
|
package/dist/routes.d.ts
CHANGED
|
@@ -2035,7 +2035,7 @@ export declare const routes: readonly [{
|
|
|
2035
2035
|
readonly service: "compute";
|
|
2036
2036
|
readonly contract: "compute";
|
|
2037
2037
|
readonly method: "POST";
|
|
2038
|
-
readonly path: "/api/v1/instances/{instanceId}
|
|
2038
|
+
readonly path: "/api/v1/instances/{instanceId}:resetPassword";
|
|
2039
2039
|
readonly operationId: "reset-instance-password";
|
|
2040
2040
|
readonly securityScheme: "ScopedToken";
|
|
2041
2041
|
readonly upstreamUrl: "https://compute.leaflow.cloud";
|
|
@@ -2227,15 +2227,15 @@ export declare const routes: readonly [{
|
|
|
2227
2227
|
readonly service: "compute";
|
|
2228
2228
|
readonly contract: "compute";
|
|
2229
2229
|
readonly method: "POST";
|
|
2230
|
-
readonly path: "/api/v1/private-networks/{privateNetworkId}
|
|
2230
|
+
readonly path: "/api/v1/private-networks/{privateNetworkId}:enableIpv6";
|
|
2231
2231
|
readonly operationId: "enable-private-network-ipv6";
|
|
2232
2232
|
readonly securityScheme: "ScopedToken";
|
|
2233
2233
|
readonly upstreamUrl: "https://compute.leaflow.cloud";
|
|
2234
2234
|
}, {
|
|
2235
2235
|
readonly service: "compute";
|
|
2236
2236
|
readonly contract: "compute";
|
|
2237
|
-
readonly method: "
|
|
2238
|
-
readonly path: "/api/v1/private-networks/{privateNetworkId}
|
|
2237
|
+
readonly method: "POST";
|
|
2238
|
+
readonly path: "/api/v1/private-networks/{privateNetworkId}:disableIpv6";
|
|
2239
2239
|
readonly operationId: "disable-private-network-ipv6";
|
|
2240
2240
|
readonly securityScheme: "ScopedToken";
|
|
2241
2241
|
readonly upstreamUrl: "https://compute.leaflow.cloud";
|
|
@@ -2571,7 +2571,7 @@ export declare const routes: readonly [{
|
|
|
2571
2571
|
readonly service: "dns";
|
|
2572
2572
|
readonly contract: "dns";
|
|
2573
2573
|
readonly method: "POST";
|
|
2574
|
-
readonly path: "/api/v1/credentials/{credentialId}
|
|
2574
|
+
readonly path: "/api/v1/credentials/{credentialId}:verify";
|
|
2575
2575
|
readonly operationId: "verify-credential";
|
|
2576
2576
|
readonly securityScheme: "ScopedToken";
|
|
2577
2577
|
readonly upstreamUrl: "https://dns.leaflow.cloud";
|
|
@@ -3163,7 +3163,7 @@ export declare const routes: readonly [{
|
|
|
3163
3163
|
readonly service: "monitoring";
|
|
3164
3164
|
readonly contract: "monitoring";
|
|
3165
3165
|
readonly method: "POST";
|
|
3166
|
-
readonly path: "/api/v1/servers/{serverId}
|
|
3166
|
+
readonly path: "/api/v1/servers/{serverId}:rotatePsk";
|
|
3167
3167
|
readonly operationId: "rotate-agent-psk";
|
|
3168
3168
|
readonly securityScheme: "ScopedToken";
|
|
3169
3169
|
readonly upstreamUrl: "https://monitoring.leaflow.cloud";
|
package/dist/routes.js
CHANGED
|
@@ -2291,7 +2291,7 @@ export const routes = [
|
|
|
2291
2291
|
service: "compute",
|
|
2292
2292
|
contract: "compute",
|
|
2293
2293
|
method: "POST",
|
|
2294
|
-
path: "/api/v1/instances/{instanceId}
|
|
2294
|
+
path: "/api/v1/instances/{instanceId}:resetPassword",
|
|
2295
2295
|
operationId: "reset-instance-password",
|
|
2296
2296
|
securityScheme: "ScopedToken",
|
|
2297
2297
|
upstreamUrl: "https://compute.leaflow.cloud",
|
|
@@ -2507,7 +2507,7 @@ export const routes = [
|
|
|
2507
2507
|
service: "compute",
|
|
2508
2508
|
contract: "compute",
|
|
2509
2509
|
method: "POST",
|
|
2510
|
-
path: "/api/v1/private-networks/{privateNetworkId}
|
|
2510
|
+
path: "/api/v1/private-networks/{privateNetworkId}:enableIpv6",
|
|
2511
2511
|
operationId: "enable-private-network-ipv6",
|
|
2512
2512
|
securityScheme: "ScopedToken",
|
|
2513
2513
|
upstreamUrl: "https://compute.leaflow.cloud",
|
|
@@ -2515,8 +2515,8 @@ export const routes = [
|
|
|
2515
2515
|
{
|
|
2516
2516
|
service: "compute",
|
|
2517
2517
|
contract: "compute",
|
|
2518
|
-
method: "
|
|
2519
|
-
path: "/api/v1/private-networks/{privateNetworkId}
|
|
2518
|
+
method: "POST",
|
|
2519
|
+
path: "/api/v1/private-networks/{privateNetworkId}:disableIpv6",
|
|
2520
2520
|
operationId: "disable-private-network-ipv6",
|
|
2521
2521
|
securityScheme: "ScopedToken",
|
|
2522
2522
|
upstreamUrl: "https://compute.leaflow.cloud",
|
|
@@ -2894,7 +2894,7 @@ export const routes = [
|
|
|
2894
2894
|
service: "dns",
|
|
2895
2895
|
contract: "dns",
|
|
2896
2896
|
method: "POST",
|
|
2897
|
-
path: "/api/v1/credentials/{credentialId}
|
|
2897
|
+
path: "/api/v1/credentials/{credentialId}:verify",
|
|
2898
2898
|
operationId: "verify-credential",
|
|
2899
2899
|
securityScheme: "ScopedToken",
|
|
2900
2900
|
upstreamUrl: "https://dns.leaflow.cloud",
|
|
@@ -3560,7 +3560,7 @@ export const routes = [
|
|
|
3560
3560
|
service: "monitoring",
|
|
3561
3561
|
contract: "monitoring",
|
|
3562
3562
|
method: "POST",
|
|
3563
|
-
path: "/api/v1/servers/{serverId}
|
|
3563
|
+
path: "/api/v1/servers/{serverId}:rotatePsk",
|
|
3564
3564
|
operationId: "rotate-agent-psk",
|
|
3565
3565
|
securityScheme: "ScopedToken",
|
|
3566
3566
|
upstreamUrl: "https://monitoring.leaflow.cloud",
|