@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/src/services/config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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.ts";
|
|
5
6
|
import {
|
|
6
7
|
ProxmoxBackupProtocol,
|
|
@@ -11,6 +12,42 @@ import * as Retry from "../retry.ts";
|
|
|
11
12
|
|
|
12
13
|
export type { ProxmoxBackupOpError, ProxmoxBackupOpContext };
|
|
13
14
|
|
|
15
|
+
/** 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. */
|
|
16
|
+
export class DatastoreNotFound
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<DatastoreNotFound>()("DatastoreNotFound", {
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withBadRequestError),
|
|
21
|
+
[{ status: 400, message: { matches: "^no such datastore '[^']+'$" } }],
|
|
22
|
+
) {}
|
|
23
|
+
|
|
24
|
+
/** 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. */
|
|
25
|
+
export class PruneJobNotFound
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<PruneJobNotFound>()("PruneJobNotFound", {
|
|
28
|
+
message: S.String,
|
|
29
|
+
}).pipe(C.withBadRequestError),
|
|
30
|
+
[{ status: 400, message: { matches: "^no such prune '[^']+'$" } }],
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
/** 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. */
|
|
34
|
+
export class SyncJobNotFound
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<SyncJobNotFound>()("SyncJobNotFound", {
|
|
37
|
+
message: S.String,
|
|
38
|
+
}).pipe(C.withBadRequestError),
|
|
39
|
+
[{ status: 400, message: { matches: "^no such sync '[^']+'$" } }],
|
|
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 class VerifyJobNotFound
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<VerifyJobNotFound>()("VerifyJobNotFound", {
|
|
46
|
+
message: S.String,
|
|
47
|
+
}).pipe(C.withBadRequestError),
|
|
48
|
+
[{ status: 400, message: { matches: "^no such verification '[^']+'$" } }],
|
|
49
|
+
) {}
|
|
50
|
+
|
|
14
51
|
export type CreateConfigAccessAdRequestMode =
|
|
15
52
|
| "ldap"
|
|
16
53
|
| "ldap+starttls"
|
|
@@ -9179,7 +9216,7 @@ export const getConfigChanger: API.OperationMethod<
|
|
|
9179
9216
|
retry: Retry.Retry,
|
|
9180
9217
|
}));
|
|
9181
9218
|
|
|
9182
|
-
export type GetConfigDatastoreError = ProxmoxBackupOpError;
|
|
9219
|
+
export type GetConfigDatastoreError = DatastoreNotFound | ProxmoxBackupOpError;
|
|
9183
9220
|
/** Read a datastore configuration. */
|
|
9184
9221
|
export const getConfigDatastore: API.OperationMethod<
|
|
9185
9222
|
GetConfigDatastoreRequest,
|
|
@@ -9189,7 +9226,7 @@ export const getConfigDatastore: API.OperationMethod<
|
|
|
9189
9226
|
> = /*@__PURE__*/ API.make(() => ({
|
|
9190
9227
|
input: GetConfigDatastoreRequest,
|
|
9191
9228
|
output: GetConfigDatastoreResponse,
|
|
9192
|
-
errors: [],
|
|
9229
|
+
errors: [DatastoreNotFound],
|
|
9193
9230
|
protocol: ProxmoxBackupProtocol,
|
|
9194
9231
|
retry: Retry.Retry,
|
|
9195
9232
|
}));
|
|
@@ -9389,7 +9426,7 @@ export const getConfigNotificationTarget: API.OperationMethod<
|
|
|
9389
9426
|
retry: Retry.Retry,
|
|
9390
9427
|
}));
|
|
9391
9428
|
|
|
9392
|
-
export type GetConfigPruneError = ProxmoxBackupOpError;
|
|
9429
|
+
export type GetConfigPruneError = PruneJobNotFound | ProxmoxBackupOpError;
|
|
9393
9430
|
/** Read a prune job configuration. */
|
|
9394
9431
|
export const getConfigPrune: API.OperationMethod<
|
|
9395
9432
|
GetConfigPruneRequest,
|
|
@@ -9399,7 +9436,7 @@ export const getConfigPrune: API.OperationMethod<
|
|
|
9399
9436
|
> = /*@__PURE__*/ API.make(() => ({
|
|
9400
9437
|
input: GetConfigPruneRequest,
|
|
9401
9438
|
output: GetConfigPruneResponse,
|
|
9402
|
-
errors: [],
|
|
9439
|
+
errors: [PruneJobNotFound],
|
|
9403
9440
|
protocol: ProxmoxBackupProtocol,
|
|
9404
9441
|
retry: Retry.Retry,
|
|
9405
9442
|
}));
|
|
@@ -9464,7 +9501,7 @@ export const getConfigS3ListBuckets: API.OperationMethod<
|
|
|
9464
9501
|
retry: Retry.Retry,
|
|
9465
9502
|
}));
|
|
9466
9503
|
|
|
9467
|
-
export type GetConfigSyncError = ProxmoxBackupOpError;
|
|
9504
|
+
export type GetConfigSyncError = SyncJobNotFound | ProxmoxBackupOpError;
|
|
9468
9505
|
/** Read a sync job configuration. */
|
|
9469
9506
|
export const getConfigSync: API.OperationMethod<
|
|
9470
9507
|
GetConfigSyncRequest,
|
|
@@ -9474,7 +9511,7 @@ export const getConfigSync: API.OperationMethod<
|
|
|
9474
9511
|
> = /*@__PURE__*/ API.make(() => ({
|
|
9475
9512
|
input: GetConfigSyncRequest,
|
|
9476
9513
|
output: GetConfigSyncResponse,
|
|
9477
|
-
errors: [],
|
|
9514
|
+
errors: [SyncJobNotFound],
|
|
9478
9515
|
protocol: ProxmoxBackupProtocol,
|
|
9479
9516
|
retry: Retry.Retry,
|
|
9480
9517
|
}));
|
|
@@ -9524,7 +9561,7 @@ export const getConfigTrafficControl: API.OperationMethod<
|
|
|
9524
9561
|
retry: Retry.Retry,
|
|
9525
9562
|
}));
|
|
9526
9563
|
|
|
9527
|
-
export type GetConfigVerifyError = ProxmoxBackupOpError;
|
|
9564
|
+
export type GetConfigVerifyError = VerifyJobNotFound | ProxmoxBackupOpError;
|
|
9528
9565
|
/** Read a verification job configuration. */
|
|
9529
9566
|
export const getConfigVerify: API.OperationMethod<
|
|
9530
9567
|
GetConfigVerifyRequest,
|
|
@@ -9534,7 +9571,7 @@ export const getConfigVerify: API.OperationMethod<
|
|
|
9534
9571
|
> = /*@__PURE__*/ API.make(() => ({
|
|
9535
9572
|
input: GetConfigVerifyRequest,
|
|
9536
9573
|
output: GetConfigVerifyResponse,
|
|
9537
|
-
errors: [],
|
|
9574
|
+
errors: [VerifyJobNotFound],
|
|
9538
9575
|
protocol: ProxmoxBackupProtocol,
|
|
9539
9576
|
retry: Retry.Retry,
|
|
9540
9577
|
}));
|