@homeflare/distilled-proxmox 0.3.1 → 0.3.2
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 +27 -5
- package/dist/config-not-found.test.js +29 -0
- package/dist/config-not-found.test.js.map +1 -1
- package/dist/lxc-config-errors.test.d.ts +2 -0
- package/dist/lxc-config-errors.test.d.ts.map +1 -0
- package/dist/lxc-config-errors.test.js +48 -0
- package/dist/lxc-config-errors.test.js.map +1 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +14 -8
- package/dist/protocol.js.map +1 -1
- package/dist/replication-firewall-errors.test.d.ts +2 -0
- package/dist/replication-firewall-errors.test.d.ts.map +1 -0
- package/dist/replication-firewall-errors.test.js +76 -0
- package/dist/replication-firewall-errors.test.js.map +1 -0
- package/dist/services/cluster.d.ts +25 -5
- package/dist/services/cluster.d.ts.map +1 -1
- package/dist/services/cluster.js +24 -5
- package/dist/services/cluster.js.map +1 -1
- package/dist/services/nodes.d.ts +25 -5
- package/dist/services/nodes.d.ts.map +1 -1
- package/dist/services/nodes.js +24 -5
- package/dist/services/nodes.js.map +1 -1
- package/package.json +1 -1
- package/src/config-not-found.test.ts +49 -0
- package/src/lxc-config-errors.test.ts +100 -0
- package/src/protocol.ts +16 -8
- package/src/replication-firewall-errors.test.ts +126 -0
- package/src/services/cluster.ts +51 -10
- package/src/services/nodes.ts +39 -10
package/dist/services/cluster.js
CHANGED
|
@@ -11,6 +11,12 @@ export class BackupJobNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorM
|
|
|
11
11
|
message: S.String,
|
|
12
12
|
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^No such job '[^']+'$" } }]) {
|
|
13
13
|
}
|
|
14
|
+
/** Installed pve-firewall 6.0.5 PVE/API2/Firewall/Aliases.pm:203-204,252, read-only 2026-09-24; SHA256 aa4d71ea897515ca71caa8e04abd142aedf8077058649f793605f014be84db0e. GET and PUT raise HTTP400 Parameter verification failed with the sole field errors.name = no such alias. DELETE is intrinsically idempotent and has no missing-alias exception. Other validation failures remain ParameterVerificationFailed. */
|
|
15
|
+
export class FirewallAliasNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
|
+
/*@__PURE__*/ S.TaggedError()("FirewallAliasNotFound", {
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^no such alias$" } }]) {
|
|
19
|
+
}
|
|
14
20
|
/** The metrics server does not exist. pve-manager 9.2.11, f6997e698c7933ea8e62319e2bf1bf7262daa56a, PVE/API2/Cluster/MetricServer.pm:136 throws status server entry '<id>' does not exist on GET, and line 228 throws no such server '<id>' on PUT. Both are wire 500. DELETE dereferences the plugin config without an explicit absence check and is not declared to return this tag. */
|
|
15
21
|
export class MetricServerNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
22
|
/*@__PURE__*/ S.TaggedError()("MetricServerNotFound", {
|
|
@@ -25,6 +31,19 @@ export class MetricServerNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErr
|
|
|
25
31
|
{ status: 500, message: { matches: "^no such server '[^']+'\\n?$" } },
|
|
26
32
|
]) {
|
|
27
33
|
}
|
|
34
|
+
/** pve-manager 9.2.11 f6997e698c7933ea8e62319e2bf1bf7262daa56a PVE/API2/ReplicationConfig.pm:107,226,305. GET raises no such replication job; PUT and non-force DELETE raise no such job. Exact structured job IDs only. DELETE normally marks remove_job=full for background cleanup; an absent job is already removed. */
|
|
35
|
+
export class ReplicationJobNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError()("ReplicationJobNotFound", {
|
|
37
|
+
message: S.String,
|
|
38
|
+
}).pipe(C.withBadRequestError), [
|
|
39
|
+
{
|
|
40
|
+
status: 500,
|
|
41
|
+
message: {
|
|
42
|
+
matches: "^no such (replication )?job '[0-9]+-[0-9]+'\\n?$",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
]) {
|
|
46
|
+
}
|
|
28
47
|
export const CreateClusterAcmeAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
48
|
contact: S.String,
|
|
30
49
|
directory: S.optional(S.String),
|
|
@@ -5780,7 +5799,7 @@ export const deleteClusterQemuCustomCpuModel = /*@__PURE__*/ API.make(() => ({
|
|
|
5780
5799
|
export const deleteClusterReplication = /*@__PURE__*/ API.make(() => ({
|
|
5781
5800
|
input: DeleteClusterReplicationRequest,
|
|
5782
5801
|
output: DeleteClusterReplicationResponse,
|
|
5783
|
-
errors: [],
|
|
5802
|
+
errors: [ReplicationJobNotFound],
|
|
5784
5803
|
protocol: ProxmoxProtocol,
|
|
5785
5804
|
retry: Retry.Retry,
|
|
5786
5805
|
}));
|
|
@@ -6004,7 +6023,7 @@ export const getClusterConfigTotem = /*@__PURE__*/ API.make(() => ({
|
|
|
6004
6023
|
export const getClusterFirewallAlias = /*@__PURE__*/ API.make(() => ({
|
|
6005
6024
|
input: GetClusterFirewallAliasRequest,
|
|
6006
6025
|
output: GetClusterFirewallAliasResponse,
|
|
6007
|
-
errors: [],
|
|
6026
|
+
errors: [FirewallAliasNotFound],
|
|
6008
6027
|
protocol: ProxmoxProtocol,
|
|
6009
6028
|
retry: Retry.Retry,
|
|
6010
6029
|
}));
|
|
@@ -6204,7 +6223,7 @@ export const getClusterQemuCustomCpuModel = /*@__PURE__*/ API.make(() => ({
|
|
|
6204
6223
|
export const getClusterReplication = /*@__PURE__*/ API.make(() => ({
|
|
6205
6224
|
input: GetClusterReplicationRequest,
|
|
6206
6225
|
output: GetClusterReplicationResponse,
|
|
6207
|
-
errors: [],
|
|
6226
|
+
errors: [ReplicationJobNotFound],
|
|
6208
6227
|
protocol: ProxmoxProtocol,
|
|
6209
6228
|
retry: Retry.Retry,
|
|
6210
6229
|
}));
|
|
@@ -7012,7 +7031,7 @@ export const putClusterCephHealthMute = /*@__PURE__*/ API.make(() => ({
|
|
|
7012
7031
|
export const putClusterFirewallAlias = /*@__PURE__*/ API.make(() => ({
|
|
7013
7032
|
input: PutClusterFirewallAliasRequest,
|
|
7014
7033
|
output: PutClusterFirewallAliasResponse,
|
|
7015
|
-
errors: [],
|
|
7034
|
+
errors: [FirewallAliasNotFound],
|
|
7016
7035
|
protocol: ProxmoxProtocol,
|
|
7017
7036
|
retry: Retry.Retry,
|
|
7018
7037
|
}));
|
|
@@ -7172,7 +7191,7 @@ export const putClusterQemuCustomCpuModel = /*@__PURE__*/ API.make(() => ({
|
|
|
7172
7191
|
export const putClusterReplication = /*@__PURE__*/ API.make(() => ({
|
|
7173
7192
|
input: PutClusterReplicationRequest,
|
|
7174
7193
|
output: PutClusterReplicationResponse,
|
|
7175
|
-
errors: [],
|
|
7194
|
+
errors: [ReplicationJobNotFound],
|
|
7176
7195
|
protocol: ProxmoxProtocol,
|
|
7177
7196
|
retry: Retry.Retry,
|
|
7178
7197
|
}));
|