@homeflare/distilled-proxmox 0.2.0

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 (78) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +87 -0
  3. package/dist/credentials.d.ts +41 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +67 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +128 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +91 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +30 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +30 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +18 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +167 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/protocol.test.d.ts +2 -0
  20. package/dist/protocol.test.d.ts.map +1 -0
  21. package/dist/protocol.test.js +64 -0
  22. package/dist/protocol.test.js.map +1 -0
  23. package/dist/retry.d.ts +50 -0
  24. package/dist/retry.d.ts.map +1 -0
  25. package/dist/retry.js +43 -0
  26. package/dist/retry.js.map +1 -0
  27. package/dist/services/access.d.ts +975 -0
  28. package/dist/services/access.d.ts.map +1 -0
  29. package/dist/services/access.js +1208 -0
  30. package/dist/services/access.js.map +1 -0
  31. package/dist/services/cluster.d.ts +5940 -0
  32. package/dist/services/cluster.d.ts.map +1 -0
  33. package/dist/services/cluster.js +7405 -0
  34. package/dist/services/cluster.js.map +1 -0
  35. package/dist/services/index.d.ts +7 -0
  36. package/dist/services/index.d.ts.map +1 -0
  37. package/dist/services/index.js +8 -0
  38. package/dist/services/index.js.map +1 -0
  39. package/dist/services/nodes.d.ts +7887 -0
  40. package/dist/services/nodes.d.ts.map +1 -0
  41. package/dist/services/nodes.js +10253 -0
  42. package/dist/services/nodes.js.map +1 -0
  43. package/dist/services/pools.d.ts +133 -0
  44. package/dist/services/pools.d.ts.map +1 -0
  45. package/dist/services/pools.js +183 -0
  46. package/dist/services/pools.js.map +1 -0
  47. package/dist/services/storage.d.ts +317 -0
  48. package/dist/services/storage.d.ts.map +1 -0
  49. package/dist/services/storage.js +239 -0
  50. package/dist/services/storage.js.map +1 -0
  51. package/dist/services/version.d.ts +20 -0
  52. package/dist/services/version.d.ts.map +1 -0
  53. package/dist/services/version.js +27 -0
  54. package/dist/services/version.js.map +1 -0
  55. package/dist/task.d.ts +51 -0
  56. package/dist/task.d.ts.map +1 -0
  57. package/dist/task.js +60 -0
  58. package/dist/task.js.map +1 -0
  59. package/dist/traits.d.ts +12 -0
  60. package/dist/traits.d.ts.map +1 -0
  61. package/dist/traits.js +14 -0
  62. package/dist/traits.js.map +1 -0
  63. package/package.json +81 -0
  64. package/src/credentials.ts +101 -0
  65. package/src/errors.ts +152 -0
  66. package/src/index.ts +33 -0
  67. package/src/protocol.test.ts +101 -0
  68. package/src/protocol.ts +204 -0
  69. package/src/retry.ts +74 -0
  70. package/src/services/access.ts +2722 -0
  71. package/src/services/cluster.ts +18550 -0
  72. package/src/services/index.ts +7 -0
  73. package/src/services/nodes.ts +25537 -0
  74. package/src/services/pools.ts +397 -0
  75. package/src/services/storage.ts +711 -0
  76. package/src/services/version.ts +54 -0
  77. package/src/task.ts +87 -0
  78. package/src/traits.ts +45 -0
