@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
@@ -2,6 +2,46 @@ import * as S from "@distilled.cloud/core/schema";
2
2
  import * as API from "@distilled.cloud/core/api";
3
3
  import { type ProxmoxBackupOpError, type ProxmoxBackupOpContext } from "../protocol.ts";
4
4
  export type { ProxmoxBackupOpError, ProxmoxBackupOpContext };
5
+ declare const DatastoreNotFound_base: S.Class<DatastoreNotFound, S.TaggedStruct<"DatastoreNotFound", {
6
+ readonly message: any;
7
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
8
+ "@distilled.cloud/error/categories": {
9
+ BadRequestError: true;
10
+ };
11
+ });
12
+ /** 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. */
13
+ export declare class DatastoreNotFound extends /*@__PURE__*/ DatastoreNotFound_base {
14
+ }
15
+ declare const PruneJobNotFound_base: S.Class<PruneJobNotFound, S.TaggedStruct<"PruneJobNotFound", {
16
+ readonly message: any;
17
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
18
+ "@distilled.cloud/error/categories": {
19
+ BadRequestError: true;
20
+ };
21
+ });
22
+ /** 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. */
23
+ export declare class PruneJobNotFound extends /*@__PURE__*/ PruneJobNotFound_base {
24
+ }
25
+ declare const SyncJobNotFound_base: S.Class<SyncJobNotFound, S.TaggedStruct<"SyncJobNotFound", {
26
+ readonly message: any;
27
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
28
+ "@distilled.cloud/error/categories": {
29
+ BadRequestError: true;
30
+ };
31
+ });
32
+ /** 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. */
33
+ export declare class SyncJobNotFound extends /*@__PURE__*/ SyncJobNotFound_base {
34
+ }
35
+ declare const VerifyJobNotFound_base: S.Class<VerifyJobNotFound, S.TaggedStruct<"VerifyJobNotFound", {
36
+ readonly message: any;
37
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
38
+ "@distilled.cloud/error/categories": {
39
+ BadRequestError: true;
40
+ };
41
+ });
42
+ /** 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. */
43
+ export declare class VerifyJobNotFound extends /*@__PURE__*/ VerifyJobNotFound_base {
44
+ }
5
45
  export type CreateConfigAccessAdRequestMode = "ldap" | "ldap+starttls" | "ldaps";
6
46
  export declare const CreateConfigAccessAdRequestMode: any;
7
47
  export interface CreateConfigAccessAdRequest {
@@ -3395,7 +3435,7 @@ export declare const getConfigAcmeTos: API.OperationMethod<GetConfigAcmeTosReque
3395
3435
  export type GetConfigChangerError = ProxmoxBackupOpError;
3396
3436
  /** Get tape changer configuration */
3397
3437
  export declare const getConfigChanger: API.OperationMethod<GetConfigChangerRequest, GetConfigChangerResponse, GetConfigChangerError, ProxmoxBackupOpContext>;
3398
- export type GetConfigDatastoreError = ProxmoxBackupOpError;
3438
+ export type GetConfigDatastoreError = DatastoreNotFound | ProxmoxBackupOpError;
3399
3439
  /** Read a datastore configuration. */
3400
3440
  export declare const getConfigDatastore: API.OperationMethod<GetConfigDatastoreRequest, GetConfigDatastoreResponse, GetConfigDatastoreError, ProxmoxBackupOpContext>;
3401
3441
  export type GetConfigDriveError = ProxmoxBackupOpError;
@@ -3437,7 +3477,7 @@ export declare const getConfigNotifications: API.OperationMethod<GetConfigNotifi
3437
3477
  export type GetConfigNotificationTargetError = ProxmoxBackupOpError;
3438
3478
  /** Directory index. */
3439
3479
  export declare const getConfigNotificationTarget: API.OperationMethod<GetConfigNotificationTargetRequest, GetConfigNotificationTargetResponse, GetConfigNotificationTargetError, ProxmoxBackupOpContext>;
3440
- export type GetConfigPruneError = ProxmoxBackupOpError;
3480
+ export type GetConfigPruneError = PruneJobNotFound | ProxmoxBackupOpError;
3441
3481
  /** Read a prune job configuration. */
3442
3482
  export declare const getConfigPrune: API.OperationMethod<GetConfigPruneRequest, GetConfigPruneResponse, GetConfigPruneError, ProxmoxBackupOpContext>;
3443
3483
  export type GetConfigRemoteError = ProxmoxBackupOpError;
@@ -3452,7 +3492,7 @@ export declare const getConfigS3: API.OperationMethod<GetConfigS3Request, GetCon
3452
3492
  export type GetConfigS3ListBucketsError = ProxmoxBackupOpError;
3453
3493
  /** List buckets accessible by given s3 client configuration */
3454
3494
  export declare const getConfigS3ListBuckets: API.OperationMethod<GetConfigS3ListBucketsRequest, GetConfigS3ListBucketsResponse, GetConfigS3ListBucketsError, ProxmoxBackupOpContext>;
3455
- export type GetConfigSyncError = ProxmoxBackupOpError;
3495
+ export type GetConfigSyncError = SyncJobNotFound | ProxmoxBackupOpError;
3456
3496
  /** Read a sync job configuration. */
3457
3497
  export declare const getConfigSync: API.OperationMethod<GetConfigSyncRequest, GetConfigSyncResponse, GetConfigSyncError, ProxmoxBackupOpContext>;
3458
3498
  export type GetConfigTapeBackupJobError = ProxmoxBackupOpError;
@@ -3464,7 +3504,7 @@ export declare const getConfigTapeEncryptionKey: API.OperationMethod<GetConfigTa
3464
3504
  export type GetConfigTrafficControlError = ProxmoxBackupOpError;
3465
3505
  /** Read traffic control configuration data. */
3466
3506
  export declare const getConfigTrafficControl: API.OperationMethod<GetConfigTrafficControlRequest, GetConfigTrafficControlResponse, GetConfigTrafficControlError, ProxmoxBackupOpContext>;
3467
- export type GetConfigVerifyError = ProxmoxBackupOpError;
3507
+ export type GetConfigVerifyError = VerifyJobNotFound | ProxmoxBackupOpError;
3468
3508
  /** Read a verification job configuration. */
3469
3509
  export declare const getConfigVerify: API.OperationMethod<GetConfigVerifyRequest, GetConfigVerifyResponse, GetConfigVerifyError, ProxmoxBackupOpContext>;
3470
3510
  export type ListConfigAccessAdError = ProxmoxBackupOpError;