@homeflare/distilled-proxmox 0.3.2 → 0.3.4

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.
@@ -42,6 +42,16 @@ declare const LxcConfigNotFound_base: S.Class<LxcConfigNotFound, S.TaggedStruct<
42
42
  /** The requested container config is absent on this node. VM IDs are cluster-wide: callers must still check whether another node or QEMU guest holds the ID before creating. Also raised by PUT (update_vm) and DELETE (destroy_vm), which both call the same load_config first. This GET requires VM.Audit on /vms/{vmid}; retain its credential for any permission-filtered cluster index read. */
43
43
  export declare class LxcConfigNotFound extends /*@__PURE__*/ LxcConfigNotFound_base {
44
44
  }
45
+ declare const QemuConfigNotFound_base: S.Class<QemuConfigNotFound, S.TaggedStruct<"QemuConfigNotFound", {
46
+ readonly message: any;
47
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
48
+ "@distilled.cloud/error/categories": {
49
+ BadRequestError: true;
50
+ };
51
+ });
52
+ /** qemu-server PVE/API2/Qemu.pm vm_config GET and destroy_vm both call QemuConfig->load_config. pve-guest-common AbstractConfig.pm load_config dies when the cfs file is missing: Configuration file '$cfspath' does not exist. QemuConfig's path is nodes/$node/qemu-server/$vmid.conf, HTTP 500. A missing file on this node is not a free cluster-wide vmid. */
53
+ export declare class QemuConfigNotFound extends /*@__PURE__*/ QemuConfigNotFound_base {
54
+ }
45
55
  declare const NetworkInterfaceNotFound_base: S.Class<NetworkInterfaceNotFound, S.TaggedStruct<"NetworkInterfaceNotFound", {
46
56
  readonly message: any;
47
57
  }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
@@ -4689,7 +4699,13 @@ export interface ListNodeNetworkResponseBodyItem {
4689
4699
  export declare const ListNodeNetworkResponseBodyItem: S.Schema<ListNodeNetworkResponseBodyItem>;
4690
4700
  export type ListNodeNetworkResponseBodyList = Array<ListNodeNetworkResponseBodyItem>;
4691
4701
  export declare const ListNodeNetworkResponseBodyList: S.Schema<ListNodeNetworkResponseBodyList>;
4692
- export type ListNodeNetworkResponse = ListNodeNetworkResponseBodyList;
4702
+ /** Present only when PVE staged an interfaces diff. The string can contain secrets. */
4703
+ export interface ListNodeNetworkPendingResponse {
4704
+ data: ListNodeNetworkResponseBodyList;
4705
+ changes: string;
4706
+ }
4707
+ export declare const ListNodeNetworkPendingResponse: S.Schema<ListNodeNetworkPendingResponse>;
4708
+ export type ListNodeNetworkResponse = ListNodeNetworkResponseBodyList | ListNodeNetworkPendingResponse;
4693
4709
  export declare const ListNodeNetworkResponse: S.Schema<ListNodeNetworkResponse>;
4694
4710
  export interface ListNodeQemuRequest {
4695
4711
  node: string;
@@ -7125,7 +7141,7 @@ export declare const deleteNodeNetwork: API.OperationMethod<DeleteNodeNetworkReq
7125
7141
  export type DeleteNodeNetwork2Error = ProxmoxOpError;
7126
7142
  /** Delete network device configuration (root-privileged endpoint) */
7127
7143
  export declare const deleteNodeNetwork2: API.OperationMethod<DeleteNodeNetwork2Request, DeleteNodeNetwork2Response, DeleteNodeNetwork2Error, ProxmoxOpContext>;
7128
- export type DeleteNodeQemuError = ProxmoxOpError;
7144
+ export type DeleteNodeQemuError = QemuConfigNotFound | ProxmoxOpError;
7129
7145
  /** Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules (root-privileged endpoint) */
7130
7146
  export declare const deleteNodeQemu: API.OperationMethod<DeleteNodeQemuRequest, DeleteNodeQemuResponse, DeleteNodeQemuError, ProxmoxOpContext>;
7131
7147
  export type DeleteNodeQemuFirewallAliasError = ProxmoxOpError;
@@ -7328,7 +7344,7 @@ export declare const getNodeQemuAgentNetworkGetInterfaces: API.OperationMethod<G
7328
7344
  export type GetNodeQemuCloudinitDumpError = ProxmoxOpError;
7329
7345
  /** Get automatically generated cloudinit config. */
7330
7346
  export declare const getNodeQemuCloudinitDump: API.OperationMethod<GetNodeQemuCloudinitDumpRequest, GetNodeQemuCloudinitDumpResponse, GetNodeQemuCloudinitDumpError, ProxmoxOpContext>;
7331
- export type GetNodeQemuConfigError = ProxmoxOpError;
7347
+ export type GetNodeQemuConfigError = QemuConfigNotFound | ProxmoxOpError;
7332
7348
  /** Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. */
7333
7349
  export declare const getNodeQemuConfig: API.OperationMethod<GetNodeQemuConfigRequest, GetNodeQemuConfigResponse, GetNodeQemuConfigError, ProxmoxOpContext>;
7334
7350
  export type GetNodeQemuFeatureError = ProxmoxOpError;