@homeflare/distilled-proxmox 0.3.2 → 0.3.4
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/README.md +6 -0
- package/dist/network-changes.test.d.ts +2 -0
- package/dist/network-changes.test.d.ts.map +1 -0
- package/dist/network-changes.test.js +42 -0
- package/dist/network-changes.test.js.map +1 -0
- package/dist/not-found-errors.test.js +23 -0
- package/dist/not-found-errors.test.js.map +1 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +10 -1
- package/dist/protocol.js.map +1 -1
- package/dist/qemu-config-absence.test.d.ts +2 -0
- package/dist/qemu-config-absence.test.d.ts.map +1 -0
- package/dist/qemu-config-absence.test.js +41 -0
- package/dist/qemu-config-absence.test.js.map +1 -0
- package/dist/services/cluster.d.ts +23 -3
- package/dist/services/cluster.d.ts.map +1 -1
- package/dist/services/cluster.js +23 -3
- package/dist/services/cluster.js.map +1 -1
- package/dist/services/nodes.d.ts +19 -3
- package/dist/services/nodes.d.ts.map +1 -1
- package/dist/services/nodes.js +25 -3
- package/dist/services/nodes.js.map +1 -1
- package/package.json +1 -1
- package/src/network-changes.test.ts +60 -0
- package/src/not-found-errors.test.ts +38 -0
- package/src/protocol.ts +10 -1
- package/src/qemu-config-absence.test.ts +75 -0
- package/src/services/cluster.ts +32 -6
- package/src/services/nodes.ts +42 -6
package/dist/services/nodes.js
CHANGED
|
@@ -43,6 +43,19 @@ export class LxcConfigNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorM
|
|
|
43
43
|
},
|
|
44
44
|
]) {
|
|
45
45
|
}
|
|
46
|
+
/** qemu-server PVE/API2/Qemu.pm vm_config GET and destroy_vm both call QemuConfig->load_config. pve-guest-common AbstractConfig.pm load_config dies when the cfs file is missing: Configuration file '$cfspath' does not exist. QemuConfig's path is nodes/$node/qemu-server/$vmid.conf, HTTP 500. A missing file on this node is not a free cluster-wide vmid. */
|
|
47
|
+
export class QemuConfigNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
48
|
+
/*@__PURE__*/ S.TaggedError()("QemuConfigNotFound", {
|
|
49
|
+
message: S.String,
|
|
50
|
+
}).pipe(C.withBadRequestError), [
|
|
51
|
+
{
|
|
52
|
+
status: 500,
|
|
53
|
+
message: {
|
|
54
|
+
matches: "^Configuration file 'nodes/[^/']+/qemu-server/[0-9]+\\.conf' does not exist\\n?$",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
]) {
|
|
58
|
+
}
|
|
46
59
|
/** pve-manager 9.2.11, PVE/API2/Network.pm. GET (network_config) and PUT (update_network) both raise HTTP 400 with exactly errors.iface = interface does not exist -- verified against the live n2 source on 2026-09-25. DELETE (delete_network) raises it too but is left untyped: no generated deleteNodeNetwork2 caller exists yet. Only the exact sole-field detail is normalized for operation matching; all other validation errors remain ParameterVerificationFailed. Attached to GET and PUT. */
|
|
47
60
|
export class NetworkInterfaceNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
48
61
|
/*@__PURE__*/ S.TaggedError()("NetworkInterfaceNotFound", {
|
|
@@ -5128,7 +5141,16 @@ export const ListNodeNetworkResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
5128
5141
|
identifier: "ListNodeNetworkResponseBodyItem",
|
|
5129
5142
|
});
|
|
5130
5143
|
export const ListNodeNetworkResponseBodyList = /*@__PURE__*/ S.Array(ListNodeNetworkResponseBodyItem);
|
|
5131
|
-
export const
|
|
5144
|
+
export const ListNodeNetworkPendingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
5145
|
+
data: ListNodeNetworkResponseBodyList,
|
|
5146
|
+
changes: S.String,
|
|
5147
|
+
})).annotate({
|
|
5148
|
+
identifier: "ListNodeNetworkPendingResponse",
|
|
5149
|
+
});
|
|
5150
|
+
export const ListNodeNetworkResponse = /*@__PURE__*/ S.suspend(() => S.Union([
|
|
5151
|
+
ListNodeNetworkResponseBodyList.pipe(T.RawResponseRoot()),
|
|
5152
|
+
ListNodeNetworkPendingResponse,
|
|
5153
|
+
])).annotate({
|
|
5132
5154
|
identifier: "ListNodeNetworkResponse",
|
|
5133
5155
|
});
|
|
5134
5156
|
export const ListNodeQemuRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -8122,7 +8144,7 @@ export const deleteNodeNetwork2 = /*@__PURE__*/ API.make(() => ({
|
|
|
8122
8144
|
export const deleteNodeQemu = /*@__PURE__*/ API.make(() => ({
|
|
8123
8145
|
input: DeleteNodeQemuRequest,
|
|
8124
8146
|
output: DeleteNodeQemuResponse,
|
|
8125
|
-
errors: [],
|
|
8147
|
+
errors: [QemuConfigNotFound],
|
|
8126
8148
|
protocol: ProxmoxProtocol,
|
|
8127
8149
|
retry: Retry.Retry,
|
|
8128
8150
|
}));
|
|
@@ -8665,7 +8687,7 @@ export const getNodeQemuCloudinitDump = /*@__PURE__*/ API.make(() => ({
|
|
|
8665
8687
|
export const getNodeQemuConfig = /*@__PURE__*/ API.make(() => ({
|
|
8666
8688
|
input: GetNodeQemuConfigRequest,
|
|
8667
8689
|
output: GetNodeQemuConfigResponse,
|
|
8668
|
-
errors: [],
|
|
8690
|
+
errors: [QemuConfigNotFound],
|
|
8669
8691
|
protocol: ProxmoxProtocol,
|
|
8670
8692
|
retry: Retry.Retry,
|
|
8671
8693
|
}));
|