@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.
Files changed (44) hide show
  1. package/README.md +19 -17
  2. package/dist/errors.d.ts +6 -5
  3. package/dist/errors.d.ts.map +1 -1
  4. package/dist/errors.js.map +1 -1
  5. package/dist/missing-resource.test.d.ts +2 -0
  6. package/dist/missing-resource.test.d.ts.map +1 -0
  7. package/dist/missing-resource.test.js +62 -0
  8. package/dist/missing-resource.test.js.map +1 -0
  9. package/dist/protocol-boundaries.test.d.ts +2 -0
  10. package/dist/protocol-boundaries.test.d.ts.map +1 -0
  11. package/dist/protocol-boundaries.test.js +50 -0
  12. package/dist/protocol-boundaries.test.js.map +1 -0
  13. package/dist/protocol-codecs.d.ts +23 -0
  14. package/dist/protocol-codecs.d.ts.map +1 -0
  15. package/dist/protocol-codecs.js +49 -0
  16. package/dist/protocol-codecs.js.map +1 -0
  17. package/dist/protocol-codecs.test.d.ts +2 -0
  18. package/dist/protocol-codecs.test.d.ts.map +1 -0
  19. package/dist/protocol-codecs.test.js +58 -0
  20. package/dist/protocol-codecs.test.js.map +1 -0
  21. package/dist/protocol-raw-root.test.d.ts +2 -0
  22. package/dist/protocol-raw-root.test.d.ts.map +1 -0
  23. package/dist/protocol-raw-root.test.js +48 -0
  24. package/dist/protocol-raw-root.test.js.map +1 -0
  25. package/dist/protocol.d.ts +3 -2
  26. package/dist/protocol.d.ts.map +1 -1
  27. package/dist/protocol.js +7 -2
  28. package/dist/protocol.js.map +1 -1
  29. package/dist/protocol.test.js +2 -2
  30. package/dist/protocol.test.js.map +1 -1
  31. package/dist/services/config.d.ts +44 -4
  32. package/dist/services/config.d.ts.map +1 -1
  33. package/dist/services/config.js +29 -4
  34. package/dist/services/config.js.map +1 -1
  35. package/package.json +3 -3
  36. package/src/errors.ts +7 -11
  37. package/src/missing-resource.test.ts +98 -0
  38. package/src/protocol-boundaries.test.ts +60 -0
  39. package/src/protocol-codecs.test.ts +112 -0
  40. package/src/protocol-codecs.ts +75 -0
  41. package/src/protocol-raw-root.test.ts +84 -0
  42. package/src/protocol.test.ts +2 -2
  43. package/src/protocol.ts +67 -60
  44. package/src/services/config.ts +45 -8
@@ -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
  }));