@@ -0,0 +1,133 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type ProxmoxOpError, type ProxmoxOpContext } from "../protocol.ts";
4
+ export type { ProxmoxOpError, ProxmoxOpContext };
5
+ export interface CreatePoolRequest {
6
+ comment?: string;
7
+ poolid: string;
8
+ }
9
+ export declare const CreatePoolRequest: S.Schema<CreatePoolRequest>;
10
+ export interface CreatePoolResponse {
11
+ }
12
+ export declare const CreatePoolResponse: S.Schema<CreatePoolResponse>;
13
+ export interface DeletePoolRequest {
14
+ poolid: string;
15
+ }
16
+ export declare const DeletePoolRequest: S.Schema<DeletePoolRequest>;
17
+ export interface DeletePoolResponse {
18
+ }
19
+ export declare const DeletePoolResponse: S.Schema<DeletePoolResponse>;
20
+ export interface DeletePoolsRequest {
21
+ poolid: string;
22
+ }
23
+ export declare const DeletePoolsRequest: S.Schema<DeletePoolsRequest>;
24
+ export interface DeletePoolsResponse {
25
+ }
26
+ export declare const DeletePoolsResponse: S.Schema<DeletePoolsResponse>;
27
+ export type GetPoolRequestType = "qemu" | "lxc" | "storage";
28
+ export declare const GetPoolRequestType: any;
29
+ export interface GetPoolRequest {
30
+ poolid: string;
31
+ type?: GetPoolRequestType | (string & {});
32
+ }
33
+ export declare const GetPoolRequest: S.Schema<GetPoolRequest>;
34
+ export type GetPoolResponseMembersItemType = "qemu" | "lxc" | "openvz" | "storage";
35
+ export declare const GetPoolResponseMembersItemType: any;
36
+ export interface GetPoolResponseMembersItem {
37
+ id: string;
38
+ node: string;
39
+ storage?: string;
40
+ type: GetPoolResponseMembersItemType;
41
+ vmid?: number;
42
+ }
43
+ export declare const GetPoolResponseMembersItem: S.Schema<GetPoolResponseMembersItem>;
44
+ export type GetPoolResponseMembersList = Array<GetPoolResponseMembersItem>;
45
+ export declare const GetPoolResponseMembersList: S.Schema<GetPoolResponseMembersList>;
46
+ export interface GetPoolResponse {
47
+ comment?: string;
48
+ members: GetPoolResponseMembersList;
49
+ }
50
+ export declare const GetPoolResponse: S.Schema<GetPoolResponse>;
51
+ export type ListPoolsRequestType = "qemu" | "lxc" | "storage";
52
+ export declare const ListPoolsRequestType: any;
53
+ export interface ListPoolsRequest {
54
+ poolid?: string;
55
+ type?: ListPoolsRequestType | (string & {});
56
+ }
57
+ export declare const ListPoolsRequest: S.Schema<ListPoolsRequest>;
58
+ export type ListPoolsResponseBodyItemMembersItemType = "qemu" | "lxc" | "openvz" | "storage";
59
+ export declare const ListPoolsResponseBodyItemMembersItemType: any;
60
+ export interface ListPoolsResponseBodyItemMembersItem {
61
+ id: string;
62
+ node: string;
63
+ storage?: string;
64
+ type: ListPoolsResponseBodyItemMembersItemType;
65
+ vmid?: number;
66
+ }
67
+ export declare const ListPoolsResponseBodyItemMembersItem: S.Schema<ListPoolsResponseBodyItemMembersItem>;
68
+ export type ListPoolsResponseBodyItemMembersList = Array<ListPoolsResponseBodyItemMembersItem>;
69
+ export declare const ListPoolsResponseBodyItemMembersList: S.Schema<ListPoolsResponseBodyItemMembersList>;
70
+ export interface ListPoolsResponseBodyItem {
71
+ comment?: string;
72
+ members?: ListPoolsResponseBodyItemMembersList;
73
+ poolid: string;
74
+ }
75
+ export declare const ListPoolsResponseBodyItem: S.Schema<ListPoolsResponseBodyItem>;
76
+ export type ListPoolsResponseBodyList = Array<ListPoolsResponseBodyItem>;
77
+ export declare const ListPoolsResponseBodyList: S.Schema<ListPoolsResponseBodyList>;
78
+ export type ListPoolsResponse = ListPoolsResponseBodyList;
79
+ export declare const ListPoolsResponse: S.Schema<ListPoolsResponse>;
80
+ export interface PutPoolRequest {
81
+ poolid: string;
82
+ /** Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one. */
83
+ allow_move?: string;
84
+ comment?: string;
85
+ /** Remove the passed VMIDs and/or storage IDs instead of adding them. */
86
+ delete?: string;
87
+ /** List of storage IDs to add or remove from this pool. */
88
+ storage?: string;
89
+ /** List of guest VMIDs to add or remove from this pool. */
90
+ vms?: string;
91
+ }
92
+ export declare const PutPoolRequest: S.Schema<PutPoolRequest>;
93
+ export interface PutPoolResponse {
94
+ }
95
+ export declare const PutPoolResponse: S.Schema<PutPoolResponse>;
96
+ export interface PutPoolsRequest {
97
+ /** Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one. */
98
+ allow_move?: string;
99
+ comment?: string;
100
+ /** Remove the passed VMIDs and/or storage IDs instead of adding them. */
101
+ delete?: string;
102
+ poolid: string;
103
+ /** List of storage IDs to add or remove from this pool. */
104
+ storage?: string;
105
+ /** List of guest VMIDs to add or remove from this pool. */
106
+ vms?: string;
107
+ }
108
+ export declare const PutPoolsRequest: S.Schema<PutPoolsRequest>;
109
+ export interface PutPoolsResponse {
110
+ }
111
+ export declare const PutPoolsResponse: S.Schema<PutPoolsResponse>;
112
+ export type CreatePoolError = ProxmoxOpError;
113
+ /** Create new pool. (root-privileged endpoint) */
114
+ export declare const createPool: API.OperationMethod<CreatePoolRequest, CreatePoolResponse, CreatePoolError, ProxmoxOpContext>;
115
+ export type DeletePoolError = ProxmoxOpError;
116
+ /** Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). (root-privileged endpoint) */
117
+ export declare const deletePool: API.OperationMethod<DeletePoolRequest, DeletePoolResponse, DeletePoolError, ProxmoxOpContext>;
118
+ export type DeletePoolsError = ProxmoxOpError;
119
+ /** Delete pool. (root-privileged endpoint) */
120
+ export declare const deletePools: API.OperationMethod<DeletePoolsRequest, DeletePoolsResponse, DeletePoolsError, ProxmoxOpContext>;
121
+ export type GetPoolError = ProxmoxOpError;
122
+ /** Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). */
123
+ export declare const getPool: API.OperationMethod<GetPoolRequest, GetPoolResponse, GetPoolError, ProxmoxOpContext>;
124
+ export type ListPoolsError = ProxmoxOpError;
125
+ /** List pools or get pool configuration. */
126
+ export declare const listPools: API.OperationMethod<ListPoolsRequest, ListPoolsResponse, ListPoolsError, ProxmoxOpContext>;
127
+ export type PutPoolError = ProxmoxOpError;
128
+ /** Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). (root-privileged endpoint) */
129
+ export declare const putPool: API.OperationMethod<PutPoolRequest, PutPoolResponse, PutPoolError, ProxmoxOpContext>;
130
+ export type PutPoolsError = ProxmoxOpError;
131
+ /** Update pool. (root-privileged endpoint) */
132
+ export declare const putPools: API.OperationMethod<PutPoolsRequest, PutPoolsResponse, PutPoolsError, ProxmoxOpContext>;
133
+ //# sourceMappingURL=pools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pools.d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AC;AAEJ,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAC1C,2GAA2G;AAC3G,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,eAAe,CACvC,cAAc,EACd,eAAe,EACf,YAAY,EACZ,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAC5C,4CAA4C;AAC5C,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAC1C,yIAAyI;AACzI,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,eAAe,CACvC,cAAc,EACd,eAAe,EACf,YAAY,EACZ,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,8CAA8C;AAC9C,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,gBAAgB,CAOf,CAAC"}
@@ -0,0 +1,183 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidata.js, via scripts/apidoc.ts — see its header). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.js";
5
+ import { ProxmoxProtocol, } from "../protocol.js";
6
+ import * as Retry from "../retry.js";
7
+ export const CreatePoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
8
+ comment: S.optional(S.String),
9
+ poolid: S.String,
10
+ }).pipe(T.Http({
11
+ method: "POST",
12
+ uri: "/pools",
13
+ code: 200,
14
+ contentType: "form-urlencoded",
15
+ }))).annotate({
16
+ identifier: "CreatePoolRequest",
17
+ });
18
+ export const CreatePoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
19
+ identifier: "CreatePoolResponse",
20
+ });
21
+ export const DeletePoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
22
+ poolid: S.String.pipe(T.Label()),
23
+ }).pipe(T.Http({ method: "DELETE", uri: "/pools/{poolid}", code: 200 }))).annotate({
24
+ identifier: "DeletePoolRequest",
25
+ });
26
+ export const DeletePoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
27
+ identifier: "DeletePoolResponse",
28
+ });
29
+ export const DeletePoolsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
30
+ poolid: S.String,
31
+ }).pipe(T.Http({
32
+ method: "DELETE",
33
+ uri: "/pools",
34
+ code: 200,
35
+ contentType: "form-urlencoded",
36
+ }))).annotate({
37
+ identifier: "DeletePoolsRequest",
38
+ });
39
+ export const DeletePoolsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
40
+ identifier: "DeletePoolsResponse",
41
+ });
42
+ export const GetPoolRequestType = S.String;
43
+ export const GetPoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
44
+ poolid: S.String.pipe(T.Label()),
45
+ type: S.optional(GetPoolRequestType.pipe(T.Query())),
46
+ }).pipe(T.Http({ method: "GET", uri: "/pools/{poolid}", code: 200 }))).annotate({ identifier: "GetPoolRequest" });
47
+ export const GetPoolResponseMembersItemType = S.String;
48
+ export const GetPoolResponseMembersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
49
+ id: S.String,
50
+ node: S.String,
51
+ storage: S.optional(S.String),
52
+ type: GetPoolResponseMembersItemType,
53
+ vmid: S.optional(S.Number),
54
+ })).annotate({
55
+ identifier: "GetPoolResponseMembersItem",
56
+ });
57
+ export const GetPoolResponseMembersList = /*@__PURE__*/ S.Array(GetPoolResponseMembersItem);
58
+ export const GetPoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
59
+ comment: S.optional(S.String),
60
+ members: GetPoolResponseMembersList,
61
+ })).annotate({
62
+ identifier: "GetPoolResponse",
63
+ });
64
+ export const ListPoolsRequestType = S.String;
65
+ export const ListPoolsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
66
+ poolid: S.optional(S.String.pipe(T.Query())),
67
+ type: S.optional(ListPoolsRequestType.pipe(T.Query())),
68
+ }).pipe(T.Http({ method: "GET", uri: "/pools", code: 200 }))).annotate({
69
+ identifier: "ListPoolsRequest",
70
+ });
71
+ export const ListPoolsResponseBodyItemMembersItemType = S.String;
72
+ export const ListPoolsResponseBodyItemMembersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
73
+ id: S.String,
74
+ node: S.String,
75
+ storage: S.optional(S.String),
76
+ type: ListPoolsResponseBodyItemMembersItemType,
77
+ vmid: S.optional(S.Number),
78
+ })).annotate({
79
+ identifier: "ListPoolsResponseBodyItemMembersItem",
80
+ });
81
+ export const ListPoolsResponseBodyItemMembersList = /*@__PURE__*/ S.Array(ListPoolsResponseBodyItemMembersItem);
82
+ export const ListPoolsResponseBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
83
+ comment: S.optional(S.String),
84
+ members: S.optional(ListPoolsResponseBodyItemMembersList),
85
+ poolid: S.String,
86
+ })).annotate({
87
+ identifier: "ListPoolsResponseBodyItem",
88
+ });
89
+ export const ListPoolsResponseBodyList = /*@__PURE__*/ S.Array(ListPoolsResponseBodyItem);
90
+ export const ListPoolsResponse = /*@__PURE__*/ S.suspend(() => ListPoolsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
91
+ identifier: "ListPoolsResponse",
92
+ });
93
+ export const PutPoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
94
+ poolid: S.String.pipe(T.Label()),
95
+ allow_move: S.optional(S.String.pipe(T.Body("allow-move"))),
96
+ comment: S.optional(S.String),
97
+ delete: S.optional(S.String),
98
+ storage: S.optional(S.String),
99
+ vms: S.optional(S.String),
100
+ }).pipe(T.Http({
101
+ method: "PUT",
102
+ uri: "/pools/{poolid}",
103
+ code: 200,
104
+ contentType: "form-urlencoded",
105
+ }))).annotate({ identifier: "PutPoolRequest" });
106
+ export const PutPoolResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
107
+ identifier: "PutPoolResponse",
108
+ });
109
+ export const PutPoolsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
110
+ allow_move: S.optional(S.String.pipe(T.Body("allow-move"))),
111
+ comment: S.optional(S.String),
112
+ delete: S.optional(S.String),
113
+ poolid: S.String,
114
+ storage: S.optional(S.String),
115
+ vms: S.optional(S.String),
116
+ }).pipe(T.Http({
117
+ method: "PUT",
118
+ uri: "/pools",
119
+ code: 200,
120
+ contentType: "form-urlencoded",
121
+ }))).annotate({
122
+ identifier: "PutPoolsRequest",
123
+ });
124
+ export const PutPoolsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
125
+ identifier: "PutPoolsResponse",
126
+ });
127
+ /** Create new pool. (root-privileged endpoint) */
128
+ export const createPool = /*@__PURE__*/ API.make(() => ({
129
+ input: CreatePoolRequest,
130
+ output: CreatePoolResponse,
131
+ errors: [],
132
+ protocol: ProxmoxProtocol,
133
+ retry: Retry.Retry,
134
+ }));
135
+ /** Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). (root-privileged endpoint) */
136
+ export const deletePool = /*@__PURE__*/ API.make(() => ({
137
+ input: DeletePoolRequest,
138
+ output: DeletePoolResponse,
139
+ errors: [],
140
+ protocol: ProxmoxProtocol,
141
+ retry: Retry.Retry,
142
+ }));
143
+ /** Delete pool. (root-privileged endpoint) */
144
+ export const deletePools = /*@__PURE__*/ API.make(() => ({
145
+ input: DeletePoolsRequest,
146
+ output: DeletePoolsResponse,
147
+ errors: [],
148
+ protocol: ProxmoxProtocol,
149
+ retry: Retry.Retry,
150
+ }));
151
+ /** Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). */
152
+ export const getPool = /*@__PURE__*/ API.make(() => ({
153
+ input: GetPoolRequest,
154
+ output: GetPoolResponse,
155
+ errors: [],
156
+ protocol: ProxmoxProtocol,
157
+ retry: Retry.Retry,
158
+ }));
159
+ /** List pools or get pool configuration. */
160
+ export const listPools = /*@__PURE__*/ API.make(() => ({
161
+ input: ListPoolsRequest,
162
+ output: ListPoolsResponse,
163
+ errors: [],
164
+ protocol: ProxmoxProtocol,
165
+ retry: Retry.Retry,
166
+ }));
167
+ /** Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). (root-privileged endpoint) */
168
+ export const putPool = /*@__PURE__*/ API.make(() => ({
169
+ input: PutPoolRequest,
170
+ output: PutPoolResponse,
171
+ errors: [],
172
+ protocol: ProxmoxProtocol,
173
+ retry: Retry.Retry,
174
+ }));
175
+ /** Update pool. (root-privileged endpoint) */
176
+ export const putPools = /*@__PURE__*/ API.make(() => ({
177
+ input: PutPoolsRequest,
178
+ output: PutPoolsResponse,
179
+ errors: [],
180
+ protocol: ProxmoxProtocol,
181
+ retry: Retry.Retry,
182
+ }));
183
+ //# sourceMappingURL=pools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pools.js","sourceRoot":"","sources":["../../src/services/pools.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,eAAe,GAGhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAQrC,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC5D,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM;CACjB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,GA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AC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,317 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type ProxmoxOpError, type ProxmoxOpContext } from "../protocol.ts";
4
+ export type { ProxmoxOpError, ProxmoxOpContext };
5
+ export type CreateStorageRequestFormat = "raw" | "qcow2" | "subvol" | "vmdk";
6
+ export declare const CreateStorageRequestFormat: any;
7
+ export type CreateStorageRequestPreallocation = "off" | "metadata" | "falloc" | "full";
8
+ export declare const CreateStorageRequestPreallocation: any;
9
+ export type CreateStorageRequestSaferemoveStepsize = "1" | "2" | "4" | "8" | "16" | "32";
10
+ export declare const CreateStorageRequestSaferemoveStepsize: any;
11
+ export type CreateStorageRequestSmbversion = "default" | "2.0" | "2.1" | "3" | "3.0" | "3.11";
12
+ export declare const CreateStorageRequestSmbversion: any;
13
+ export type CreateStorageRequestType = "btrfs" | "cephfs" | "cifs" | "dir" | "esxi" | "iscsi" | "iscsidirect" | "lvm" | "lvmthin" | "nfs" | "pbs" | "rbd" | "zfs" | "zfspool";
14
+ export declare const CreateStorageRequestType: any;
15
+ export interface CreateStorageRequest {
16
+ /** Authsupported. */
17
+ authsupported?: string;
18
+ /** Base volume. This volume is automatically activated. */
19
+ base?: string;
20
+ /** ZFS block size */
21
+ blocksize?: string;
22
+ /** Set I/O bandwidth limit for various operations (in KiB/s). */
23
+ bwlimit?: string;
24
+ /** host group for comstar views */
25
+ comstar_hg?: string;
26
+ /** target group for comstar views */
27
+ comstar_tg?: string;
28
+ /** Allowed content types. NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. */
29
+ content?: string;
30
+ /** Overrides for default content type directories. */
31
+ content_dirs?: string;
32
+ /** Create the base directory if it doesn't exist. */
33
+ create_base_path?: string;
34
+ /** Populate the directory with the default structure. */
35
+ create_subdirs?: string;
36
+ /** Data Pool (for erasure coding only) */
37
+ data_pool?: string;
38
+ /** Proxmox Backup Server datastore name. */
39
+ datastore?: string;
40
+ /** Flag to disable the storage. */
41
+ disable?: string;
42
+ /** CIFS domain. */
43
+ domain?: string;
44
+ /** Encryption key. Use 'autogen' to generate one automatically without passphrase. */
45
+ encryption_key?: string;
46
+ /** NFS export path. */
47
+ export?: string;
48
+ /** Certificate SHA 256 fingerprint. */
49
+ fingerprint?: string;
50
+ /** Default image format. */
51
+ format?: CreateStorageRequestFormat | (string & {});
52
+ /** The Ceph filesystem name. */
53
+ fs_name?: string;
54
+ /** Mount CephFS through FUSE. */
55
+ fuse?: string;
56
+ /** Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. */
57
+ is_mountpoint?: string;
58
+ /** iscsi provider */
59
+ iscsiprovider?: string;
60
+ /** Client keyring contents (for external clusters). */
61
+ keyring?: string;
62
+ /** Always access rbd through krbd kernel module. */
63
+ krbd?: string;
64
+ /** target portal group for Linux LIO targets */
65
+ lio_tpg?: string;
66
+ /** Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup. */
67
+ master_pubkey?: string;
68
+ /** Maximal number of protected backups per guest. Use '-1' for unlimited. */
69
+ max_protected_backups?: string;
70
+ /** Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead. */
71
+ mkdir?: string;
72
+ /** IP addresses of monitors (for external clusters). */
73
+ monhost?: string;
74
+ /** mount point */
75
+ mountpoint?: string;
76
+ /** Namespace. */
77
+ namespace?: string;
78
+ /** Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system. */
79
+ nocow?: string;
80
+ /** List of nodes for which the storage configuration applies. */
81
+ nodes?: string;
82
+ /** disable write caching on the target */
83
+ nowritecache?: string;
84
+ /** NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs') */
85
+ options?: string;
86
+ /** Password for accessing the share/datastore. */
87
+ password?: string;
88
+ /** File system path. */
89
+ path?: string;
90
+ /** Pool. */
91
+ pool?: string;
92
+ /** Use this port to connect to the storage instead of the default one (for example, with PBS or ESXi). For NFS and CIFS, use the 'options' option to configure the port via the mount options. */
93
+ port?: string;
94
+ /** iSCSI portal (IP or DNS name with optional port). */
95
+ portal?: string;
96
+ /** Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off. */
97
+ preallocation?: CreateStorageRequestPreallocation | (string & {});
98
+ /** The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups. */
99
+ prune_backups?: string;
100
+ /** Zero-out data when removing LVs. */
101
+ saferemove?: string;
102
+ /** Wipe step size in MiB. It will be capped to the maximum supported by the storage. */
103
+ saferemove_stepsize?: CreateStorageRequestSaferemoveStepsize | (string & {});
104
+ /** Wipe throughput (cstream -t parameter value). */
105
+ saferemove_throughput?: string;
106
+ /** Server IP or DNS name. */
107
+ server?: string;
108
+ /** CIFS share. */
109
+ share?: string;
110
+ /** Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such! */
111
+ shared?: string;
112
+ /** Disable TLS certificate verification, only enable on fully trusted networks! */
113
+ skip_cert_verification?: string;
114
+ /** SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server. */
115
+ smbversion?: CreateStorageRequestSmbversion | (string & {});
116
+ /** Enable support for creating storage-vendor agnostic snapshot through volume backing-chains. */
117
+ snapshot_as_volume_chain?: string;
118
+ /** use sparse volumes */
119
+ sparse?: string;
120
+ /** The storage identifier. */
121
+ storage: string;
122
+ /** Subdir to mount. */
123
+ subdir?: string;
124
+ /** Only list logical volumes tagged with 'pve-vm-ID'. */
125
+ tagged_only?: string;
126
+ /** iSCSI target. */
127
+ target?: string;
128
+ /** LVM thin pool LV name. */
129
+ thinpool?: string;
130
+ /** Storage type. */
131
+ type: CreateStorageRequestType | (string & {});
132
+ /** RBD Id. */
133
+ username?: string;
134
+ /** Volume group name. */
135
+ vgname?: string;
136
+ /** Base path where to look for the created ZFS block devices. Set automatically during creation if not specified. Usually '/dev/zvol'. */
137
+ zfs_base_path?: string;
138
+ }
139
+ export declare const CreateStorageRequest: S.Schema<CreateStorageRequest>;
140
+ export interface CreateStorageResponseConfig {
141
+ encryption_key?: string;
142
+ }
143
+ export declare const CreateStorageResponseConfig: S.Schema<CreateStorageResponseConfig>;
144
+ export type CreateStorageResponseType = "btrfs" | "cephfs" | "cifs" | "dir" | "esxi" | "iscsi" | "iscsidirect" | "lvm" | "lvmthin" | "nfs" | "pbs" | "rbd" | "zfs" | "zfspool";
145
+ export declare const CreateStorageResponseType: any;
146
+ export interface CreateStorageResponse {
147
+ config?: CreateStorageResponseConfig;
148
+ storage: string;
149
+ type: CreateStorageResponseType;
150
+ }
151
+ export declare const CreateStorageResponse: S.Schema<CreateStorageResponse>;
152
+ export interface DeleteStorageRequest {
153
+ storage: string;
154
+ }
155
+ export declare const DeleteStorageRequest: S.Schema<DeleteStorageRequest>;
156
+ export interface DeleteStorageResponse {
157
+ }
158
+ export declare const DeleteStorageResponse: S.Schema<DeleteStorageResponse>;
159
+ export interface GetStorageRequest {
160
+ storage: string;
161
+ }
162
+ export declare const GetStorageRequest: S.Schema<GetStorageRequest>;
163
+ export type GetStorageResponse = unknown;
164
+ export declare const GetStorageResponse: S.Schema<GetStorageResponse>;
165
+ export type ListStorageRequestType = "btrfs" | "cephfs" | "cifs" | "dir" | "esxi" | "iscsi" | "iscsidirect" | "lvm" | "lvmthin" | "nfs" | "pbs" | "rbd" | "zfs" | "zfspool";
166
+ export declare const ListStorageRequestType: any;
167
+ export interface ListStorageRequest {
168
+ /** Only list storage of specific type */
169
+ type?: ListStorageRequestType | (string & {});
170
+ }
171
+ export declare const ListStorageRequest: S.Schema<ListStorageRequest>;
172
+ export interface ListStorageResponseBodyItem {
173
+ storage: string;
174
+ }
175
+ export declare const ListStorageResponseBodyItem: S.Schema<ListStorageResponseBodyItem>;
176
+ export type ListStorageResponseBodyList = Array<ListStorageResponseBodyItem>;
177
+ export declare const ListStorageResponseBodyList: S.Schema<ListStorageResponseBodyList>;
178
+ export type ListStorageResponse = ListStorageResponseBodyList;
179
+ export declare const ListStorageResponse: S.Schema<ListStorageResponse>;
180
+ export type PutStorageRequestFormat = "raw" | "qcow2" | "subvol" | "vmdk";
181
+ export declare const PutStorageRequestFormat: any;
182
+ export type PutStorageRequestPreallocation = "off" | "metadata" | "falloc" | "full";
183
+ export declare const PutStorageRequestPreallocation: any;
184
+ export type PutStorageRequestSaferemoveStepsize = "1" | "2" | "4" | "8" | "16" | "32";
185
+ export declare const PutStorageRequestSaferemoveStepsize: any;
186
+ export type PutStorageRequestSmbversion = "default" | "2.0" | "2.1" | "3" | "3.0" | "3.11";
187
+ export declare const PutStorageRequestSmbversion: any;
188
+ export interface PutStorageRequest {
189
+ storage: string;
190
+ /** ZFS block size */
191
+ blocksize?: string;
192
+ /** Set I/O bandwidth limit for various operations (in KiB/s). */
193
+ bwlimit?: string;
194
+ /** host group for comstar views */
195
+ comstar_hg?: string;
196
+ /** target group for comstar views */
197
+ comstar_tg?: string;
198
+ /** Allowed content types. NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. */
199
+ content?: string;
200
+ /** Overrides for default content type directories. */
201
+ content_dirs?: string;
202
+ /** Create the base directory if it doesn't exist. */
203
+ create_base_path?: string;
204
+ /** Populate the directory with the default structure. */
205
+ create_subdirs?: string;
206
+ /** Data Pool (for erasure coding only) */
207
+ data_pool?: string;
208
+ /** A list of settings you want to delete. */
209
+ delete?: string;
210
+ /** Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. */
211
+ digest?: string;
212
+ /** Flag to disable the storage. */
213
+ disable?: string;
214
+ /** CIFS domain. */
215
+ domain?: string;
216
+ /** Encryption key. Use 'autogen' to generate one automatically without passphrase. */
217
+ encryption_key?: string;
218
+ /** Certificate SHA 256 fingerprint. */
219
+ fingerprint?: string;
220
+ /** Default image format. */
221
+ format?: PutStorageRequestFormat | (string & {});
222
+ /** The Ceph filesystem name. */
223
+ fs_name?: string;
224
+ /** Mount CephFS through FUSE. */
225
+ fuse?: string;
226
+ /** Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. */
227
+ is_mountpoint?: string;
228
+ /** Client keyring contents (for external clusters). */
229
+ keyring?: string;
230
+ /** Always access rbd through krbd kernel module. */
231
+ krbd?: string;
232
+ /** target portal group for Linux LIO targets */
233
+ lio_tpg?: string;
234
+ /** Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup. */
235
+ master_pubkey?: string;
236
+ /** Maximal number of protected backups per guest. Use '-1' for unlimited. */
237
+ max_protected_backups?: string;
238
+ /** Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead. */
239
+ mkdir?: string;
240
+ /** IP addresses of monitors (for external clusters). */
241
+ monhost?: string;
242
+ /** mount point */
243
+ mountpoint?: string;
244
+ /** Namespace. */
245
+ namespace?: string;
246
+ /** Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system. */
247
+ nocow?: string;
248
+ /** List of nodes for which the storage configuration applies. */
249
+ nodes?: string;
250
+ /** disable write caching on the target */
251
+ nowritecache?: string;
252
+ /** NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs') */
253
+ options?: string;
254
+ /** Password for accessing the share/datastore. */
255
+ password?: string;
256
+ /** Pool. */
257
+ pool?: string;
258
+ /** Use this port to connect to the storage instead of the default one (for example, with PBS or ESXi). For NFS and CIFS, use the 'options' option to configure the port via the mount options. */
259
+ port?: string;
260
+ /** Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off. */
261
+ preallocation?: PutStorageRequestPreallocation | (string & {});
262
+ /** The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups. */
263
+ prune_backups?: string;
264
+ /** Zero-out data when removing LVs. */
265
+ saferemove?: string;
266
+ /** Wipe step size in MiB. It will be capped to the maximum supported by the storage. */
267
+ saferemove_stepsize?: PutStorageRequestSaferemoveStepsize | (string & {});
268
+ /** Wipe throughput (cstream -t parameter value). */
269
+ saferemove_throughput?: string;
270
+ /** Server IP or DNS name. */
271
+ server?: string;
272
+ /** Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such! */
273
+ shared?: string;
274
+ /** Disable TLS certificate verification, only enable on fully trusted networks! */
275
+ skip_cert_verification?: string;
276
+ /** SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server. */
277
+ smbversion?: PutStorageRequestSmbversion | (string & {});
278
+ /** Enable support for creating storage-vendor agnostic snapshot through volume backing-chains. */
279
+ snapshot_as_volume_chain?: string;
280
+ /** use sparse volumes */
281
+ sparse?: string;
282
+ /** Subdir to mount. */
283
+ subdir?: string;
284
+ /** Only list logical volumes tagged with 'pve-vm-ID'. */
285
+ tagged_only?: string;
286
+ /** RBD Id. */
287
+ username?: string;
288
+ /** Base path where to look for the created ZFS block devices. Set automatically during creation if not specified. Usually '/dev/zvol'. */
289
+ zfs_base_path?: string;
290
+ }
291
+ export declare const PutStorageRequest: S.Schema<PutStorageRequest>;
292
+ export type PutStorageResponseConfig = CreateStorageResponseConfig;
293
+ export declare const PutStorageResponseConfig: S.Schema<CreateStorageResponseConfig>;
294
+ export type PutStorageResponseType = "btrfs" | "cephfs" | "cifs" | "dir" | "esxi" | "iscsi" | "iscsidirect" | "lvm" | "lvmthin" | "nfs" | "pbs" | "rbd" | "zfs" | "zfspool";
295
+ export declare const PutStorageResponseType: any;
296
+ export interface PutStorageResponse {
297
+ config?: CreateStorageResponseConfig;
298
+ storage: string;
299
+ type: PutStorageResponseType;
300
+ }
301
+ export declare const PutStorageResponse: S.Schema<PutStorageResponse>;
302
+ export type CreateStorageError = ProxmoxOpError;
303
+ /** Create a new storage. (root-privileged endpoint) */
304
+ export declare const createStorage: API.OperationMethod<CreateStorageRequest, CreateStorageResponse, CreateStorageError, ProxmoxOpContext>;
305
+ export type DeleteStorageError = ProxmoxOpError;
306
+ /** Delete storage configuration. (root-privileged endpoint) */
307
+ export declare const deleteStorage: API.OperationMethod<DeleteStorageRequest, DeleteStorageResponse, DeleteStorageError, ProxmoxOpContext>;
308
+ export type GetStorageError = ProxmoxOpError;
309
+ /** Read storage configuration. */
310
+ export declare const getStorage: API.OperationMethod<GetStorageRequest, GetStorageResponse, GetStorageError, ProxmoxOpContext>;
311
+ export type ListStorageError = ProxmoxOpError;
312
+ /** Storage index. */
313
+ export declare const listStorage: API.OperationMethod<ListStorageRequest, ListStorageResponse, ListStorageError, ProxmoxOpContext>;
314
+ export type PutStorageError = ProxmoxOpError;
315
+ /** Update storage configuration. (root-privileged endpoint) */
316
+ export declare const putStorage: API.OperationMethod<PutStorageRequest, PutStorageResponse, PutStorageError, ProxmoxOpContext>;
317
+ //# sourceMappingURL=storage.d.ts.map