@homeflare/distilled-proxmox-backup 0.3.0 → 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 +19 -17
- package/dist/errors.d.ts +6 -5
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/missing-resource.test.d.ts +2 -0
- package/dist/missing-resource.test.d.ts.map +1 -0
- package/dist/missing-resource.test.js +62 -0
- package/dist/missing-resource.test.js.map +1 -0
- package/dist/protocol-boundaries.test.d.ts +2 -0
- package/dist/protocol-boundaries.test.d.ts.map +1 -0
- package/dist/protocol-boundaries.test.js +50 -0
- package/dist/protocol-boundaries.test.js.map +1 -0
- package/dist/protocol-codecs.d.ts +23 -0
- package/dist/protocol-codecs.d.ts.map +1 -0
- package/dist/protocol-codecs.js +49 -0
- package/dist/protocol-codecs.js.map +1 -0
- package/dist/protocol-codecs.test.d.ts +2 -0
- package/dist/protocol-codecs.test.d.ts.map +1 -0
- package/dist/protocol-codecs.test.js +58 -0
- package/dist/protocol-codecs.test.js.map +1 -0
- package/dist/protocol-raw-root.test.d.ts +2 -0
- package/dist/protocol-raw-root.test.d.ts.map +1 -0
- package/dist/protocol-raw-root.test.js +48 -0
- package/dist/protocol-raw-root.test.js.map +1 -0
- package/dist/protocol.d.ts +3 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +7 -2
- package/dist/protocol.js.map +1 -1
- package/dist/protocol.test.js +2 -2
- package/dist/protocol.test.js.map +1 -1
- package/dist/services/config.d.ts +44 -4
- package/dist/services/config.d.ts.map +1 -1
- package/dist/services/config.js +29 -4
- package/dist/services/config.js.map +1 -1
- package/package.json +3 -3
- package/src/errors.ts +7 -11
- package/src/missing-resource.test.ts +98 -0
- package/src/protocol-boundaries.test.ts +60 -0
- package/src/protocol-codecs.test.ts +112 -0
- package/src/protocol-codecs.ts +75 -0
- package/src/protocol-raw-root.test.ts +84 -0
- package/src/protocol.test.ts +2 -2
- package/src/protocol.ts +67 -60
- package/src/services/config.ts +45 -8
package/dist/services/config.js
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidoc.js, via scripts/apidoc.ts — see its header). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
4
5
|
import * as T from "../traits.js";
|
|
5
6
|
import { ProxmoxBackupProtocol, } from "../protocol.js";
|
|
6
7
|
import * as Retry from "../retry.js";
|
|
8
|
+
/** Measured read-only on PBS on 2026-09-24: GET /config/datastore/<absent> returns HTTP 400 with the plain-text body no such datastore '<id>'. Attach only to the measured GET, not a sibling write; no DELETE was probed. Invalid arguments, refused reads, other 400s and all 5xx stay errors. Vendor schema pinned to proxmox-backup-server 4.2.6-1; live host version recorded separately in the probe evidence. */
|
|
9
|
+
export class DatastoreNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
|
+
/*@__PURE__*/ S.TaggedError()("DatastoreNotFound", {
|
|
11
|
+
message: S.String,
|
|
12
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^no such datastore '[^']+'$" } }]) {
|
|
13
|
+
}
|
|
14
|
+
/** Measured read-only on PBS on 2026-09-24: GET /config/prune/<absent> returns HTTP 400 with the plain-text body no such prune '<id>'. Attach only to the measured GET, not a sibling write; no DELETE was probed. Invalid arguments, refused reads, other 400s and all 5xx stay errors. Vendor schema pinned to proxmox-backup-server 4.2.6-1; live host version recorded separately in the probe evidence. */
|
|
15
|
+
export class PruneJobNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
|
+
/*@__PURE__*/ S.TaggedError()("PruneJobNotFound", {
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^no such prune '[^']+'$" } }]) {
|
|
19
|
+
}
|
|
20
|
+
/** Measured read-only on PBS on 2026-09-24: GET /config/sync/<absent> returns HTTP 400 with the plain-text body no such sync '<id>'. Attach only to the measured GET, not a sibling write; no DELETE was probed. Invalid arguments, refused reads, other 400s and all 5xx stay errors. Vendor schema pinned to proxmox-backup-server 4.2.6-1; live host version recorded separately in the probe evidence. */
|
|
21
|
+
export class SyncJobNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
22
|
+
/*@__PURE__*/ S.TaggedError()("SyncJobNotFound", {
|
|
23
|
+
message: S.String,
|
|
24
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^no such sync '[^']+'$" } }]) {
|
|
25
|
+
}
|
|
26
|
+
/** Measured read-only on PBS on 2026-09-24: GET /config/verify/<absent> returns HTTP 400 with the plain-text body no such verification '<id>'. Attach only to the measured GET, not a sibling write; no DELETE was probed. Invalid arguments, refused reads, other 400s and all 5xx stay errors. Vendor schema pinned to proxmox-backup-server 4.2.6-1; live host version recorded separately in the probe evidence. */
|
|
27
|
+
export class VerifyJobNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError()("VerifyJobNotFound", {
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^no such verification '[^']+'$" } }]) {
|
|
31
|
+
}
|
|
7
32
|
export const CreateConfigAccessAdRequestMode = S.String;
|
|
8
33
|
export const CreateConfigAccessAdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
34
|
base_dn: S.optional(S.String.pipe(T.Body("base-dn"))),
|
|
@@ -3690,7 +3715,7 @@ export const getConfigChanger = /*@__PURE__*/ API.make(() => ({
|
|
|
3690
3715
|
export const getConfigDatastore = /*@__PURE__*/ API.make(() => ({
|
|
3691
3716
|
input: GetConfigDatastoreRequest,
|
|
3692
3717
|
output: GetConfigDatastoreResponse,
|
|
3693
|
-
errors: [],
|
|
3718
|
+
errors: [DatastoreNotFound],
|
|
3694
3719
|
protocol: ProxmoxBackupProtocol,
|
|
3695
3720
|
retry: Retry.Retry,
|
|
3696
3721
|
}));
|
|
@@ -3802,7 +3827,7 @@ export const getConfigNotificationTarget = /*@__PURE__*/ API.make(() => ({
|
|
|
3802
3827
|
export const getConfigPrune = /*@__PURE__*/ API.make(() => ({
|
|
3803
3828
|
input: GetConfigPruneRequest,
|
|
3804
3829
|
output: GetConfigPruneResponse,
|
|
3805
|
-
errors: [],
|
|
3830
|
+
errors: [PruneJobNotFound],
|
|
3806
3831
|
protocol: ProxmoxBackupProtocol,
|
|
3807
3832
|
retry: Retry.Retry,
|
|
3808
3833
|
}));
|
|
@@ -3842,7 +3867,7 @@ export const getConfigS3ListBuckets = /*@__PURE__*/ API.make(() => ({
|
|
|
3842
3867
|
export const getConfigSync = /*@__PURE__*/ API.make(() => ({
|
|
3843
3868
|
input: GetConfigSyncRequest,
|
|
3844
3869
|
output: GetConfigSyncResponse,
|
|
3845
|
-
errors: [],
|
|
3870
|
+
errors: [SyncJobNotFound],
|
|
3846
3871
|
protocol: ProxmoxBackupProtocol,
|
|
3847
3872
|
retry: Retry.Retry,
|
|
3848
3873
|
}));
|
|
@@ -3874,7 +3899,7 @@ export const getConfigTrafficControl = /*@__PURE__*/ API.make(() => ({
|
|
|
3874
3899
|
export const getConfigVerify = /*@__PURE__*/ API.make(() => ({
|
|
3875
3900
|
input: GetConfigVerifyRequest,
|
|
3876
3901
|
output: GetConfigVerifyResponse,
|
|
3877
|
-
errors: [],
|
|
3902
|
+
errors: [VerifyJobNotFound],
|
|
3878
3903
|
protocol: ProxmoxBackupProtocol,
|
|
3879
3904
|
retry: Retry.Retry,
|
|
3880
3905
|
}));
|