@homeflare/distilled-proxmox-backup 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 (113) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +102 -0
  3. package/dist/credentials.d.ts +50 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +105 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +100 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +73 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +33 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +33 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +19 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +158 -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 +75 -0
  22. package/dist/protocol.test.js.map +1 -0
  23. package/dist/retry.d.ts +53 -0
  24. package/dist/retry.d.ts.map +1 -0
  25. package/dist/retry.js +46 -0
  26. package/dist/retry.js.map +1 -0
  27. package/dist/services/access.d.ts +587 -0
  28. package/dist/services/access.d.ts.map +1 -0
  29. package/dist/services/access.js +787 -0
  30. package/dist/services/access.js.map +1 -0
  31. package/dist/services/admin.d.ts +1110 -0
  32. package/dist/services/admin.d.ts.map +1 -0
  33. package/dist/services/admin.js +1428 -0
  34. package/dist/services/admin.js.map +1 -0
  35. package/dist/services/backup.d.ts +224 -0
  36. package/dist/services/backup.d.ts.map +1 -0
  37. package/dist/services/backup.js +325 -0
  38. package/dist/services/backup.js.map +1 -0
  39. package/dist/services/config.d.ts +3662 -0
  40. package/dist/services/config.d.ts.map +1 -0
  41. package/dist/services/config.js +4445 -0
  42. package/dist/services/config.js.map +1 -0
  43. package/dist/services/index.d.ts +14 -0
  44. package/dist/services/index.d.ts.map +1 -0
  45. package/dist/services/index.js +15 -0
  46. package/dist/services/index.js.map +1 -0
  47. package/dist/services/nodes.d.ts +1441 -0
  48. package/dist/services/nodes.d.ts.map +1 -0
  49. package/dist/services/nodes.js +1829 -0
  50. package/dist/services/nodes.js.map +1 -0
  51. package/dist/services/ping.d.ts +15 -0
  52. package/dist/services/ping.d.ts.map +1 -0
  53. package/dist/services/ping.js +21 -0
  54. package/dist/services/ping.js.map +1 -0
  55. package/dist/services/pull.d.ts +54 -0
  56. package/dist/services/pull.d.ts.map +1 -0
  57. package/dist/services/pull.js +47 -0
  58. package/dist/services/pull.js.map +1 -0
  59. package/dist/services/push.d.ts +50 -0
  60. package/dist/services/push.d.ts.map +1 -0
  61. package/dist/services/push.js +45 -0
  62. package/dist/services/push.js.map +1 -0
  63. package/dist/services/reader.d.ts +68 -0
  64. package/dist/services/reader.d.ts.map +1 -0
  65. package/dist/services/reader.js +89 -0
  66. package/dist/services/reader.js.map +1 -0
  67. package/dist/services/root.d.ts +14 -0
  68. package/dist/services/root.d.ts.map +1 -0
  69. package/dist/services/root.js +19 -0
  70. package/dist/services/root.js.map +1 -0
  71. package/dist/services/status.d.ts +78 -0
  72. package/dist/services/status.d.ts.map +1 -0
  73. package/dist/services/status.js +97 -0
  74. package/dist/services/status.js.map +1 -0
  75. package/dist/services/tape.d.ts +711 -0
  76. package/dist/services/tape.d.ts.map +1 -0
  77. package/dist/services/tape.js +986 -0
  78. package/dist/services/tape.js.map +1 -0
  79. package/dist/services/version.d.ts +17 -0
  80. package/dist/services/version.d.ts.map +1 -0
  81. package/dist/services/version.js +25 -0
  82. package/dist/services/version.js.map +1 -0
  83. package/dist/task.d.ts +48 -0
  84. package/dist/task.d.ts.map +1 -0
  85. package/dist/task.js +57 -0
  86. package/dist/task.js.map +1 -0
  87. package/dist/traits.d.ts +13 -0
  88. package/dist/traits.d.ts.map +1 -0
  89. package/dist/traits.js +15 -0
  90. package/dist/traits.js.map +1 -0
  91. package/package.json +81 -0
  92. package/src/credentials.ts +139 -0
  93. package/src/errors.ts +126 -0
  94. package/src/index.ts +36 -0
  95. package/src/protocol.test.ts +128 -0
  96. package/src/protocol.ts +196 -0
  97. package/src/retry.ts +79 -0
  98. package/src/services/access.ts +1787 -0
  99. package/src/services/admin.ts +3258 -0
  100. package/src/services/backup.ts +698 -0
  101. package/src/services/config.ts +10561 -0
  102. package/src/services/index.ts +14 -0
  103. package/src/services/nodes.ts +4313 -0
  104. package/src/services/ping.ts +43 -0
  105. package/src/services/pull.ts +118 -0
  106. package/src/services/push.ts +108 -0
  107. package/src/services/reader.ts +196 -0
  108. package/src/services/root.ts +39 -0
  109. package/src/services/status.ts +233 -0
  110. package/src/services/tape.ts +2257 -0
  111. package/src/services/version.ts +49 -0
  112. package/src/task.ts +84 -0
  113. package/src/traits.ts +46 -0
@@ -0,0 +1,3258 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidoc.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.ts";
5
+ import {
6
+ ProxmoxBackupProtocol,
7
+ type ProxmoxBackupOpError,
8
+ type ProxmoxBackupOpContext,
9
+ } from "../protocol.ts";
10
+ import * as Retry from "../retry.ts";
11
+
12
+ export type { ProxmoxBackupOpError, ProxmoxBackupOpContext };
13
+
14
+ export type CreateAdminDatastoreChangeOwnerRequestBackupType =
15
+ | "vm"
16
+ | "ct"
17
+ | "host";
18
+ export const CreateAdminDatastoreChangeOwnerRequestBackupType = S.String;
19
+
20
+ export interface CreateAdminDatastoreChangeOwnerRequest {
21
+ store: string;
22
+ /** Backup ID. */
23
+ backup_id: string;
24
+ /** Backup types. */
25
+ backup_type: CreateAdminDatastoreChangeOwnerRequestBackupType | (string & {});
26
+ /** Authentication ID */
27
+ new_owner: string;
28
+ /** Namespace. */
29
+ ns?: string;
30
+ }
31
+ export const CreateAdminDatastoreChangeOwnerRequest = /*@__PURE__*/ S.suspend(
32
+ () =>
33
+ S.Struct({
34
+ store: S.String.pipe(T.Label()),
35
+ backup_id: S.String.pipe(T.Body("backup-id")),
36
+ backup_type: CreateAdminDatastoreChangeOwnerRequestBackupType.pipe(
37
+ T.Body("backup-type"),
38
+ ),
39
+ new_owner: S.String.pipe(T.Body("new-owner")),
40
+ ns: S.optional(S.String),
41
+ }).pipe(
42
+ T.Http({
43
+ method: "POST",
44
+ uri: "/admin/datastore/{store}/change-owner",
45
+ code: 200,
46
+ contentType: "form-urlencoded",
47
+ }),
48
+ ),
49
+ ).annotate({
50
+ identifier: "CreateAdminDatastoreChangeOwnerRequest",
51
+ }) as any as S.Schema<CreateAdminDatastoreChangeOwnerRequest>;
52
+
53
+ export interface CreateAdminDatastoreChangeOwnerResponse {}
54
+ export const CreateAdminDatastoreChangeOwnerResponse = /*@__PURE__*/ S.suspend(
55
+ () => S.Struct({}),
56
+ ).annotate({
57
+ identifier: "CreateAdminDatastoreChangeOwnerResponse",
58
+ }) as any as S.Schema<CreateAdminDatastoreChangeOwnerResponse>;
59
+
60
+ export interface CreateAdminDatastoreGcRequest {
61
+ store: string;
62
+ }
63
+ export const CreateAdminDatastoreGcRequest = /*@__PURE__*/ S.suspend(() =>
64
+ S.Struct({
65
+ store: S.String.pipe(T.Label()),
66
+ }).pipe(
67
+ T.Http({ method: "POST", uri: "/admin/datastore/{store}/gc", code: 200 }),
68
+ ),
69
+ ).annotate({
70
+ identifier: "CreateAdminDatastoreGcRequest",
71
+ }) as any as S.Schema<CreateAdminDatastoreGcRequest>;
72
+
73
+ export type CreateAdminDatastoreGcResponse = string;
74
+ export const CreateAdminDatastoreGcResponse = /*@__PURE__*/ S.suspend(() =>
75
+ S.String.pipe(T.RawResponseRoot()),
76
+ ).annotate({
77
+ identifier: "CreateAdminDatastoreGcResponse",
78
+ }) as any as S.Schema<CreateAdminDatastoreGcResponse>;
79
+
80
+ export interface CreateAdminDatastoreMountRequest {
81
+ store: string;
82
+ }
83
+ export const CreateAdminDatastoreMountRequest = /*@__PURE__*/ S.suspend(() =>
84
+ S.Struct({
85
+ store: S.String.pipe(T.Label()),
86
+ }).pipe(
87
+ T.Http({
88
+ method: "POST",
89
+ uri: "/admin/datastore/{store}/mount",
90
+ code: 200,
91
+ }),
92
+ ),
93
+ ).annotate({
94
+ identifier: "CreateAdminDatastoreMountRequest",
95
+ }) as any as S.Schema<CreateAdminDatastoreMountRequest>;
96
+
97
+ export type CreateAdminDatastoreMountResponse = string;
98
+ export const CreateAdminDatastoreMountResponse = /*@__PURE__*/ S.suspend(() =>
99
+ S.String.pipe(T.RawResponseRoot()),
100
+ ).annotate({
101
+ identifier: "CreateAdminDatastoreMountResponse",
102
+ }) as any as S.Schema<CreateAdminDatastoreMountResponse>;
103
+
104
+ export interface CreateAdminDatastoreNamespaceRequest {
105
+ store: string;
106
+ /** The name of the new namespace to add at the parent. */
107
+ name: string;
108
+ /** Namespace. */
109
+ parent?: string;
110
+ }
111
+ export const CreateAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(
112
+ () =>
113
+ S.Struct({
114
+ store: S.String.pipe(T.Label()),
115
+ name: S.String,
116
+ parent: S.optional(S.String),
117
+ }).pipe(
118
+ T.Http({
119
+ method: "POST",
120
+ uri: "/admin/datastore/{store}/namespace",
121
+ code: 200,
122
+ contentType: "form-urlencoded",
123
+ }),
124
+ ),
125
+ ).annotate({
126
+ identifier: "CreateAdminDatastoreNamespaceRequest",
127
+ }) as any as S.Schema<CreateAdminDatastoreNamespaceRequest>;
128
+
129
+ export type CreateAdminDatastoreNamespaceResponse = string;
130
+ export const CreateAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(
131
+ () => S.String.pipe(T.RawResponseRoot()),
132
+ ).annotate({
133
+ identifier: "CreateAdminDatastoreNamespaceResponse",
134
+ }) as any as S.Schema<CreateAdminDatastoreNamespaceResponse>;
135
+
136
+ export type CreateAdminDatastorePruneRequestBackupType = "vm" | "ct" | "host";
137
+ export const CreateAdminDatastorePruneRequestBackupType = S.String;
138
+
139
+ export interface CreateAdminDatastorePruneRequest {
140
+ store: string;
141
+ /** Backup ID. */
142
+ backup_id: string;
143
+ /** Backup types. */
144
+ backup_type: CreateAdminDatastorePruneRequestBackupType | (string & {});
145
+ /** Just show what prune would do, but do not delete anything. */
146
+ dry_run?: string;
147
+ /** Number of daily backups to keep. */
148
+ keep_daily?: string;
149
+ /** Number of hourly backups to keep. */
150
+ keep_hourly?: string;
151
+ /** Number of backups to keep. */
152
+ keep_last?: string;
153
+ /** Number of monthly backups to keep. */
154
+ keep_monthly?: string;
155
+ /** Number of weekly backups to keep. */
156
+ keep_weekly?: string;
157
+ /** Number of yearly backups to keep. */
158
+ keep_yearly?: string;
159
+ /** Namespace. */
160
+ ns?: string;
161
+ /** Spins up an asynchronous task that does the work. */
162
+ use_task?: string;
163
+ }
164
+ export const CreateAdminDatastorePruneRequest = /*@__PURE__*/ S.suspend(() =>
165
+ S.Struct({
166
+ store: S.String.pipe(T.Label()),
167
+ backup_id: S.String.pipe(T.Body("backup-id")),
168
+ backup_type: CreateAdminDatastorePruneRequestBackupType.pipe(
169
+ T.Body("backup-type"),
170
+ ),
171
+ dry_run: S.optional(S.String.pipe(T.Body("dry-run"))),
172
+ keep_daily: S.optional(S.String.pipe(T.Body("keep-daily"))),
173
+ keep_hourly: S.optional(S.String.pipe(T.Body("keep-hourly"))),
174
+ keep_last: S.optional(S.String.pipe(T.Body("keep-last"))),
175
+ keep_monthly: S.optional(S.String.pipe(T.Body("keep-monthly"))),
176
+ keep_weekly: S.optional(S.String.pipe(T.Body("keep-weekly"))),
177
+ keep_yearly: S.optional(S.String.pipe(T.Body("keep-yearly"))),
178
+ ns: S.optional(S.String),
179
+ use_task: S.optional(S.String.pipe(T.Body("use-task"))),
180
+ }).pipe(
181
+ T.Http({
182
+ method: "POST",
183
+ uri: "/admin/datastore/{store}/prune",
184
+ code: 200,
185
+ contentType: "form-urlencoded",
186
+ }),
187
+ ),
188
+ ).annotate({
189
+ identifier: "CreateAdminDatastorePruneRequest",
190
+ }) as any as S.Schema<CreateAdminDatastorePruneRequest>;
191
+
192
+ export type CreateAdminDatastorePruneResponseBodyItemBackupType =
193
+ | "vm"
194
+ | "ct"
195
+ | "host";
196
+ export const CreateAdminDatastorePruneResponseBodyItemBackupType = S.String;
197
+
198
+ export interface CreateAdminDatastorePruneResponseBodyItem {
199
+ backup_id?: string;
200
+ backup_time?: number;
201
+ backup_type?: CreateAdminDatastorePruneResponseBodyItemBackupType;
202
+ keep: unknown;
203
+ }
204
+ export const CreateAdminDatastorePruneResponseBodyItem =
205
+ /*@__PURE__*/ S.suspend(() =>
206
+ S.Struct({
207
+ backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
208
+ backup_time: S.optional(S.Number.pipe(T.Body("backup-time"))),
209
+ backup_type: S.optional(
210
+ CreateAdminDatastorePruneResponseBodyItemBackupType.pipe(
211
+ T.Body("backup-type"),
212
+ ),
213
+ ),
214
+ keep: S.Unknown,
215
+ }),
216
+ ).annotate({
217
+ identifier: "CreateAdminDatastorePruneResponseBodyItem",
218
+ }) as any as S.Schema<CreateAdminDatastorePruneResponseBodyItem>;
219
+
220
+ export type CreateAdminDatastorePruneResponseBodyList =
221
+ Array<CreateAdminDatastorePruneResponseBodyItem>;
222
+ export const CreateAdminDatastorePruneResponseBodyList = /*@__PURE__*/ S.Array(
223
+ CreateAdminDatastorePruneResponseBodyItem,
224
+ ) as any as S.Schema<CreateAdminDatastorePruneResponseBodyList>;
225
+
226
+ export type CreateAdminDatastorePruneResponse =
227
+ CreateAdminDatastorePruneResponseBodyList;
228
+ export const CreateAdminDatastorePruneResponse = /*@__PURE__*/ S.suspend(() =>
229
+ CreateAdminDatastorePruneResponseBodyList.pipe(T.RawResponseRoot()),
230
+ ).annotate({
231
+ identifier: "CreateAdminDatastorePruneResponse",
232
+ }) as any as S.Schema<CreateAdminDatastorePruneResponse>;
233
+
234
+ export interface CreateAdminDatastorePruneDatastoreRequest {
235
+ store: string;
236
+ /** Just show what prune would do, but do not delete anything. */
237
+ dry_run?: string;
238
+ /** Number of daily backups to keep. */
239
+ keep_daily?: string;
240
+ /** Number of hourly backups to keep. */
241
+ keep_hourly?: string;
242
+ /** Number of backups to keep. */
243
+ keep_last?: string;
244
+ /** Number of monthly backups to keep. */
245
+ keep_monthly?: string;
246
+ /** Number of weekly backups to keep. */
247
+ keep_weekly?: string;
248
+ /** Number of yearly backups to keep. */
249
+ keep_yearly?: string;
250
+ /** How many levels of namespaces should be operated on (0 == no recursion, empty == automatic full recursion, namespace depths reduce maximum allowed value) */
251
+ max_depth?: string;
252
+ /** Namespace. */
253
+ ns?: string;
254
+ }
255
+ export const CreateAdminDatastorePruneDatastoreRequest =
256
+ /*@__PURE__*/ S.suspend(() =>
257
+ S.Struct({
258
+ store: S.String.pipe(T.Label()),
259
+ dry_run: S.optional(S.String.pipe(T.Body("dry-run"))),
260
+ keep_daily: S.optional(S.String.pipe(T.Body("keep-daily"))),
261
+ keep_hourly: S.optional(S.String.pipe(T.Body("keep-hourly"))),
262
+ keep_last: S.optional(S.String.pipe(T.Body("keep-last"))),
263
+ keep_monthly: S.optional(S.String.pipe(T.Body("keep-monthly"))),
264
+ keep_weekly: S.optional(S.String.pipe(T.Body("keep-weekly"))),
265
+ keep_yearly: S.optional(S.String.pipe(T.Body("keep-yearly"))),
266
+ max_depth: S.optional(S.String.pipe(T.Body("max-depth"))),
267
+ ns: S.optional(S.String),
268
+ }).pipe(
269
+ T.Http({
270
+ method: "POST",
271
+ uri: "/admin/datastore/{store}/prune-datastore",
272
+ code: 200,
273
+ contentType: "form-urlencoded",
274
+ }),
275
+ ),
276
+ ).annotate({
277
+ identifier: "CreateAdminDatastorePruneDatastoreRequest",
278
+ }) as any as S.Schema<CreateAdminDatastorePruneDatastoreRequest>;
279
+
280
+ export type CreateAdminDatastorePruneDatastoreResponse = string;
281
+ export const CreateAdminDatastorePruneDatastoreResponse =
282
+ /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
283
+ identifier: "CreateAdminDatastorePruneDatastoreResponse",
284
+ }) as any as S.Schema<CreateAdminDatastorePruneDatastoreResponse>;
285
+
286
+ export interface CreateAdminDatastoreUnmountRequest {
287
+ store: string;
288
+ }
289
+ export const CreateAdminDatastoreUnmountRequest = /*@__PURE__*/ S.suspend(() =>
290
+ S.Struct({
291
+ store: S.String.pipe(T.Label()),
292
+ }).pipe(
293
+ T.Http({
294
+ method: "POST",
295
+ uri: "/admin/datastore/{store}/unmount",
296
+ code: 200,
297
+ }),
298
+ ),
299
+ ).annotate({
300
+ identifier: "CreateAdminDatastoreUnmountRequest",
301
+ }) as any as S.Schema<CreateAdminDatastoreUnmountRequest>;
302
+
303
+ export type CreateAdminDatastoreUnmountResponse = string;
304
+ export const CreateAdminDatastoreUnmountResponse = /*@__PURE__*/ S.suspend(() =>
305
+ S.String.pipe(T.RawResponseRoot()),
306
+ ).annotate({
307
+ identifier: "CreateAdminDatastoreUnmountResponse",
308
+ }) as any as S.Schema<CreateAdminDatastoreUnmountResponse>;
309
+
310
+ export type DeleteAdminDatastoreGroupsRequestBackupType = "vm" | "ct" | "host";
311
+ export const DeleteAdminDatastoreGroupsRequestBackupType = S.String;
312
+
313
+ export interface DeleteAdminDatastoreGroupsRequest {
314
+ store: string;
315
+ /** Backup ID. */
316
+ backup_id: string;
317
+ /** Backup types. */
318
+ backup_type: DeleteAdminDatastoreGroupsRequestBackupType | (string & {});
319
+ /** Return error when group cannot be deleted because of protected snapshots */
320
+ error_on_protected?: string;
321
+ /** Namespace. */
322
+ ns?: string;
323
+ }
324
+ export const DeleteAdminDatastoreGroupsRequest = /*@__PURE__*/ S.suspend(() =>
325
+ S.Struct({
326
+ store: S.String.pipe(T.Label()),
327
+ backup_id: S.String.pipe(T.Body("backup-id")),
328
+ backup_type: DeleteAdminDatastoreGroupsRequestBackupType.pipe(
329
+ T.Body("backup-type"),
330
+ ),
331
+ error_on_protected: S.optional(S.String.pipe(T.Body("error-on-protected"))),
332
+ ns: S.optional(S.String),
333
+ }).pipe(
334
+ T.Http({
335
+ method: "DELETE",
336
+ uri: "/admin/datastore/{store}/groups",
337
+ code: 200,
338
+ contentType: "form-urlencoded",
339
+ }),
340
+ ),
341
+ ).annotate({
342
+ identifier: "DeleteAdminDatastoreGroupsRequest",
343
+ }) as any as S.Schema<DeleteAdminDatastoreGroupsRequest>;
344
+
345
+ export interface DeleteAdminDatastoreGroupsResponse {
346
+ protected_snapshots?: number;
347
+ removed_groups?: number;
348
+ removed_snapshots?: number;
349
+ }
350
+ export const DeleteAdminDatastoreGroupsResponse = /*@__PURE__*/ S.suspend(() =>
351
+ S.Struct({
352
+ protected_snapshots: S.optional(
353
+ S.Number.pipe(T.Body("protected-snapshots")),
354
+ ),
355
+ removed_groups: S.optional(S.Number.pipe(T.Body("removed-groups"))),
356
+ removed_snapshots: S.optional(S.Number.pipe(T.Body("removed-snapshots"))),
357
+ }),
358
+ ).annotate({
359
+ identifier: "DeleteAdminDatastoreGroupsResponse",
360
+ }) as any as S.Schema<DeleteAdminDatastoreGroupsResponse>;
361
+
362
+ export interface DeleteAdminDatastoreNamespaceRequest {
363
+ store: string;
364
+ /** If set, all groups will be destroyed in the whole hierarchy below andincluding `ns`. If not set, only empty namespaces will be pruned. */
365
+ delete_groups?: string;
366
+ /** Return error when namespace cannot be deleted because of protected snapshots */
367
+ error_on_protected?: string;
368
+ /** Namespace. */
369
+ ns: string;
370
+ }
371
+ export const DeleteAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(
372
+ () =>
373
+ S.Struct({
374
+ store: S.String.pipe(T.Label()),
375
+ delete_groups: S.optional(S.String.pipe(T.Body("delete-groups"))),
376
+ error_on_protected: S.optional(
377
+ S.String.pipe(T.Body("error-on-protected")),
378
+ ),
379
+ ns: S.String,
380
+ }).pipe(
381
+ T.Http({
382
+ method: "DELETE",
383
+ uri: "/admin/datastore/{store}/namespace",
384
+ code: 200,
385
+ contentType: "form-urlencoded",
386
+ }),
387
+ ),
388
+ ).annotate({
389
+ identifier: "DeleteAdminDatastoreNamespaceRequest",
390
+ }) as any as S.Schema<DeleteAdminDatastoreNamespaceRequest>;
391
+
392
+ export interface DeleteAdminDatastoreNamespaceResponse {}
393
+ export const DeleteAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(
394
+ () => S.Struct({}),
395
+ ).annotate({
396
+ identifier: "DeleteAdminDatastoreNamespaceResponse",
397
+ }) as any as S.Schema<DeleteAdminDatastoreNamespaceResponse>;
398
+
399
+ export type DeleteAdminDatastoreSnapshotsRequestBackupType =
400
+ | "vm"
401
+ | "ct"
402
+ | "host";
403
+ export const DeleteAdminDatastoreSnapshotsRequestBackupType = S.String;
404
+
405
+ export interface DeleteAdminDatastoreSnapshotsRequest {
406
+ store: string;
407
+ /** Backup ID. */
408
+ backup_id: string;
409
+ /** Backup time (Unix epoch.) */
410
+ backup_time: string;
411
+ /** Backup types. */
412
+ backup_type: DeleteAdminDatastoreSnapshotsRequestBackupType | (string & {});
413
+ /** Namespace. */
414
+ ns?: string;
415
+ }
416
+ export const DeleteAdminDatastoreSnapshotsRequest = /*@__PURE__*/ S.suspend(
417
+ () =>
418
+ S.Struct({
419
+ store: S.String.pipe(T.Label()),
420
+ backup_id: S.String.pipe(T.Body("backup-id")),
421
+ backup_time: S.String.pipe(T.Body("backup-time")),
422
+ backup_type: DeleteAdminDatastoreSnapshotsRequestBackupType.pipe(
423
+ T.Body("backup-type"),
424
+ ),
425
+ ns: S.optional(S.String),
426
+ }).pipe(
427
+ T.Http({
428
+ method: "DELETE",
429
+ uri: "/admin/datastore/{store}/snapshots",
430
+ code: 200,
431
+ contentType: "form-urlencoded",
432
+ }),
433
+ ),
434
+ ).annotate({
435
+ identifier: "DeleteAdminDatastoreSnapshotsRequest",
436
+ }) as any as S.Schema<DeleteAdminDatastoreSnapshotsRequest>;
437
+
438
+ export interface DeleteAdminDatastoreSnapshotsResponse {}
439
+ export const DeleteAdminDatastoreSnapshotsResponse = /*@__PURE__*/ S.suspend(
440
+ () => S.Struct({}),
441
+ ).annotate({
442
+ identifier: "DeleteAdminDatastoreSnapshotsResponse",
443
+ }) as any as S.Schema<DeleteAdminDatastoreSnapshotsResponse>;
444
+
445
+ export interface GetAdminRequest {}
446
+ export const GetAdminRequest = /*@__PURE__*/ S.suspend(() =>
447
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin", code: 200 })),
448
+ ).annotate({
449
+ identifier: "GetAdminRequest",
450
+ }) as any as S.Schema<GetAdminRequest>;
451
+
452
+ export interface GetAdminResponse {}
453
+ export const GetAdminResponse = /*@__PURE__*/ S.suspend(() =>
454
+ S.Struct({}),
455
+ ).annotate({
456
+ identifier: "GetAdminResponse",
457
+ }) as any as S.Schema<GetAdminResponse>;
458
+
459
+ export interface GetAdminDatastoreRequest {
460
+ store: string;
461
+ }
462
+ export const GetAdminDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
463
+ S.Struct({
464
+ store: S.String.pipe(T.Label()),
465
+ }).pipe(
466
+ T.Http({ method: "GET", uri: "/admin/datastore/{store}", code: 200 }),
467
+ ),
468
+ ).annotate({
469
+ identifier: "GetAdminDatastoreRequest",
470
+ }) as any as S.Schema<GetAdminDatastoreRequest>;
471
+
472
+ export interface GetAdminDatastoreResponse {}
473
+ export const GetAdminDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
474
+ S.Struct({}),
475
+ ).annotate({
476
+ identifier: "GetAdminDatastoreResponse",
477
+ }) as any as S.Schema<GetAdminDatastoreResponse>;
478
+
479
+ export interface GetAdminDatastoreActiveOperationsRequest {
480
+ store: string;
481
+ }
482
+ export const GetAdminDatastoreActiveOperationsRequest = /*@__PURE__*/ S.suspend(
483
+ () =>
484
+ S.Struct({
485
+ store: S.String.pipe(T.Label()),
486
+ }).pipe(
487
+ T.Http({
488
+ method: "GET",
489
+ uri: "/admin/datastore/{store}/active-operations",
490
+ code: 200,
491
+ }),
492
+ ),
493
+ ).annotate({
494
+ identifier: "GetAdminDatastoreActiveOperationsRequest",
495
+ }) as any as S.Schema<GetAdminDatastoreActiveOperationsRequest>;
496
+
497
+ export interface GetAdminDatastoreActiveOperationsResponse {}
498
+ export const GetAdminDatastoreActiveOperationsResponse =
499
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
500
+ identifier: "GetAdminDatastoreActiveOperationsResponse",
501
+ }) as any as S.Schema<GetAdminDatastoreActiveOperationsResponse>;
502
+
503
+ export type GetAdminDatastoreCatalogRequestBackupType = "vm" | "ct" | "host";
504
+ export const GetAdminDatastoreCatalogRequestBackupType = S.String;
505
+
506
+ export interface GetAdminDatastoreCatalogRequest {
507
+ store: string;
508
+ /** Backup archive name. */
509
+ archive_name?: string;
510
+ /** Backup ID. */
511
+ backup_id: string;
512
+ /** Backup time (Unix epoch.) */
513
+ backup_time: string;
514
+ /** Backup types. */
515
+ backup_type: GetAdminDatastoreCatalogRequestBackupType | (string & {});
516
+ /** Base64 encoded path. */
517
+ filepath: string;
518
+ /** Namespace. */
519
+ ns?: string;
520
+ }
521
+ export const GetAdminDatastoreCatalogRequest = /*@__PURE__*/ S.suspend(() =>
522
+ S.Struct({
523
+ store: S.String.pipe(T.Label()),
524
+ archive_name: S.optional(S.String.pipe(T.Query("archive-name"))),
525
+ backup_id: S.String.pipe(T.Query("backup-id")),
526
+ backup_time: S.String.pipe(T.Query("backup-time")),
527
+ backup_type: GetAdminDatastoreCatalogRequestBackupType.pipe(
528
+ T.Query("backup-type"),
529
+ ),
530
+ filepath: S.String.pipe(T.Query()),
531
+ ns: S.optional(S.String.pipe(T.Query())),
532
+ }).pipe(
533
+ T.Http({
534
+ method: "GET",
535
+ uri: "/admin/datastore/{store}/catalog",
536
+ code: 200,
537
+ }),
538
+ ),
539
+ ).annotate({
540
+ identifier: "GetAdminDatastoreCatalogRequest",
541
+ }) as any as S.Schema<GetAdminDatastoreCatalogRequest>;
542
+
543
+ export interface GetAdminDatastoreCatalogResponse {}
544
+ export const GetAdminDatastoreCatalogResponse = /*@__PURE__*/ S.suspend(() =>
545
+ S.Struct({}),
546
+ ).annotate({
547
+ identifier: "GetAdminDatastoreCatalogResponse",
548
+ }) as any as S.Schema<GetAdminDatastoreCatalogResponse>;
549
+
550
+ export type GetAdminDatastoreDownloadRequestBackupType = "vm" | "ct" | "host";
551
+ export const GetAdminDatastoreDownloadRequestBackupType = S.String;
552
+
553
+ export interface GetAdminDatastoreDownloadRequest {
554
+ store: string;
555
+ /** Backup ID. */
556
+ backup_id: string;
557
+ /** Backup time (Unix epoch.) */
558
+ backup_time: string;
559
+ /** Backup type. */
560
+ backup_type: GetAdminDatastoreDownloadRequestBackupType | (string & {});
561
+ /** Backup archive name. */
562
+ file_name: string;
563
+ /** Namespace. */
564
+ ns?: string;
565
+ }
566
+ export const GetAdminDatastoreDownloadRequest = /*@__PURE__*/ S.suspend(() =>
567
+ S.Struct({
568
+ store: S.String.pipe(T.Label()),
569
+ backup_id: S.String.pipe(T.Query("backup-id")),
570
+ backup_time: S.String.pipe(T.Query("backup-time")),
571
+ backup_type: GetAdminDatastoreDownloadRequestBackupType.pipe(
572
+ T.Query("backup-type"),
573
+ ),
574
+ file_name: S.String.pipe(T.Query("file-name")),
575
+ ns: S.optional(S.String.pipe(T.Query())),
576
+ }).pipe(
577
+ T.Http({
578
+ method: "GET",
579
+ uri: "/admin/datastore/{store}/download",
580
+ code: 200,
581
+ }),
582
+ ),
583
+ ).annotate({
584
+ identifier: "GetAdminDatastoreDownloadRequest",
585
+ }) as any as S.Schema<GetAdminDatastoreDownloadRequest>;
586
+
587
+ export interface GetAdminDatastoreDownloadResponse {}
588
+ export const GetAdminDatastoreDownloadResponse = /*@__PURE__*/ S.suspend(() =>
589
+ S.Struct({}),
590
+ ).annotate({
591
+ identifier: "GetAdminDatastoreDownloadResponse",
592
+ }) as any as S.Schema<GetAdminDatastoreDownloadResponse>;
593
+
594
+ export type GetAdminDatastoreDownloadDecodedRequestBackupType =
595
+ | "vm"
596
+ | "ct"
597
+ | "host";
598
+ export const GetAdminDatastoreDownloadDecodedRequestBackupType = S.String;
599
+
600
+ export interface GetAdminDatastoreDownloadDecodedRequest {
601
+ store: string;
602
+ /** Backup ID. */
603
+ backup_id: string;
604
+ /** Backup time (Unix epoch.) */
605
+ backup_time: string;
606
+ /** Backup type. */
607
+ backup_type:
608
+ | GetAdminDatastoreDownloadDecodedRequestBackupType
609
+ | (string & {});
610
+ /** Backup archive name. */
611
+ file_name: string;
612
+ /** Namespace. */
613
+ ns?: string;
614
+ }
615
+ export const GetAdminDatastoreDownloadDecodedRequest = /*@__PURE__*/ S.suspend(
616
+ () =>
617
+ S.Struct({
618
+ store: S.String.pipe(T.Label()),
619
+ backup_id: S.String.pipe(T.Query("backup-id")),
620
+ backup_time: S.String.pipe(T.Query("backup-time")),
621
+ backup_type: GetAdminDatastoreDownloadDecodedRequestBackupType.pipe(
622
+ T.Query("backup-type"),
623
+ ),
624
+ file_name: S.String.pipe(T.Query("file-name")),
625
+ ns: S.optional(S.String.pipe(T.Query())),
626
+ }).pipe(
627
+ T.Http({
628
+ method: "GET",
629
+ uri: "/admin/datastore/{store}/download-decoded",
630
+ code: 200,
631
+ }),
632
+ ),
633
+ ).annotate({
634
+ identifier: "GetAdminDatastoreDownloadDecodedRequest",
635
+ }) as any as S.Schema<GetAdminDatastoreDownloadDecodedRequest>;
636
+
637
+ export interface GetAdminDatastoreDownloadDecodedResponse {}
638
+ export const GetAdminDatastoreDownloadDecodedResponse = /*@__PURE__*/ S.suspend(
639
+ () => S.Struct({}),
640
+ ).annotate({
641
+ identifier: "GetAdminDatastoreDownloadDecodedResponse",
642
+ }) as any as S.Schema<GetAdminDatastoreDownloadDecodedResponse>;
643
+
644
+ export interface GetAdminDatastoreGcRequest {
645
+ store: string;
646
+ }
647
+ export const GetAdminDatastoreGcRequest = /*@__PURE__*/ S.suspend(() =>
648
+ S.Struct({
649
+ store: S.String.pipe(T.Label()),
650
+ }).pipe(
651
+ T.Http({ method: "GET", uri: "/admin/datastore/{store}/gc", code: 200 }),
652
+ ),
653
+ ).annotate({
654
+ identifier: "GetAdminDatastoreGcRequest",
655
+ }) as any as S.Schema<GetAdminDatastoreGcRequest>;
656
+
657
+ export interface GetAdminDatastoreGcResponseCacheStats {
658
+ hits: number;
659
+ misses: number;
660
+ }
661
+ export const GetAdminDatastoreGcResponseCacheStats = /*@__PURE__*/ S.suspend(
662
+ () =>
663
+ S.Struct({
664
+ hits: S.Number,
665
+ misses: S.Number,
666
+ }),
667
+ ).annotate({
668
+ identifier: "GetAdminDatastoreGcResponseCacheStats",
669
+ }) as any as S.Schema<GetAdminDatastoreGcResponseCacheStats>;
670
+
671
+ export interface GetAdminDatastoreGcResponse {
672
+ cache_stats?: GetAdminDatastoreGcResponseCacheStats;
673
+ disk_bytes?: number;
674
+ disk_chunks?: number;
675
+ duration?: number;
676
+ index_data_bytes?: number;
677
+ index_file_count?: number;
678
+ last_run_endtime?: number;
679
+ last_run_state?: string;
680
+ next_run?: number;
681
+ pending_bytes?: number;
682
+ pending_chunks?: number;
683
+ removed_bad?: number;
684
+ removed_bytes?: number;
685
+ removed_chunks?: number;
686
+ schedule?: string;
687
+ still_bad?: number;
688
+ store: string;
689
+ upid?: string;
690
+ }
691
+ export const GetAdminDatastoreGcResponse = /*@__PURE__*/ S.suspend(() =>
692
+ S.Struct({
693
+ cache_stats: S.optional(
694
+ GetAdminDatastoreGcResponseCacheStats.pipe(T.Body("cache-stats")),
695
+ ),
696
+ disk_bytes: S.optional(S.Number.pipe(T.Body("disk-bytes"))),
697
+ disk_chunks: S.optional(S.Number.pipe(T.Body("disk-chunks"))),
698
+ duration: S.optional(S.Number),
699
+ index_data_bytes: S.optional(S.Number.pipe(T.Body("index-data-bytes"))),
700
+ index_file_count: S.optional(S.Number.pipe(T.Body("index-file-count"))),
701
+ last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
702
+ last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
703
+ next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
704
+ pending_bytes: S.optional(S.Number.pipe(T.Body("pending-bytes"))),
705
+ pending_chunks: S.optional(S.Number.pipe(T.Body("pending-chunks"))),
706
+ removed_bad: S.optional(S.Number.pipe(T.Body("removed-bad"))),
707
+ removed_bytes: S.optional(S.Number.pipe(T.Body("removed-bytes"))),
708
+ removed_chunks: S.optional(S.Number.pipe(T.Body("removed-chunks"))),
709
+ schedule: S.optional(S.String),
710
+ still_bad: S.optional(S.Number.pipe(T.Body("still-bad"))),
711
+ store: S.String,
712
+ upid: S.optional(S.String),
713
+ }),
714
+ ).annotate({
715
+ identifier: "GetAdminDatastoreGcResponse",
716
+ }) as any as S.Schema<GetAdminDatastoreGcResponse>;
717
+
718
+ export type GetAdminDatastoreGroupNotesRequestBackupType = "vm" | "ct" | "host";
719
+ export const GetAdminDatastoreGroupNotesRequestBackupType = S.String;
720
+
721
+ export interface GetAdminDatastoreGroupNotesRequest {
722
+ store: string;
723
+ /** Backup ID. */
724
+ backup_id: string;
725
+ /** Backup types. */
726
+ backup_type: GetAdminDatastoreGroupNotesRequestBackupType | (string & {});
727
+ /** Namespace. */
728
+ ns?: string;
729
+ }
730
+ export const GetAdminDatastoreGroupNotesRequest = /*@__PURE__*/ S.suspend(() =>
731
+ S.Struct({
732
+ store: S.String.pipe(T.Label()),
733
+ backup_id: S.String.pipe(T.Query("backup-id")),
734
+ backup_type: GetAdminDatastoreGroupNotesRequestBackupType.pipe(
735
+ T.Query("backup-type"),
736
+ ),
737
+ ns: S.optional(S.String.pipe(T.Query())),
738
+ }).pipe(
739
+ T.Http({
740
+ method: "GET",
741
+ uri: "/admin/datastore/{store}/group-notes",
742
+ code: 200,
743
+ }),
744
+ ),
745
+ ).annotate({
746
+ identifier: "GetAdminDatastoreGroupNotesRequest",
747
+ }) as any as S.Schema<GetAdminDatastoreGroupNotesRequest>;
748
+
749
+ export interface GetAdminDatastoreGroupNotesResponse {}
750
+ export const GetAdminDatastoreGroupNotesResponse = /*@__PURE__*/ S.suspend(() =>
751
+ S.Struct({}),
752
+ ).annotate({
753
+ identifier: "GetAdminDatastoreGroupNotesResponse",
754
+ }) as any as S.Schema<GetAdminDatastoreGroupNotesResponse>;
755
+
756
+ export type GetAdminDatastoreNotesRequestBackupType = "vm" | "ct" | "host";
757
+ export const GetAdminDatastoreNotesRequestBackupType = S.String;
758
+
759
+ export interface GetAdminDatastoreNotesRequest {
760
+ store: string;
761
+ /** Backup ID. */
762
+ backup_id: string;
763
+ /** Backup time (Unix epoch.) */
764
+ backup_time: string;
765
+ /** Backup types. */
766
+ backup_type: GetAdminDatastoreNotesRequestBackupType | (string & {});
767
+ /** Namespace. */
768
+ ns?: string;
769
+ }
770
+ export const GetAdminDatastoreNotesRequest = /*@__PURE__*/ S.suspend(() =>
771
+ S.Struct({
772
+ store: S.String.pipe(T.Label()),
773
+ backup_id: S.String.pipe(T.Query("backup-id")),
774
+ backup_time: S.String.pipe(T.Query("backup-time")),
775
+ backup_type: GetAdminDatastoreNotesRequestBackupType.pipe(
776
+ T.Query("backup-type"),
777
+ ),
778
+ ns: S.optional(S.String.pipe(T.Query())),
779
+ }).pipe(
780
+ T.Http({ method: "GET", uri: "/admin/datastore/{store}/notes", code: 200 }),
781
+ ),
782
+ ).annotate({
783
+ identifier: "GetAdminDatastoreNotesRequest",
784
+ }) as any as S.Schema<GetAdminDatastoreNotesRequest>;
785
+
786
+ export interface GetAdminDatastoreNotesResponse {}
787
+ export const GetAdminDatastoreNotesResponse = /*@__PURE__*/ S.suspend(() =>
788
+ S.Struct({}),
789
+ ).annotate({
790
+ identifier: "GetAdminDatastoreNotesResponse",
791
+ }) as any as S.Schema<GetAdminDatastoreNotesResponse>;
792
+
793
+ export type GetAdminDatastoreProtectedRequestBackupType = "vm" | "ct" | "host";
794
+ export const GetAdminDatastoreProtectedRequestBackupType = S.String;
795
+
796
+ export interface GetAdminDatastoreProtectedRequest {
797
+ store: string;
798
+ /** Backup ID. */
799
+ backup_id: string;
800
+ /** Backup time (Unix epoch.) */
801
+ backup_time: string;
802
+ /** Backup types. */
803
+ backup_type: GetAdminDatastoreProtectedRequestBackupType | (string & {});
804
+ /** Namespace. */
805
+ ns?: string;
806
+ }
807
+ export const GetAdminDatastoreProtectedRequest = /*@__PURE__*/ S.suspend(() =>
808
+ S.Struct({
809
+ store: S.String.pipe(T.Label()),
810
+ backup_id: S.String.pipe(T.Query("backup-id")),
811
+ backup_time: S.String.pipe(T.Query("backup-time")),
812
+ backup_type: GetAdminDatastoreProtectedRequestBackupType.pipe(
813
+ T.Query("backup-type"),
814
+ ),
815
+ ns: S.optional(S.String.pipe(T.Query())),
816
+ }).pipe(
817
+ T.Http({
818
+ method: "GET",
819
+ uri: "/admin/datastore/{store}/protected",
820
+ code: 200,
821
+ }),
822
+ ),
823
+ ).annotate({
824
+ identifier: "GetAdminDatastoreProtectedRequest",
825
+ }) as any as S.Schema<GetAdminDatastoreProtectedRequest>;
826
+
827
+ export interface GetAdminDatastoreProtectedResponse {}
828
+ export const GetAdminDatastoreProtectedResponse = /*@__PURE__*/ S.suspend(() =>
829
+ S.Struct({}),
830
+ ).annotate({
831
+ identifier: "GetAdminDatastoreProtectedResponse",
832
+ }) as any as S.Schema<GetAdminDatastoreProtectedResponse>;
833
+
834
+ export type GetAdminDatastorePxarFileDownloadRequestBackupType =
835
+ | "vm"
836
+ | "ct"
837
+ | "host";
838
+ export const GetAdminDatastorePxarFileDownloadRequestBackupType = S.String;
839
+
840
+ export interface GetAdminDatastorePxarFileDownloadRequest {
841
+ store: string;
842
+ /** Backup archive name. */
843
+ archive_name?: string;
844
+ /** Backup ID. */
845
+ backup_id: string;
846
+ /** Backup time (Unix epoch.) */
847
+ backup_time: string;
848
+ /** Backup type. */
849
+ backup_type:
850
+ | GetAdminDatastorePxarFileDownloadRequestBackupType
851
+ | (string & {});
852
+ /** Base64 encoded path */
853
+ filepath: string;
854
+ /** Namespace. */
855
+ ns?: string;
856
+ /** Download as .tar.zst */
857
+ tar?: string;
858
+ }
859
+ export const GetAdminDatastorePxarFileDownloadRequest = /*@__PURE__*/ S.suspend(
860
+ () =>
861
+ S.Struct({
862
+ store: S.String.pipe(T.Label()),
863
+ archive_name: S.optional(S.String.pipe(T.Query("archive-name"))),
864
+ backup_id: S.String.pipe(T.Query("backup-id")),
865
+ backup_time: S.String.pipe(T.Query("backup-time")),
866
+ backup_type: GetAdminDatastorePxarFileDownloadRequestBackupType.pipe(
867
+ T.Query("backup-type"),
868
+ ),
869
+ filepath: S.String.pipe(T.Query()),
870
+ ns: S.optional(S.String.pipe(T.Query())),
871
+ tar: S.optional(S.String.pipe(T.Query())),
872
+ }).pipe(
873
+ T.Http({
874
+ method: "GET",
875
+ uri: "/admin/datastore/{store}/pxar-file-download",
876
+ code: 200,
877
+ }),
878
+ ),
879
+ ).annotate({
880
+ identifier: "GetAdminDatastorePxarFileDownloadRequest",
881
+ }) as any as S.Schema<GetAdminDatastorePxarFileDownloadRequest>;
882
+
883
+ export interface GetAdminDatastorePxarFileDownloadResponse {}
884
+ export const GetAdminDatastorePxarFileDownloadResponse =
885
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
886
+ identifier: "GetAdminDatastorePxarFileDownloadResponse",
887
+ }) as any as S.Schema<GetAdminDatastorePxarFileDownloadResponse>;
888
+
889
+ export type GetAdminDatastoreRrdRequestCf = "MAX" | "AVERAGE";
890
+ export const GetAdminDatastoreRrdRequestCf = S.String;
891
+
892
+ export type GetAdminDatastoreRrdRequestTimeframe =
893
+ | "hour"
894
+ | "day"
895
+ | "week"
896
+ | "month"
897
+ | "year"
898
+ | "decade";
899
+ export const GetAdminDatastoreRrdRequestTimeframe = S.String;
900
+
901
+ export interface GetAdminDatastoreRrdRequest {
902
+ store: string;
903
+ /** RRD consolidation mode */
904
+ cf: GetAdminDatastoreRrdRequestCf | (string & {});
905
+ /** RRD time frame */
906
+ timeframe: GetAdminDatastoreRrdRequestTimeframe | (string & {});
907
+ }
908
+ export const GetAdminDatastoreRrdRequest = /*@__PURE__*/ S.suspend(() =>
909
+ S.Struct({
910
+ store: S.String.pipe(T.Label()),
911
+ cf: GetAdminDatastoreRrdRequestCf.pipe(T.Query()),
912
+ timeframe: GetAdminDatastoreRrdRequestTimeframe.pipe(T.Query()),
913
+ }).pipe(
914
+ T.Http({ method: "GET", uri: "/admin/datastore/{store}/rrd", code: 200 }),
915
+ ),
916
+ ).annotate({
917
+ identifier: "GetAdminDatastoreRrdRequest",
918
+ }) as any as S.Schema<GetAdminDatastoreRrdRequest>;
919
+
920
+ export interface GetAdminDatastoreRrdResponse {}
921
+ export const GetAdminDatastoreRrdResponse = /*@__PURE__*/ S.suspend(() =>
922
+ S.Struct({}),
923
+ ).annotate({
924
+ identifier: "GetAdminDatastoreRrdResponse",
925
+ }) as any as S.Schema<GetAdminDatastoreRrdResponse>;
926
+
927
+ export interface GetAdminDatastoreStatusRequest {
928
+ store: string;
929
+ /** Include additional information like snapshot counts and GC status. */
930
+ verbose?: string;
931
+ }
932
+ export const GetAdminDatastoreStatusRequest = /*@__PURE__*/ S.suspend(() =>
933
+ S.Struct({
934
+ store: S.String.pipe(T.Label()),
935
+ verbose: S.optional(S.String.pipe(T.Query())),
936
+ }).pipe(
937
+ T.Http({
938
+ method: "GET",
939
+ uri: "/admin/datastore/{store}/status",
940
+ code: 200,
941
+ }),
942
+ ),
943
+ ).annotate({
944
+ identifier: "GetAdminDatastoreStatusRequest",
945
+ }) as any as S.Schema<GetAdminDatastoreStatusRequest>;
946
+
947
+ export type GetAdminDatastoreStatusResponseBackendType = "filesystem" | "s3";
948
+ export const GetAdminDatastoreStatusResponseBackendType = S.String;
949
+
950
+ export interface GetAdminDatastoreStatusResponseCountsCt {
951
+ groups: number;
952
+ snapshots: number;
953
+ }
954
+ export const GetAdminDatastoreStatusResponseCountsCt = /*@__PURE__*/ S.suspend(
955
+ () =>
956
+ S.Struct({
957
+ groups: S.Number,
958
+ snapshots: S.Number,
959
+ }),
960
+ ).annotate({
961
+ identifier: "GetAdminDatastoreStatusResponseCountsCt",
962
+ }) as any as S.Schema<GetAdminDatastoreStatusResponseCountsCt>;
963
+
964
+ export type GetAdminDatastoreStatusResponseCountsHost =
965
+ GetAdminDatastoreStatusResponseCountsCt;
966
+ export const GetAdminDatastoreStatusResponseCountsHost =
967
+ GetAdminDatastoreStatusResponseCountsCt;
968
+
969
+ export type GetAdminDatastoreStatusResponseCountsOther =
970
+ GetAdminDatastoreStatusResponseCountsCt;
971
+ export const GetAdminDatastoreStatusResponseCountsOther =
972
+ GetAdminDatastoreStatusResponseCountsCt;
973
+
974
+ export type GetAdminDatastoreStatusResponseCountsVm =
975
+ GetAdminDatastoreStatusResponseCountsCt;
976
+ export const GetAdminDatastoreStatusResponseCountsVm =
977
+ GetAdminDatastoreStatusResponseCountsCt;
978
+
979
+ export interface GetAdminDatastoreStatusResponseCounts {
980
+ ct?: GetAdminDatastoreStatusResponseCountsCt;
981
+ host?: GetAdminDatastoreStatusResponseCountsCt;
982
+ other?: GetAdminDatastoreStatusResponseCountsCt;
983
+ vm?: GetAdminDatastoreStatusResponseCountsCt;
984
+ }
985
+ export const GetAdminDatastoreStatusResponseCounts = /*@__PURE__*/ S.suspend(
986
+ () =>
987
+ S.Struct({
988
+ ct: S.optional(GetAdminDatastoreStatusResponseCountsCt),
989
+ host: S.optional(GetAdminDatastoreStatusResponseCountsCt),
990
+ other: S.optional(GetAdminDatastoreStatusResponseCountsCt),
991
+ vm: S.optional(GetAdminDatastoreStatusResponseCountsCt),
992
+ }),
993
+ ).annotate({
994
+ identifier: "GetAdminDatastoreStatusResponseCounts",
995
+ }) as any as S.Schema<GetAdminDatastoreStatusResponseCounts>;
996
+
997
+ export type GetAdminDatastoreStatusResponseGcStatusCacheStats =
998
+ GetAdminDatastoreGcResponseCacheStats;
999
+ export const GetAdminDatastoreStatusResponseGcStatusCacheStats =
1000
+ GetAdminDatastoreGcResponseCacheStats;
1001
+
1002
+ export interface GetAdminDatastoreStatusResponseGcStatus {
1003
+ cache_stats?: GetAdminDatastoreGcResponseCacheStats;
1004
+ disk_bytes?: number;
1005
+ disk_chunks?: number;
1006
+ index_data_bytes?: number;
1007
+ index_file_count?: number;
1008
+ pending_bytes?: number;
1009
+ pending_chunks?: number;
1010
+ removed_bad?: number;
1011
+ removed_bytes?: number;
1012
+ removed_chunks?: number;
1013
+ still_bad?: number;
1014
+ upid?: string;
1015
+ }
1016
+ export const GetAdminDatastoreStatusResponseGcStatus = /*@__PURE__*/ S.suspend(
1017
+ () =>
1018
+ S.Struct({
1019
+ cache_stats: S.optional(
1020
+ GetAdminDatastoreGcResponseCacheStats.pipe(T.Body("cache-stats")),
1021
+ ),
1022
+ disk_bytes: S.optional(S.Number.pipe(T.Body("disk-bytes"))),
1023
+ disk_chunks: S.optional(S.Number.pipe(T.Body("disk-chunks"))),
1024
+ index_data_bytes: S.optional(S.Number.pipe(T.Body("index-data-bytes"))),
1025
+ index_file_count: S.optional(S.Number.pipe(T.Body("index-file-count"))),
1026
+ pending_bytes: S.optional(S.Number.pipe(T.Body("pending-bytes"))),
1027
+ pending_chunks: S.optional(S.Number.pipe(T.Body("pending-chunks"))),
1028
+ removed_bad: S.optional(S.Number.pipe(T.Body("removed-bad"))),
1029
+ removed_bytes: S.optional(S.Number.pipe(T.Body("removed-bytes"))),
1030
+ removed_chunks: S.optional(S.Number.pipe(T.Body("removed-chunks"))),
1031
+ still_bad: S.optional(S.Number.pipe(T.Body("still-bad"))),
1032
+ upid: S.optional(S.String),
1033
+ }),
1034
+ ).annotate({
1035
+ identifier: "GetAdminDatastoreStatusResponseGcStatus",
1036
+ }) as any as S.Schema<GetAdminDatastoreStatusResponseGcStatus>;
1037
+
1038
+ export interface GetAdminDatastoreStatusResponseS3Statistics {
1039
+ delete: number;
1040
+ downloaded: number;
1041
+ get: number;
1042
+ head: number;
1043
+ post: number;
1044
+ put: number;
1045
+ uploaded: number;
1046
+ }
1047
+ export const GetAdminDatastoreStatusResponseS3Statistics =
1048
+ /*@__PURE__*/ S.suspend(() =>
1049
+ S.Struct({
1050
+ delete: S.Number,
1051
+ downloaded: S.Number,
1052
+ get: S.Number,
1053
+ head: S.Number,
1054
+ post: S.Number,
1055
+ put: S.Number,
1056
+ uploaded: S.Number,
1057
+ }),
1058
+ ).annotate({
1059
+ identifier: "GetAdminDatastoreStatusResponseS3Statistics",
1060
+ }) as any as S.Schema<GetAdminDatastoreStatusResponseS3Statistics>;
1061
+
1062
+ export interface GetAdminDatastoreStatusResponse {
1063
+ avail: number;
1064
+ backend_type?: GetAdminDatastoreStatusResponseBackendType;
1065
+ counts?: GetAdminDatastoreStatusResponseCounts;
1066
+ gc_status?: GetAdminDatastoreStatusResponseGcStatus;
1067
+ s3_statistics?: GetAdminDatastoreStatusResponseS3Statistics;
1068
+ total: number;
1069
+ used: number;
1070
+ }
1071
+ export const GetAdminDatastoreStatusResponse = /*@__PURE__*/ S.suspend(() =>
1072
+ S.Struct({
1073
+ avail: S.Number,
1074
+ backend_type: S.optional(
1075
+ GetAdminDatastoreStatusResponseBackendType.pipe(T.Body("backend-type")),
1076
+ ),
1077
+ counts: S.optional(GetAdminDatastoreStatusResponseCounts),
1078
+ gc_status: S.optional(
1079
+ GetAdminDatastoreStatusResponseGcStatus.pipe(T.Body("gc-status")),
1080
+ ),
1081
+ s3_statistics: S.optional(
1082
+ GetAdminDatastoreStatusResponseS3Statistics.pipe(T.Body("s3-statistics")),
1083
+ ),
1084
+ total: S.Number,
1085
+ used: S.Number,
1086
+ }),
1087
+ ).annotate({
1088
+ identifier: "GetAdminDatastoreStatusResponse",
1089
+ }) as any as S.Schema<GetAdminDatastoreStatusResponse>;
1090
+
1091
+ export interface GetAdminGcRequest {
1092
+ store: string;
1093
+ }
1094
+ export const GetAdminGcRequest = /*@__PURE__*/ S.suspend(() =>
1095
+ S.Struct({
1096
+ store: S.String.pipe(T.Label()),
1097
+ }).pipe(T.Http({ method: "GET", uri: "/admin/gc/{store}", code: 200 })),
1098
+ ).annotate({
1099
+ identifier: "GetAdminGcRequest",
1100
+ }) as any as S.Schema<GetAdminGcRequest>;
1101
+
1102
+ export type GetAdminGcResponseBodyItemCacheStats =
1103
+ GetAdminDatastoreGcResponseCacheStats;
1104
+ export const GetAdminGcResponseBodyItemCacheStats =
1105
+ GetAdminDatastoreGcResponseCacheStats;
1106
+
1107
+ export interface GetAdminGcResponseBodyItem {
1108
+ cache_stats?: GetAdminDatastoreGcResponseCacheStats;
1109
+ disk_bytes?: number;
1110
+ disk_chunks?: number;
1111
+ duration?: number;
1112
+ index_data_bytes?: number;
1113
+ index_file_count?: number;
1114
+ last_run_endtime?: number;
1115
+ last_run_state?: string;
1116
+ next_run?: number;
1117
+ pending_bytes?: number;
1118
+ pending_chunks?: number;
1119
+ removed_bad?: number;
1120
+ removed_bytes?: number;
1121
+ removed_chunks?: number;
1122
+ schedule?: string;
1123
+ still_bad?: number;
1124
+ store: string;
1125
+ upid?: string;
1126
+ }
1127
+ export const GetAdminGcResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
1128
+ S.Struct({
1129
+ cache_stats: S.optional(
1130
+ GetAdminDatastoreGcResponseCacheStats.pipe(T.Body("cache-stats")),
1131
+ ),
1132
+ disk_bytes: S.optional(S.Number.pipe(T.Body("disk-bytes"))),
1133
+ disk_chunks: S.optional(S.Number.pipe(T.Body("disk-chunks"))),
1134
+ duration: S.optional(S.Number),
1135
+ index_data_bytes: S.optional(S.Number.pipe(T.Body("index-data-bytes"))),
1136
+ index_file_count: S.optional(S.Number.pipe(T.Body("index-file-count"))),
1137
+ last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
1138
+ last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
1139
+ next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
1140
+ pending_bytes: S.optional(S.Number.pipe(T.Body("pending-bytes"))),
1141
+ pending_chunks: S.optional(S.Number.pipe(T.Body("pending-chunks"))),
1142
+ removed_bad: S.optional(S.Number.pipe(T.Body("removed-bad"))),
1143
+ removed_bytes: S.optional(S.Number.pipe(T.Body("removed-bytes"))),
1144
+ removed_chunks: S.optional(S.Number.pipe(T.Body("removed-chunks"))),
1145
+ schedule: S.optional(S.String),
1146
+ still_bad: S.optional(S.Number.pipe(T.Body("still-bad"))),
1147
+ store: S.String,
1148
+ upid: S.optional(S.String),
1149
+ }),
1150
+ ).annotate({
1151
+ identifier: "GetAdminGcResponseBodyItem",
1152
+ }) as any as S.Schema<GetAdminGcResponseBodyItem>;
1153
+
1154
+ export type GetAdminGcResponseBodyList = Array<GetAdminGcResponseBodyItem>;
1155
+ export const GetAdminGcResponseBodyList = /*@__PURE__*/ S.Array(
1156
+ GetAdminGcResponseBodyItem,
1157
+ ) as any as S.Schema<GetAdminGcResponseBodyList>;
1158
+
1159
+ export type GetAdminGcResponse = GetAdminGcResponseBodyList;
1160
+ export const GetAdminGcResponse = /*@__PURE__*/ S.suspend(() =>
1161
+ GetAdminGcResponseBodyList.pipe(T.RawResponseRoot()),
1162
+ ).annotate({
1163
+ identifier: "GetAdminGcResponse",
1164
+ }) as any as S.Schema<GetAdminGcResponse>;
1165
+
1166
+ export interface GetAdminPruneRequest {
1167
+ id: string;
1168
+ }
1169
+ export const GetAdminPruneRequest = /*@__PURE__*/ S.suspend(() =>
1170
+ S.Struct({
1171
+ id: S.String.pipe(T.Label()),
1172
+ }).pipe(T.Http({ method: "GET", uri: "/admin/prune/{id}", code: 200 })),
1173
+ ).annotate({
1174
+ identifier: "GetAdminPruneRequest",
1175
+ }) as any as S.Schema<GetAdminPruneRequest>;
1176
+
1177
+ export interface GetAdminPruneResponse {}
1178
+ export const GetAdminPruneResponse = /*@__PURE__*/ S.suspend(() =>
1179
+ S.Struct({}),
1180
+ ).annotate({
1181
+ identifier: "GetAdminPruneResponse",
1182
+ }) as any as S.Schema<GetAdminPruneResponse>;
1183
+
1184
+ export interface GetAdminS3Request {
1185
+ s3_endpoint_id: string;
1186
+ }
1187
+ export const GetAdminS3Request = /*@__PURE__*/ S.suspend(() =>
1188
+ S.Struct({
1189
+ s3_endpoint_id: S.String.pipe(T.Label()),
1190
+ }).pipe(
1191
+ T.Http({ method: "GET", uri: "/admin/s3/{s3-endpoint-id}", code: 200 }),
1192
+ ),
1193
+ ).annotate({
1194
+ identifier: "GetAdminS3Request",
1195
+ }) as any as S.Schema<GetAdminS3Request>;
1196
+
1197
+ export interface GetAdminS3Response {}
1198
+ export const GetAdminS3Response = /*@__PURE__*/ S.suspend(() =>
1199
+ S.Struct({}),
1200
+ ).annotate({
1201
+ identifier: "GetAdminS3Response",
1202
+ }) as any as S.Schema<GetAdminS3Response>;
1203
+
1204
+ export interface GetAdminSyncRequest {
1205
+ id: string;
1206
+ }
1207
+ export const GetAdminSyncRequest = /*@__PURE__*/ S.suspend(() =>
1208
+ S.Struct({
1209
+ id: S.String.pipe(T.Label()),
1210
+ }).pipe(T.Http({ method: "GET", uri: "/admin/sync/{id}", code: 200 })),
1211
+ ).annotate({
1212
+ identifier: "GetAdminSyncRequest",
1213
+ }) as any as S.Schema<GetAdminSyncRequest>;
1214
+
1215
+ export interface GetAdminSyncResponse {}
1216
+ export const GetAdminSyncResponse = /*@__PURE__*/ S.suspend(() =>
1217
+ S.Struct({}),
1218
+ ).annotate({
1219
+ identifier: "GetAdminSyncResponse",
1220
+ }) as any as S.Schema<GetAdminSyncResponse>;
1221
+
1222
+ export interface GetAdminVerifyRequest {
1223
+ id: string;
1224
+ }
1225
+ export const GetAdminVerifyRequest = /*@__PURE__*/ S.suspend(() =>
1226
+ S.Struct({
1227
+ id: S.String.pipe(T.Label()),
1228
+ }).pipe(T.Http({ method: "GET", uri: "/admin/verify/{id}", code: 200 })),
1229
+ ).annotate({
1230
+ identifier: "GetAdminVerifyRequest",
1231
+ }) as any as S.Schema<GetAdminVerifyRequest>;
1232
+
1233
+ export interface GetAdminVerifyResponse {}
1234
+ export const GetAdminVerifyResponse = /*@__PURE__*/ S.suspend(() =>
1235
+ S.Struct({}),
1236
+ ).annotate({
1237
+ identifier: "GetAdminVerifyResponse",
1238
+ }) as any as S.Schema<GetAdminVerifyResponse>;
1239
+
1240
+ export interface ListAdminDatastoreRequest {}
1241
+ export const ListAdminDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
1242
+ S.Struct({}).pipe(
1243
+ T.Http({ method: "GET", uri: "/admin/datastore", code: 200 }),
1244
+ ),
1245
+ ).annotate({
1246
+ identifier: "ListAdminDatastoreRequest",
1247
+ }) as any as S.Schema<ListAdminDatastoreRequest>;
1248
+
1249
+ export type ListAdminDatastoreResponseBodyItemBackendType = "filesystem" | "s3";
1250
+ export const ListAdminDatastoreResponseBodyItemBackendType = S.String;
1251
+
1252
+ export type ListAdminDatastoreResponseBodyItemMountStatus =
1253
+ | "mounted"
1254
+ | "notmounted"
1255
+ | "nonremovable";
1256
+ export const ListAdminDatastoreResponseBodyItemMountStatus = S.String;
1257
+
1258
+ export interface ListAdminDatastoreResponseBodyItem {
1259
+ backend_type?: ListAdminDatastoreResponseBodyItemBackendType;
1260
+ comment?: string;
1261
+ maintenance?: string;
1262
+ mount_status?: ListAdminDatastoreResponseBodyItemMountStatus;
1263
+ store: string;
1264
+ }
1265
+ export const ListAdminDatastoreResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
1266
+ S.Struct({
1267
+ backend_type: S.optional(
1268
+ ListAdminDatastoreResponseBodyItemBackendType.pipe(
1269
+ T.Body("backend-type"),
1270
+ ),
1271
+ ),
1272
+ comment: S.optional(S.String),
1273
+ maintenance: S.optional(S.String),
1274
+ mount_status: S.optional(
1275
+ ListAdminDatastoreResponseBodyItemMountStatus.pipe(
1276
+ T.Body("mount-status"),
1277
+ ),
1278
+ ),
1279
+ store: S.String,
1280
+ }),
1281
+ ).annotate({
1282
+ identifier: "ListAdminDatastoreResponseBodyItem",
1283
+ }) as any as S.Schema<ListAdminDatastoreResponseBodyItem>;
1284
+
1285
+ export type ListAdminDatastoreResponseBodyList =
1286
+ Array<ListAdminDatastoreResponseBodyItem>;
1287
+ export const ListAdminDatastoreResponseBodyList = /*@__PURE__*/ S.Array(
1288
+ ListAdminDatastoreResponseBodyItem,
1289
+ ) as any as S.Schema<ListAdminDatastoreResponseBodyList>;
1290
+
1291
+ export type ListAdminDatastoreResponse = ListAdminDatastoreResponseBodyList;
1292
+ export const ListAdminDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
1293
+ ListAdminDatastoreResponseBodyList.pipe(T.RawResponseRoot()),
1294
+ ).annotate({
1295
+ identifier: "ListAdminDatastoreResponse",
1296
+ }) as any as S.Schema<ListAdminDatastoreResponse>;
1297
+
1298
+ export type ListAdminDatastoreFilesRequestBackupType = "vm" | "ct" | "host";
1299
+ export const ListAdminDatastoreFilesRequestBackupType = S.String;
1300
+
1301
+ export interface ListAdminDatastoreFilesRequest {
1302
+ store: string;
1303
+ /** Backup ID. */
1304
+ backup_id: string;
1305
+ /** Backup time (Unix epoch.) */
1306
+ backup_time: string;
1307
+ /** Backup types. */
1308
+ backup_type: ListAdminDatastoreFilesRequestBackupType | (string & {});
1309
+ /** Namespace. */
1310
+ ns?: string;
1311
+ }
1312
+ export const ListAdminDatastoreFilesRequest = /*@__PURE__*/ S.suspend(() =>
1313
+ S.Struct({
1314
+ store: S.String.pipe(T.Label()),
1315
+ backup_id: S.String.pipe(T.Query("backup-id")),
1316
+ backup_time: S.String.pipe(T.Query("backup-time")),
1317
+ backup_type: ListAdminDatastoreFilesRequestBackupType.pipe(
1318
+ T.Query("backup-type"),
1319
+ ),
1320
+ ns: S.optional(S.String.pipe(T.Query())),
1321
+ }).pipe(
1322
+ T.Http({ method: "GET", uri: "/admin/datastore/{store}/files", code: 200 }),
1323
+ ),
1324
+ ).annotate({
1325
+ identifier: "ListAdminDatastoreFilesRequest",
1326
+ }) as any as S.Schema<ListAdminDatastoreFilesRequest>;
1327
+
1328
+ export type ListAdminDatastoreFilesResponseBodyItemCryptMode =
1329
+ | "none"
1330
+ | "encrypt"
1331
+ | "sign-only";
1332
+ export const ListAdminDatastoreFilesResponseBodyItemCryptMode = S.String;
1333
+
1334
+ export interface ListAdminDatastoreFilesResponseBodyItem {
1335
+ crypt_mode?: ListAdminDatastoreFilesResponseBodyItemCryptMode;
1336
+ filename: string;
1337
+ size?: number;
1338
+ }
1339
+ export const ListAdminDatastoreFilesResponseBodyItem = /*@__PURE__*/ S.suspend(
1340
+ () =>
1341
+ S.Struct({
1342
+ crypt_mode: S.optional(
1343
+ ListAdminDatastoreFilesResponseBodyItemCryptMode.pipe(
1344
+ T.Body("crypt-mode"),
1345
+ ),
1346
+ ),
1347
+ filename: S.String,
1348
+ size: S.optional(S.Number),
1349
+ }),
1350
+ ).annotate({
1351
+ identifier: "ListAdminDatastoreFilesResponseBodyItem",
1352
+ }) as any as S.Schema<ListAdminDatastoreFilesResponseBodyItem>;
1353
+
1354
+ export type ListAdminDatastoreFilesResponseBodyList =
1355
+ Array<ListAdminDatastoreFilesResponseBodyItem>;
1356
+ export const ListAdminDatastoreFilesResponseBodyList = /*@__PURE__*/ S.Array(
1357
+ ListAdminDatastoreFilesResponseBodyItem,
1358
+ ) as any as S.Schema<ListAdminDatastoreFilesResponseBodyList>;
1359
+
1360
+ export type ListAdminDatastoreFilesResponse =
1361
+ ListAdminDatastoreFilesResponseBodyList;
1362
+ export const ListAdminDatastoreFilesResponse = /*@__PURE__*/ S.suspend(() =>
1363
+ ListAdminDatastoreFilesResponseBodyList.pipe(T.RawResponseRoot()),
1364
+ ).annotate({
1365
+ identifier: "ListAdminDatastoreFilesResponse",
1366
+ }) as any as S.Schema<ListAdminDatastoreFilesResponse>;
1367
+
1368
+ export interface ListAdminDatastoreGroupsRequest {
1369
+ store: string;
1370
+ /** Namespace. */
1371
+ ns?: string;
1372
+ }
1373
+ export const ListAdminDatastoreGroupsRequest = /*@__PURE__*/ S.suspend(() =>
1374
+ S.Struct({
1375
+ store: S.String.pipe(T.Label()),
1376
+ ns: S.optional(S.String.pipe(T.Query())),
1377
+ }).pipe(
1378
+ T.Http({
1379
+ method: "GET",
1380
+ uri: "/admin/datastore/{store}/groups",
1381
+ code: 200,
1382
+ }),
1383
+ ),
1384
+ ).annotate({
1385
+ identifier: "ListAdminDatastoreGroupsRequest",
1386
+ }) as any as S.Schema<ListAdminDatastoreGroupsRequest>;
1387
+
1388
+ export type ListAdminDatastoreGroupsResponseBodyItemBackupType =
1389
+ | "vm"
1390
+ | "ct"
1391
+ | "host";
1392
+ export const ListAdminDatastoreGroupsResponseBodyItemBackupType = S.String;
1393
+
1394
+ export type ListAdminDatastoreGroupsResponseBodyItemFilesList = Array<string>;
1395
+ export const ListAdminDatastoreGroupsResponseBodyItemFilesList =
1396
+ /*@__PURE__*/ S.Array(
1397
+ S.String,
1398
+ ) as any as S.Schema<ListAdminDatastoreGroupsResponseBodyItemFilesList>;
1399
+
1400
+ export interface ListAdminDatastoreGroupsResponseBodyItem {
1401
+ backup_count?: number;
1402
+ backup_id?: string;
1403
+ backup_type?: ListAdminDatastoreGroupsResponseBodyItemBackupType;
1404
+ comment?: string;
1405
+ files: ListAdminDatastoreGroupsResponseBodyItemFilesList;
1406
+ last_backup?: number;
1407
+ owner?: string;
1408
+ }
1409
+ export const ListAdminDatastoreGroupsResponseBodyItem = /*@__PURE__*/ S.suspend(
1410
+ () =>
1411
+ S.Struct({
1412
+ backup_count: S.optional(S.Number.pipe(T.Body("backup-count"))),
1413
+ backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
1414
+ backup_type: S.optional(
1415
+ ListAdminDatastoreGroupsResponseBodyItemBackupType.pipe(
1416
+ T.Body("backup-type"),
1417
+ ),
1418
+ ),
1419
+ comment: S.optional(S.String),
1420
+ files: ListAdminDatastoreGroupsResponseBodyItemFilesList,
1421
+ last_backup: S.optional(S.Number.pipe(T.Body("last-backup"))),
1422
+ owner: S.optional(S.String),
1423
+ }),
1424
+ ).annotate({
1425
+ identifier: "ListAdminDatastoreGroupsResponseBodyItem",
1426
+ }) as any as S.Schema<ListAdminDatastoreGroupsResponseBodyItem>;
1427
+
1428
+ export type ListAdminDatastoreGroupsResponseBodyList =
1429
+ Array<ListAdminDatastoreGroupsResponseBodyItem>;
1430
+ export const ListAdminDatastoreGroupsResponseBodyList = /*@__PURE__*/ S.Array(
1431
+ ListAdminDatastoreGroupsResponseBodyItem,
1432
+ ) as any as S.Schema<ListAdminDatastoreGroupsResponseBodyList>;
1433
+
1434
+ export type ListAdminDatastoreGroupsResponse =
1435
+ ListAdminDatastoreGroupsResponseBodyList;
1436
+ export const ListAdminDatastoreGroupsResponse = /*@__PURE__*/ S.suspend(() =>
1437
+ ListAdminDatastoreGroupsResponseBodyList.pipe(T.RawResponseRoot()),
1438
+ ).annotate({
1439
+ identifier: "ListAdminDatastoreGroupsResponse",
1440
+ }) as any as S.Schema<ListAdminDatastoreGroupsResponse>;
1441
+
1442
+ export interface ListAdminDatastoreNamespaceRequest {
1443
+ store: string;
1444
+ /** How many levels of namespaces should be operated on (0 == no recursion) */
1445
+ max_depth?: string;
1446
+ /** Namespace. */
1447
+ parent?: string;
1448
+ }
1449
+ export const ListAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(() =>
1450
+ S.Struct({
1451
+ store: S.String.pipe(T.Label()),
1452
+ max_depth: S.optional(S.String.pipe(T.Query("max-depth"))),
1453
+ parent: S.optional(S.String.pipe(T.Query())),
1454
+ }).pipe(
1455
+ T.Http({
1456
+ method: "GET",
1457
+ uri: "/admin/datastore/{store}/namespace",
1458
+ code: 200,
1459
+ }),
1460
+ ),
1461
+ ).annotate({
1462
+ identifier: "ListAdminDatastoreNamespaceRequest",
1463
+ }) as any as S.Schema<ListAdminDatastoreNamespaceRequest>;
1464
+
1465
+ export interface ListAdminDatastoreNamespaceResponseBodyItem {
1466
+ comment?: string;
1467
+ ns: string;
1468
+ }
1469
+ export const ListAdminDatastoreNamespaceResponseBodyItem =
1470
+ /*@__PURE__*/ S.suspend(() =>
1471
+ S.Struct({
1472
+ comment: S.optional(S.String),
1473
+ ns: S.String,
1474
+ }),
1475
+ ).annotate({
1476
+ identifier: "ListAdminDatastoreNamespaceResponseBodyItem",
1477
+ }) as any as S.Schema<ListAdminDatastoreNamespaceResponseBodyItem>;
1478
+
1479
+ export type ListAdminDatastoreNamespaceResponseBodyList =
1480
+ Array<ListAdminDatastoreNamespaceResponseBodyItem>;
1481
+ export const ListAdminDatastoreNamespaceResponseBodyList =
1482
+ /*@__PURE__*/ S.Array(
1483
+ ListAdminDatastoreNamespaceResponseBodyItem,
1484
+ ) as any as S.Schema<ListAdminDatastoreNamespaceResponseBodyList>;
1485
+
1486
+ export type ListAdminDatastoreNamespaceResponse =
1487
+ ListAdminDatastoreNamespaceResponseBodyList;
1488
+ export const ListAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(() =>
1489
+ ListAdminDatastoreNamespaceResponseBodyList.pipe(T.RawResponseRoot()),
1490
+ ).annotate({
1491
+ identifier: "ListAdminDatastoreNamespaceResponse",
1492
+ }) as any as S.Schema<ListAdminDatastoreNamespaceResponse>;
1493
+
1494
+ export type ListAdminDatastoreSnapshotsRequestBackupType = "vm" | "ct" | "host";
1495
+ export const ListAdminDatastoreSnapshotsRequestBackupType = S.String;
1496
+
1497
+ export interface ListAdminDatastoreSnapshotsRequest {
1498
+ store: string;
1499
+ /** Backup ID. */
1500
+ backup_id?: string;
1501
+ /** Backup types. */
1502
+ backup_type?: ListAdminDatastoreSnapshotsRequestBackupType | (string & {});
1503
+ /** Namespace. */
1504
+ ns?: string;
1505
+ }
1506
+ export const ListAdminDatastoreSnapshotsRequest = /*@__PURE__*/ S.suspend(() =>
1507
+ S.Struct({
1508
+ store: S.String.pipe(T.Label()),
1509
+ backup_id: S.optional(S.String.pipe(T.Query("backup-id"))),
1510
+ backup_type: S.optional(
1511
+ ListAdminDatastoreSnapshotsRequestBackupType.pipe(T.Query("backup-type")),
1512
+ ),
1513
+ ns: S.optional(S.String.pipe(T.Query())),
1514
+ }).pipe(
1515
+ T.Http({
1516
+ method: "GET",
1517
+ uri: "/admin/datastore/{store}/snapshots",
1518
+ code: 200,
1519
+ }),
1520
+ ),
1521
+ ).annotate({
1522
+ identifier: "ListAdminDatastoreSnapshotsRequest",
1523
+ }) as any as S.Schema<ListAdminDatastoreSnapshotsRequest>;
1524
+
1525
+ export type ListAdminDatastoreSnapshotsResponseBodyItemBackupType =
1526
+ | "vm"
1527
+ | "ct"
1528
+ | "host";
1529
+ export const ListAdminDatastoreSnapshotsResponseBodyItemBackupType = S.String;
1530
+
1531
+ export type ListAdminDatastoreSnapshotsResponseBodyItemFilesList =
1532
+ Array<string>;
1533
+ export const ListAdminDatastoreSnapshotsResponseBodyItemFilesList =
1534
+ /*@__PURE__*/ S.Array(
1535
+ S.String,
1536
+ ) as any as S.Schema<ListAdminDatastoreSnapshotsResponseBodyItemFilesList>;
1537
+
1538
+ export type ListAdminDatastoreSnapshotsResponseBodyItemVerificationState =
1539
+ | "ok"
1540
+ | "failed";
1541
+ export const ListAdminDatastoreSnapshotsResponseBodyItemVerificationState =
1542
+ S.String;
1543
+
1544
+ export interface ListAdminDatastoreSnapshotsResponseBodyItemVerification {
1545
+ state: ListAdminDatastoreSnapshotsResponseBodyItemVerificationState;
1546
+ upid: string;
1547
+ }
1548
+ export const ListAdminDatastoreSnapshotsResponseBodyItemVerification =
1549
+ /*@__PURE__*/ S.suspend(() =>
1550
+ S.Struct({
1551
+ state: ListAdminDatastoreSnapshotsResponseBodyItemVerificationState,
1552
+ upid: S.String,
1553
+ }),
1554
+ ).annotate({
1555
+ identifier: "ListAdminDatastoreSnapshotsResponseBodyItemVerification",
1556
+ }) as any as S.Schema<ListAdminDatastoreSnapshotsResponseBodyItemVerification>;
1557
+
1558
+ export interface ListAdminDatastoreSnapshotsResponseBodyItem {
1559
+ backup_id?: string;
1560
+ backup_time?: number;
1561
+ backup_type?: ListAdminDatastoreSnapshotsResponseBodyItemBackupType;
1562
+ comment?: string;
1563
+ files: ListAdminDatastoreSnapshotsResponseBodyItemFilesList;
1564
+ fingerprint?: string;
1565
+ owner?: string;
1566
+ protected: unknown;
1567
+ size?: number;
1568
+ verification?: ListAdminDatastoreSnapshotsResponseBodyItemVerification;
1569
+ }
1570
+ export const ListAdminDatastoreSnapshotsResponseBodyItem =
1571
+ /*@__PURE__*/ S.suspend(() =>
1572
+ S.Struct({
1573
+ backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
1574
+ backup_time: S.optional(S.Number.pipe(T.Body("backup-time"))),
1575
+ backup_type: S.optional(
1576
+ ListAdminDatastoreSnapshotsResponseBodyItemBackupType.pipe(
1577
+ T.Body("backup-type"),
1578
+ ),
1579
+ ),
1580
+ comment: S.optional(S.String),
1581
+ files: ListAdminDatastoreSnapshotsResponseBodyItemFilesList,
1582
+ fingerprint: S.optional(S.String),
1583
+ owner: S.optional(S.String),
1584
+ protected: S.Unknown,
1585
+ size: S.optional(S.Number),
1586
+ verification: S.optional(
1587
+ ListAdminDatastoreSnapshotsResponseBodyItemVerification,
1588
+ ),
1589
+ }),
1590
+ ).annotate({
1591
+ identifier: "ListAdminDatastoreSnapshotsResponseBodyItem",
1592
+ }) as any as S.Schema<ListAdminDatastoreSnapshotsResponseBodyItem>;
1593
+
1594
+ export type ListAdminDatastoreSnapshotsResponseBodyList =
1595
+ Array<ListAdminDatastoreSnapshotsResponseBodyItem>;
1596
+ export const ListAdminDatastoreSnapshotsResponseBodyList =
1597
+ /*@__PURE__*/ S.Array(
1598
+ ListAdminDatastoreSnapshotsResponseBodyItem,
1599
+ ) as any as S.Schema<ListAdminDatastoreSnapshotsResponseBodyList>;
1600
+
1601
+ export type ListAdminDatastoreSnapshotsResponse =
1602
+ ListAdminDatastoreSnapshotsResponseBodyList;
1603
+ export const ListAdminDatastoreSnapshotsResponse = /*@__PURE__*/ S.suspend(() =>
1604
+ ListAdminDatastoreSnapshotsResponseBodyList.pipe(T.RawResponseRoot()),
1605
+ ).annotate({
1606
+ identifier: "ListAdminDatastoreSnapshotsResponse",
1607
+ }) as any as S.Schema<ListAdminDatastoreSnapshotsResponse>;
1608
+
1609
+ export interface ListAdminGcRequest {
1610
+ /** Datastore name. */
1611
+ store?: string;
1612
+ }
1613
+ export const ListAdminGcRequest = /*@__PURE__*/ S.suspend(() =>
1614
+ S.Struct({
1615
+ store: S.optional(S.String.pipe(T.Query())),
1616
+ }).pipe(T.Http({ method: "GET", uri: "/admin/gc", code: 200 })),
1617
+ ).annotate({
1618
+ identifier: "ListAdminGcRequest",
1619
+ }) as any as S.Schema<ListAdminGcRequest>;
1620
+
1621
+ export type ListAdminGcResponseBodyItemCacheStats =
1622
+ GetAdminDatastoreGcResponseCacheStats;
1623
+ export const ListAdminGcResponseBodyItemCacheStats =
1624
+ GetAdminDatastoreGcResponseCacheStats;
1625
+
1626
+ export type ListAdminGcResponseBodyItem = GetAdminGcResponseBodyItem;
1627
+ export const ListAdminGcResponseBodyItem = GetAdminGcResponseBodyItem;
1628
+
1629
+ export type ListAdminGcResponseBodyList = Array<GetAdminGcResponseBodyItem>;
1630
+ export const ListAdminGcResponseBodyList = /*@__PURE__*/ S.Array(
1631
+ GetAdminGcResponseBodyItem,
1632
+ ) as any as S.Schema<ListAdminGcResponseBodyList>;
1633
+
1634
+ export type ListAdminGcResponse = ListAdminGcResponseBodyList;
1635
+ export const ListAdminGcResponse = /*@__PURE__*/ S.suspend(() =>
1636
+ ListAdminGcResponseBodyList.pipe(T.RawResponseRoot()),
1637
+ ).annotate({
1638
+ identifier: "ListAdminGcResponse",
1639
+ }) as any as S.Schema<ListAdminGcResponse>;
1640
+
1641
+ export interface ListAdminMetricsRequest {}
1642
+ export const ListAdminMetricsRequest = /*@__PURE__*/ S.suspend(() =>
1643
+ S.Struct({}).pipe(
1644
+ T.Http({ method: "GET", uri: "/admin/metrics", code: 200 }),
1645
+ ),
1646
+ ).annotate({
1647
+ identifier: "ListAdminMetricsRequest",
1648
+ }) as any as S.Schema<ListAdminMetricsRequest>;
1649
+
1650
+ export type ListAdminMetricsResponseBodyItemType =
1651
+ | "influxdb-http"
1652
+ | "influxdb-udp";
1653
+ export const ListAdminMetricsResponseBodyItemType = S.String;
1654
+
1655
+ export interface ListAdminMetricsResponseBodyItem {
1656
+ comment?: string;
1657
+ enable?: unknown;
1658
+ name: string;
1659
+ server: string;
1660
+ type: ListAdminMetricsResponseBodyItemType;
1661
+ }
1662
+ export const ListAdminMetricsResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
1663
+ S.Struct({
1664
+ comment: S.optional(S.String),
1665
+ enable: S.optional(S.Unknown),
1666
+ name: S.String,
1667
+ server: S.String,
1668
+ type: ListAdminMetricsResponseBodyItemType,
1669
+ }),
1670
+ ).annotate({
1671
+ identifier: "ListAdminMetricsResponseBodyItem",
1672
+ }) as any as S.Schema<ListAdminMetricsResponseBodyItem>;
1673
+
1674
+ export type ListAdminMetricsResponseBodyList =
1675
+ Array<ListAdminMetricsResponseBodyItem>;
1676
+ export const ListAdminMetricsResponseBodyList = /*@__PURE__*/ S.Array(
1677
+ ListAdminMetricsResponseBodyItem,
1678
+ ) as any as S.Schema<ListAdminMetricsResponseBodyList>;
1679
+
1680
+ export type ListAdminMetricsResponse = ListAdminMetricsResponseBodyList;
1681
+ export const ListAdminMetricsResponse = /*@__PURE__*/ S.suspend(() =>
1682
+ ListAdminMetricsResponseBodyList.pipe(T.RawResponseRoot()),
1683
+ ).annotate({
1684
+ identifier: "ListAdminMetricsResponse",
1685
+ }) as any as S.Schema<ListAdminMetricsResponse>;
1686
+
1687
+ export interface ListAdminPruneRequest {
1688
+ /** Datastore name. */
1689
+ store?: string;
1690
+ }
1691
+ export const ListAdminPruneRequest = /*@__PURE__*/ S.suspend(() =>
1692
+ S.Struct({
1693
+ store: S.optional(S.String.pipe(T.Query())),
1694
+ }).pipe(T.Http({ method: "GET", uri: "/admin/prune", code: 200 })),
1695
+ ).annotate({
1696
+ identifier: "ListAdminPruneRequest",
1697
+ }) as any as S.Schema<ListAdminPruneRequest>;
1698
+
1699
+ export interface ListAdminPruneResponseBodyItem {
1700
+ comment?: string;
1701
+ disable?: unknown;
1702
+ id: string;
1703
+ keep_daily?: number;
1704
+ keep_hourly?: number;
1705
+ keep_last?: number;
1706
+ keep_monthly?: number;
1707
+ keep_weekly?: number;
1708
+ keep_yearly?: number;
1709
+ last_run_endtime?: number;
1710
+ last_run_state?: string;
1711
+ last_run_upid?: string;
1712
+ max_depth?: number;
1713
+ next_run?: number;
1714
+ ns?: string;
1715
+ schedule: string;
1716
+ store: string;
1717
+ }
1718
+ export const ListAdminPruneResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
1719
+ S.Struct({
1720
+ comment: S.optional(S.String),
1721
+ disable: S.optional(S.Unknown),
1722
+ id: S.String,
1723
+ keep_daily: S.optional(S.Number.pipe(T.Body("keep-daily"))),
1724
+ keep_hourly: S.optional(S.Number.pipe(T.Body("keep-hourly"))),
1725
+ keep_last: S.optional(S.Number.pipe(T.Body("keep-last"))),
1726
+ keep_monthly: S.optional(S.Number.pipe(T.Body("keep-monthly"))),
1727
+ keep_weekly: S.optional(S.Number.pipe(T.Body("keep-weekly"))),
1728
+ keep_yearly: S.optional(S.Number.pipe(T.Body("keep-yearly"))),
1729
+ last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
1730
+ last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
1731
+ last_run_upid: S.optional(S.String.pipe(T.Body("last-run-upid"))),
1732
+ max_depth: S.optional(S.Number.pipe(T.Body("max-depth"))),
1733
+ next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
1734
+ ns: S.optional(S.String),
1735
+ schedule: S.String,
1736
+ store: S.String,
1737
+ }),
1738
+ ).annotate({
1739
+ identifier: "ListAdminPruneResponseBodyItem",
1740
+ }) as any as S.Schema<ListAdminPruneResponseBodyItem>;
1741
+
1742
+ export type ListAdminPruneResponseBodyList =
1743
+ Array<ListAdminPruneResponseBodyItem>;
1744
+ export const ListAdminPruneResponseBodyList = /*@__PURE__*/ S.Array(
1745
+ ListAdminPruneResponseBodyItem,
1746
+ ) as any as S.Schema<ListAdminPruneResponseBodyList>;
1747
+
1748
+ export type ListAdminPruneResponse = ListAdminPruneResponseBodyList;
1749
+ export const ListAdminPruneResponse = /*@__PURE__*/ S.suspend(() =>
1750
+ ListAdminPruneResponseBodyList.pipe(T.RawResponseRoot()),
1751
+ ).annotate({
1752
+ identifier: "ListAdminPruneResponse",
1753
+ }) as any as S.Schema<ListAdminPruneResponse>;
1754
+
1755
+ export type ListAdminSyncRequestSyncDirection = "all" | "push" | "pull";
1756
+ export const ListAdminSyncRequestSyncDirection = S.String;
1757
+
1758
+ export interface ListAdminSyncRequest {
1759
+ /** Datastore name. */
1760
+ store?: string;
1761
+ /** The direction of the listed sync jobs: push, pull or all. */
1762
+ sync_direction?: ListAdminSyncRequestSyncDirection | (string & {});
1763
+ }
1764
+ export const ListAdminSyncRequest = /*@__PURE__*/ S.suspend(() =>
1765
+ S.Struct({
1766
+ store: S.optional(S.String.pipe(T.Query())),
1767
+ sync_direction: S.optional(
1768
+ ListAdminSyncRequestSyncDirection.pipe(T.Query("sync-direction")),
1769
+ ),
1770
+ }).pipe(T.Http({ method: "GET", uri: "/admin/sync", code: 200 })),
1771
+ ).annotate({
1772
+ identifier: "ListAdminSyncRequest",
1773
+ }) as any as S.Schema<ListAdminSyncRequest>;
1774
+
1775
+ export type ListAdminSyncResponseBodyItemAssociatedKeyList = Array<string>;
1776
+ export const ListAdminSyncResponseBodyItemAssociatedKeyList =
1777
+ /*@__PURE__*/ S.Array(
1778
+ S.String,
1779
+ ) as any as S.Schema<ListAdminSyncResponseBodyItemAssociatedKeyList>;
1780
+
1781
+ export type ListAdminSyncResponseBodyItemGroupFilterList = Array<string>;
1782
+ export const ListAdminSyncResponseBodyItemGroupFilterList =
1783
+ /*@__PURE__*/ S.Array(
1784
+ S.String,
1785
+ ) as any as S.Schema<ListAdminSyncResponseBodyItemGroupFilterList>;
1786
+
1787
+ export type ListAdminSyncResponseBodyItemSyncDirection = "pull" | "push";
1788
+ export const ListAdminSyncResponseBodyItemSyncDirection = S.String;
1789
+
1790
+ export interface ListAdminSyncResponseBodyItem {
1791
+ active_encryption_key?: string;
1792
+ associated_key?: ListAdminSyncResponseBodyItemAssociatedKeyList;
1793
+ burst_in?: string;
1794
+ burst_out?: string;
1795
+ comment?: string;
1796
+ encrypted_only?: unknown;
1797
+ group_filter?: ListAdminSyncResponseBodyItemGroupFilterList;
1798
+ id: string;
1799
+ last_run_endtime?: number;
1800
+ last_run_state?: string;
1801
+ last_run_upid?: string;
1802
+ max_depth?: number;
1803
+ next_run?: number;
1804
+ ns?: string;
1805
+ owner?: string;
1806
+ rate_in?: string;
1807
+ rate_out?: string;
1808
+ remote?: string;
1809
+ remote_ns?: string;
1810
+ remote_store?: string;
1811
+ remove_vanished?: unknown;
1812
+ resync_corrupt?: unknown;
1813
+ run_on_mount?: unknown;
1814
+ schedule?: string;
1815
+ store: string;
1816
+ sync_direction?: ListAdminSyncResponseBodyItemSyncDirection;
1817
+ transfer_last?: number;
1818
+ unmount_on_done?: unknown;
1819
+ verified_only?: unknown;
1820
+ worker_threads?: number;
1821
+ }
1822
+ export const ListAdminSyncResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
1823
+ S.Struct({
1824
+ active_encryption_key: S.optional(
1825
+ S.String.pipe(T.Body("active-encryption-key")),
1826
+ ),
1827
+ associated_key: S.optional(
1828
+ ListAdminSyncResponseBodyItemAssociatedKeyList.pipe(
1829
+ T.Body("associated-key"),
1830
+ ),
1831
+ ),
1832
+ burst_in: S.optional(S.String.pipe(T.Body("burst-in"))),
1833
+ burst_out: S.optional(S.String.pipe(T.Body("burst-out"))),
1834
+ comment: S.optional(S.String),
1835
+ encrypted_only: S.optional(S.Unknown.pipe(T.Body("encrypted-only"))),
1836
+ group_filter: S.optional(
1837
+ ListAdminSyncResponseBodyItemGroupFilterList.pipe(T.Body("group-filter")),
1838
+ ),
1839
+ id: S.String,
1840
+ last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
1841
+ last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
1842
+ last_run_upid: S.optional(S.String.pipe(T.Body("last-run-upid"))),
1843
+ max_depth: S.optional(S.Number.pipe(T.Body("max-depth"))),
1844
+ next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
1845
+ ns: S.optional(S.String),
1846
+ owner: S.optional(S.String),
1847
+ rate_in: S.optional(S.String.pipe(T.Body("rate-in"))),
1848
+ rate_out: S.optional(S.String.pipe(T.Body("rate-out"))),
1849
+ remote: S.optional(S.String),
1850
+ remote_ns: S.optional(S.String.pipe(T.Body("remote-ns"))),
1851
+ remote_store: S.optional(S.String.pipe(T.Body("remote-store"))),
1852
+ remove_vanished: S.optional(S.Unknown.pipe(T.Body("remove-vanished"))),
1853
+ resync_corrupt: S.optional(S.Unknown.pipe(T.Body("resync-corrupt"))),
1854
+ run_on_mount: S.optional(S.Unknown.pipe(T.Body("run-on-mount"))),
1855
+ schedule: S.optional(S.String),
1856
+ store: S.String,
1857
+ sync_direction: S.optional(
1858
+ ListAdminSyncResponseBodyItemSyncDirection.pipe(T.Body("sync-direction")),
1859
+ ),
1860
+ transfer_last: S.optional(S.Number.pipe(T.Body("transfer-last"))),
1861
+ unmount_on_done: S.optional(S.Unknown.pipe(T.Body("unmount-on-done"))),
1862
+ verified_only: S.optional(S.Unknown.pipe(T.Body("verified-only"))),
1863
+ worker_threads: S.optional(S.Number.pipe(T.Body("worker-threads"))),
1864
+ }),
1865
+ ).annotate({
1866
+ identifier: "ListAdminSyncResponseBodyItem",
1867
+ }) as any as S.Schema<ListAdminSyncResponseBodyItem>;
1868
+
1869
+ export type ListAdminSyncResponseBodyList =
1870
+ Array<ListAdminSyncResponseBodyItem>;
1871
+ export const ListAdminSyncResponseBodyList = /*@__PURE__*/ S.Array(
1872
+ ListAdminSyncResponseBodyItem,
1873
+ ) as any as S.Schema<ListAdminSyncResponseBodyList>;
1874
+
1875
+ export type ListAdminSyncResponse = ListAdminSyncResponseBodyList;
1876
+ export const ListAdminSyncResponse = /*@__PURE__*/ S.suspend(() =>
1877
+ ListAdminSyncResponseBodyList.pipe(T.RawResponseRoot()),
1878
+ ).annotate({
1879
+ identifier: "ListAdminSyncResponse",
1880
+ }) as any as S.Schema<ListAdminSyncResponse>;
1881
+
1882
+ export interface ListAdminTrafficControlRequest {}
1883
+ export const ListAdminTrafficControlRequest = /*@__PURE__*/ S.suspend(() =>
1884
+ S.Struct({}).pipe(
1885
+ T.Http({ method: "GET", uri: "/admin/traffic-control", code: 200 }),
1886
+ ),
1887
+ ).annotate({
1888
+ identifier: "ListAdminTrafficControlRequest",
1889
+ }) as any as S.Schema<ListAdminTrafficControlRequest>;
1890
+
1891
+ export type ListAdminTrafficControlResponseBodyItemNetworkList = Array<string>;
1892
+ export const ListAdminTrafficControlResponseBodyItemNetworkList =
1893
+ /*@__PURE__*/ S.Array(
1894
+ S.String,
1895
+ ) as any as S.Schema<ListAdminTrafficControlResponseBodyItemNetworkList>;
1896
+
1897
+ export type ListAdminTrafficControlResponseBodyItemTimeframeList =
1898
+ Array<string>;
1899
+ export const ListAdminTrafficControlResponseBodyItemTimeframeList =
1900
+ /*@__PURE__*/ S.Array(
1901
+ S.String,
1902
+ ) as any as S.Schema<ListAdminTrafficControlResponseBodyItemTimeframeList>;
1903
+
1904
+ export type ListAdminTrafficControlResponseBodyItemUsersList = Array<string>;
1905
+ export const ListAdminTrafficControlResponseBodyItemUsersList =
1906
+ /*@__PURE__*/ S.Array(
1907
+ S.String,
1908
+ ) as any as S.Schema<ListAdminTrafficControlResponseBodyItemUsersList>;
1909
+
1910
+ export interface ListAdminTrafficControlResponseBodyItem {
1911
+ burst_in?: string;
1912
+ burst_out?: string;
1913
+ comment?: string;
1914
+ cur_rate_in?: number;
1915
+ cur_rate_out?: number;
1916
+ name: string;
1917
+ network: ListAdminTrafficControlResponseBodyItemNetworkList;
1918
+ rate_in?: string;
1919
+ rate_out?: string;
1920
+ timeframe?: ListAdminTrafficControlResponseBodyItemTimeframeList;
1921
+ users?: ListAdminTrafficControlResponseBodyItemUsersList;
1922
+ }
1923
+ export const ListAdminTrafficControlResponseBodyItem = /*@__PURE__*/ S.suspend(
1924
+ () =>
1925
+ S.Struct({
1926
+ burst_in: S.optional(S.String.pipe(T.Body("burst-in"))),
1927
+ burst_out: S.optional(S.String.pipe(T.Body("burst-out"))),
1928
+ comment: S.optional(S.String),
1929
+ cur_rate_in: S.optional(S.Number.pipe(T.Body("cur-rate-in"))),
1930
+ cur_rate_out: S.optional(S.Number.pipe(T.Body("cur-rate-out"))),
1931
+ name: S.String,
1932
+ network: ListAdminTrafficControlResponseBodyItemNetworkList,
1933
+ rate_in: S.optional(S.String.pipe(T.Body("rate-in"))),
1934
+ rate_out: S.optional(S.String.pipe(T.Body("rate-out"))),
1935
+ timeframe: S.optional(
1936
+ ListAdminTrafficControlResponseBodyItemTimeframeList,
1937
+ ),
1938
+ users: S.optional(ListAdminTrafficControlResponseBodyItemUsersList),
1939
+ }),
1940
+ ).annotate({
1941
+ identifier: "ListAdminTrafficControlResponseBodyItem",
1942
+ }) as any as S.Schema<ListAdminTrafficControlResponseBodyItem>;
1943
+
1944
+ export type ListAdminTrafficControlResponseBodyList =
1945
+ Array<ListAdminTrafficControlResponseBodyItem>;
1946
+ export const ListAdminTrafficControlResponseBodyList = /*@__PURE__*/ S.Array(
1947
+ ListAdminTrafficControlResponseBodyItem,
1948
+ ) as any as S.Schema<ListAdminTrafficControlResponseBodyList>;
1949
+
1950
+ export type ListAdminTrafficControlResponse =
1951
+ ListAdminTrafficControlResponseBodyList;
1952
+ export const ListAdminTrafficControlResponse = /*@__PURE__*/ S.suspend(() =>
1953
+ ListAdminTrafficControlResponseBodyList.pipe(T.RawResponseRoot()),
1954
+ ).annotate({
1955
+ identifier: "ListAdminTrafficControlResponse",
1956
+ }) as any as S.Schema<ListAdminTrafficControlResponse>;
1957
+
1958
+ export interface ListAdminVerifyRequest {
1959
+ /** Datastore name. */
1960
+ store?: string;
1961
+ }
1962
+ export const ListAdminVerifyRequest = /*@__PURE__*/ S.suspend(() =>
1963
+ S.Struct({
1964
+ store: S.optional(S.String.pipe(T.Query())),
1965
+ }).pipe(T.Http({ method: "GET", uri: "/admin/verify", code: 200 })),
1966
+ ).annotate({
1967
+ identifier: "ListAdminVerifyRequest",
1968
+ }) as any as S.Schema<ListAdminVerifyRequest>;
1969
+
1970
+ export interface ListAdminVerifyResponseBodyItem {
1971
+ comment?: string;
1972
+ id: string;
1973
+ ignore_verified?: unknown;
1974
+ last_run_endtime?: number;
1975
+ last_run_state?: string;
1976
+ last_run_upid?: string;
1977
+ max_depth?: number;
1978
+ next_run?: number;
1979
+ ns?: string;
1980
+ outdated_after?: number;
1981
+ read_threads?: number;
1982
+ schedule?: string;
1983
+ store: string;
1984
+ verify_threads?: number;
1985
+ }
1986
+ export const ListAdminVerifyResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
1987
+ S.Struct({
1988
+ comment: S.optional(S.String),
1989
+ id: S.String,
1990
+ ignore_verified: S.optional(S.Unknown.pipe(T.Body("ignore-verified"))),
1991
+ last_run_endtime: S.optional(S.Number.pipe(T.Body("last-run-endtime"))),
1992
+ last_run_state: S.optional(S.String.pipe(T.Body("last-run-state"))),
1993
+ last_run_upid: S.optional(S.String.pipe(T.Body("last-run-upid"))),
1994
+ max_depth: S.optional(S.Number.pipe(T.Body("max-depth"))),
1995
+ next_run: S.optional(S.Number.pipe(T.Body("next-run"))),
1996
+ ns: S.optional(S.String),
1997
+ outdated_after: S.optional(S.Number.pipe(T.Body("outdated-after"))),
1998
+ read_threads: S.optional(S.Number.pipe(T.Body("read-threads"))),
1999
+ schedule: S.optional(S.String),
2000
+ store: S.String,
2001
+ verify_threads: S.optional(S.Number.pipe(T.Body("verify-threads"))),
2002
+ }),
2003
+ ).annotate({
2004
+ identifier: "ListAdminVerifyResponseBodyItem",
2005
+ }) as any as S.Schema<ListAdminVerifyResponseBodyItem>;
2006
+
2007
+ export type ListAdminVerifyResponseBodyList =
2008
+ Array<ListAdminVerifyResponseBodyItem>;
2009
+ export const ListAdminVerifyResponseBodyList = /*@__PURE__*/ S.Array(
2010
+ ListAdminVerifyResponseBodyItem,
2011
+ ) as any as S.Schema<ListAdminVerifyResponseBodyList>;
2012
+
2013
+ export type ListAdminVerifyResponse = ListAdminVerifyResponseBodyList;
2014
+ export const ListAdminVerifyResponse = /*@__PURE__*/ S.suspend(() =>
2015
+ ListAdminVerifyResponseBodyList.pipe(T.RawResponseRoot()),
2016
+ ).annotate({
2017
+ identifier: "ListAdminVerifyResponse",
2018
+ }) as any as S.Schema<ListAdminVerifyResponse>;
2019
+
2020
+ export type MoveAdminDatastoreGroupRequestBackupType = "vm" | "ct" | "host";
2021
+ export const MoveAdminDatastoreGroupRequestBackupType = S.String;
2022
+
2023
+ export interface MoveAdminDatastoreGroupRequest {
2024
+ store: string;
2025
+ /** Backup ID. */
2026
+ backup_id: string;
2027
+ /** Backup types. */
2028
+ backup_type: MoveAdminDatastoreGroupRequestBackupType | (string & {});
2029
+ /** If the group already exists in the target namespace, merge snapshots into it. Requires matching ownership and non-overlapping snapshot times. */
2030
+ merge_group?: string;
2031
+ /** Namespace. */
2032
+ ns?: string;
2033
+ /** Namespace. */
2034
+ target_ns?: string;
2035
+ }
2036
+ export const MoveAdminDatastoreGroupRequest = /*@__PURE__*/ S.suspend(() =>
2037
+ S.Struct({
2038
+ store: S.String.pipe(T.Label()),
2039
+ backup_id: S.String.pipe(T.Body("backup-id")),
2040
+ backup_type: MoveAdminDatastoreGroupRequestBackupType.pipe(
2041
+ T.Body("backup-type"),
2042
+ ),
2043
+ merge_group: S.optional(S.String.pipe(T.Body("merge-group"))),
2044
+ ns: S.optional(S.String),
2045
+ target_ns: S.optional(S.String.pipe(T.Body("target-ns"))),
2046
+ }).pipe(
2047
+ T.Http({
2048
+ method: "POST",
2049
+ uri: "/admin/datastore/{store}/move-group",
2050
+ code: 200,
2051
+ contentType: "form-urlencoded",
2052
+ }),
2053
+ ),
2054
+ ).annotate({
2055
+ identifier: "MoveAdminDatastoreGroupRequest",
2056
+ }) as any as S.Schema<MoveAdminDatastoreGroupRequest>;
2057
+
2058
+ export type MoveAdminDatastoreGroupResponse = string;
2059
+ export const MoveAdminDatastoreGroupResponse = /*@__PURE__*/ S.suspend(() =>
2060
+ S.String.pipe(T.RawResponseRoot()),
2061
+ ).annotate({
2062
+ identifier: "MoveAdminDatastoreGroupResponse",
2063
+ }) as any as S.Schema<MoveAdminDatastoreGroupResponse>;
2064
+
2065
+ export interface MoveAdminDatastoreNamespaceRequest {
2066
+ store: string;
2067
+ /** Remove the source namespace after moving all contents. Defaults to true. */
2068
+ delete_source?: string;
2069
+ /** How many levels of namespaces should be operated on (0 == no recursion) */
2070
+ max_depth?: string;
2071
+ /** If a group with the same name already exists in the target namespace, merge snapshots into it. Requires matching ownership and non-overlapping snapshot times. */
2072
+ merge_groups?: string;
2073
+ /** Namespace. */
2074
+ ns: string;
2075
+ /** Namespace. */
2076
+ target_ns: string;
2077
+ }
2078
+ export const MoveAdminDatastoreNamespaceRequest = /*@__PURE__*/ S.suspend(() =>
2079
+ S.Struct({
2080
+ store: S.String.pipe(T.Label()),
2081
+ delete_source: S.optional(S.String.pipe(T.Body("delete-source"))),
2082
+ max_depth: S.optional(S.String.pipe(T.Body("max-depth"))),
2083
+ merge_groups: S.optional(S.String.pipe(T.Body("merge-groups"))),
2084
+ ns: S.String,
2085
+ target_ns: S.String.pipe(T.Body("target-ns")),
2086
+ }).pipe(
2087
+ T.Http({
2088
+ method: "POST",
2089
+ uri: "/admin/datastore/{store}/move-namespace",
2090
+ code: 200,
2091
+ contentType: "form-urlencoded",
2092
+ }),
2093
+ ),
2094
+ ).annotate({
2095
+ identifier: "MoveAdminDatastoreNamespaceRequest",
2096
+ }) as any as S.Schema<MoveAdminDatastoreNamespaceRequest>;
2097
+
2098
+ export type MoveAdminDatastoreNamespaceResponse = string;
2099
+ export const MoveAdminDatastoreNamespaceResponse = /*@__PURE__*/ S.suspend(() =>
2100
+ S.String.pipe(T.RawResponseRoot()),
2101
+ ).annotate({
2102
+ identifier: "MoveAdminDatastoreNamespaceResponse",
2103
+ }) as any as S.Schema<MoveAdminDatastoreNamespaceResponse>;
2104
+
2105
+ export type PutAdminDatastoreGroupNotesRequestBackupType = "vm" | "ct" | "host";
2106
+ export const PutAdminDatastoreGroupNotesRequestBackupType = S.String;
2107
+
2108
+ export interface PutAdminDatastoreGroupNotesRequest {
2109
+ store: string;
2110
+ /** Backup ID. */
2111
+ backup_id: string;
2112
+ /** Backup types. */
2113
+ backup_type: PutAdminDatastoreGroupNotesRequestBackupType | (string & {});
2114
+ /** A multiline text. */
2115
+ notes: string;
2116
+ /** Namespace. */
2117
+ ns?: string;
2118
+ }
2119
+ export const PutAdminDatastoreGroupNotesRequest = /*@__PURE__*/ S.suspend(() =>
2120
+ S.Struct({
2121
+ store: S.String.pipe(T.Label()),
2122
+ backup_id: S.String.pipe(T.Body("backup-id")),
2123
+ backup_type: PutAdminDatastoreGroupNotesRequestBackupType.pipe(
2124
+ T.Body("backup-type"),
2125
+ ),
2126
+ notes: S.String,
2127
+ ns: S.optional(S.String),
2128
+ }).pipe(
2129
+ T.Http({
2130
+ method: "PUT",
2131
+ uri: "/admin/datastore/{store}/group-notes",
2132
+ code: 200,
2133
+ contentType: "form-urlencoded",
2134
+ }),
2135
+ ),
2136
+ ).annotate({
2137
+ identifier: "PutAdminDatastoreGroupNotesRequest",
2138
+ }) as any as S.Schema<PutAdminDatastoreGroupNotesRequest>;
2139
+
2140
+ export interface PutAdminDatastoreGroupNotesResponse {}
2141
+ export const PutAdminDatastoreGroupNotesResponse = /*@__PURE__*/ S.suspend(() =>
2142
+ S.Struct({}),
2143
+ ).annotate({
2144
+ identifier: "PutAdminDatastoreGroupNotesResponse",
2145
+ }) as any as S.Schema<PutAdminDatastoreGroupNotesResponse>;
2146
+
2147
+ export type PutAdminDatastoreNotesRequestBackupType = "vm" | "ct" | "host";
2148
+ export const PutAdminDatastoreNotesRequestBackupType = S.String;
2149
+
2150
+ export interface PutAdminDatastoreNotesRequest {
2151
+ store: string;
2152
+ /** Backup ID. */
2153
+ backup_id: string;
2154
+ /** Backup time (Unix epoch.) */
2155
+ backup_time: string;
2156
+ /** Backup types. */
2157
+ backup_type: PutAdminDatastoreNotesRequestBackupType | (string & {});
2158
+ /** A multiline text. */
2159
+ notes: string;
2160
+ /** Namespace. */
2161
+ ns?: string;
2162
+ }
2163
+ export const PutAdminDatastoreNotesRequest = /*@__PURE__*/ S.suspend(() =>
2164
+ S.Struct({
2165
+ store: S.String.pipe(T.Label()),
2166
+ backup_id: S.String.pipe(T.Body("backup-id")),
2167
+ backup_time: S.String.pipe(T.Body("backup-time")),
2168
+ backup_type: PutAdminDatastoreNotesRequestBackupType.pipe(
2169
+ T.Body("backup-type"),
2170
+ ),
2171
+ notes: S.String,
2172
+ ns: S.optional(S.String),
2173
+ }).pipe(
2174
+ T.Http({
2175
+ method: "PUT",
2176
+ uri: "/admin/datastore/{store}/notes",
2177
+ code: 200,
2178
+ contentType: "form-urlencoded",
2179
+ }),
2180
+ ),
2181
+ ).annotate({
2182
+ identifier: "PutAdminDatastoreNotesRequest",
2183
+ }) as any as S.Schema<PutAdminDatastoreNotesRequest>;
2184
+
2185
+ export interface PutAdminDatastoreNotesResponse {}
2186
+ export const PutAdminDatastoreNotesResponse = /*@__PURE__*/ S.suspend(() =>
2187
+ S.Struct({}),
2188
+ ).annotate({
2189
+ identifier: "PutAdminDatastoreNotesResponse",
2190
+ }) as any as S.Schema<PutAdminDatastoreNotesResponse>;
2191
+
2192
+ export type PutAdminDatastoreProtectedRequestBackupType = "vm" | "ct" | "host";
2193
+ export const PutAdminDatastoreProtectedRequestBackupType = S.String;
2194
+
2195
+ export interface PutAdminDatastoreProtectedRequest {
2196
+ store: string;
2197
+ /** Backup ID. */
2198
+ backup_id: string;
2199
+ /** Backup time (Unix epoch.) */
2200
+ backup_time: string;
2201
+ /** Backup types. */
2202
+ backup_type: PutAdminDatastoreProtectedRequestBackupType | (string & {});
2203
+ /** Namespace. */
2204
+ ns?: string;
2205
+ /** Enable/disable protection. */
2206
+ protected: string;
2207
+ }
2208
+ export const PutAdminDatastoreProtectedRequest = /*@__PURE__*/ S.suspend(() =>
2209
+ S.Struct({
2210
+ store: S.String.pipe(T.Label()),
2211
+ backup_id: S.String.pipe(T.Body("backup-id")),
2212
+ backup_time: S.String.pipe(T.Body("backup-time")),
2213
+ backup_type: PutAdminDatastoreProtectedRequestBackupType.pipe(
2214
+ T.Body("backup-type"),
2215
+ ),
2216
+ ns: S.optional(S.String),
2217
+ protected: S.String,
2218
+ }).pipe(
2219
+ T.Http({
2220
+ method: "PUT",
2221
+ uri: "/admin/datastore/{store}/protected",
2222
+ code: 200,
2223
+ contentType: "form-urlencoded",
2224
+ }),
2225
+ ),
2226
+ ).annotate({
2227
+ identifier: "PutAdminDatastoreProtectedRequest",
2228
+ }) as any as S.Schema<PutAdminDatastoreProtectedRequest>;
2229
+
2230
+ export interface PutAdminDatastoreProtectedResponse {}
2231
+ export const PutAdminDatastoreProtectedResponse = /*@__PURE__*/ S.suspend(() =>
2232
+ S.Struct({}),
2233
+ ).annotate({
2234
+ identifier: "PutAdminDatastoreProtectedResponse",
2235
+ }) as any as S.Schema<PutAdminDatastoreProtectedResponse>;
2236
+
2237
+ export interface PutAdminDatastoreS3RefreshRequest {
2238
+ store: string;
2239
+ }
2240
+ export const PutAdminDatastoreS3RefreshRequest = /*@__PURE__*/ S.suspend(() =>
2241
+ S.Struct({
2242
+ store: S.String.pipe(T.Label()),
2243
+ }).pipe(
2244
+ T.Http({
2245
+ method: "PUT",
2246
+ uri: "/admin/datastore/{store}/s3-refresh",
2247
+ code: 200,
2248
+ }),
2249
+ ),
2250
+ ).annotate({
2251
+ identifier: "PutAdminDatastoreS3RefreshRequest",
2252
+ }) as any as S.Schema<PutAdminDatastoreS3RefreshRequest>;
2253
+
2254
+ export type PutAdminDatastoreS3RefreshResponse = string;
2255
+ export const PutAdminDatastoreS3RefreshResponse = /*@__PURE__*/ S.suspend(() =>
2256
+ S.String.pipe(T.RawResponseRoot()),
2257
+ ).annotate({
2258
+ identifier: "PutAdminDatastoreS3RefreshResponse",
2259
+ }) as any as S.Schema<PutAdminDatastoreS3RefreshResponse>;
2260
+
2261
+ export interface PutAdminS3CheckRequest {
2262
+ s3_endpoint_id: string;
2263
+ /** Bucket name for S3 object store. */
2264
+ bucket: string;
2265
+ /** Store prefix within bucket for S3 object keys (commonly datastore name) */
2266
+ store_prefix?: string;
2267
+ }
2268
+ export const PutAdminS3CheckRequest = /*@__PURE__*/ S.suspend(() =>
2269
+ S.Struct({
2270
+ s3_endpoint_id: S.String.pipe(T.Label()),
2271
+ bucket: S.String,
2272
+ store_prefix: S.optional(S.String.pipe(T.Body("store-prefix"))),
2273
+ }).pipe(
2274
+ T.Http({
2275
+ method: "PUT",
2276
+ uri: "/admin/s3/{s3-endpoint-id}/check",
2277
+ code: 200,
2278
+ contentType: "form-urlencoded",
2279
+ }),
2280
+ ),
2281
+ ).annotate({
2282
+ identifier: "PutAdminS3CheckRequest",
2283
+ }) as any as S.Schema<PutAdminS3CheckRequest>;
2284
+
2285
+ export interface PutAdminS3CheckResponse {}
2286
+ export const PutAdminS3CheckResponse = /*@__PURE__*/ S.suspend(() =>
2287
+ S.Struct({}),
2288
+ ).annotate({
2289
+ identifier: "PutAdminS3CheckResponse",
2290
+ }) as any as S.Schema<PutAdminS3CheckResponse>;
2291
+
2292
+ export interface PutAdminS3ResetCountersRequest {
2293
+ s3_endpoint_id: string;
2294
+ /** Bucket name for S3 object store. */
2295
+ bucket: string;
2296
+ /** Store prefix within bucket for S3 object keys (commonly datastore name) */
2297
+ store_prefix?: string;
2298
+ }
2299
+ export const PutAdminS3ResetCountersRequest = /*@__PURE__*/ S.suspend(() =>
2300
+ S.Struct({
2301
+ s3_endpoint_id: S.String.pipe(T.Label()),
2302
+ bucket: S.String,
2303
+ store_prefix: S.optional(S.String.pipe(T.Body("store-prefix"))),
2304
+ }).pipe(
2305
+ T.Http({
2306
+ method: "PUT",
2307
+ uri: "/admin/s3/{s3-endpoint-id}/reset-counters",
2308
+ code: 200,
2309
+ contentType: "form-urlencoded",
2310
+ }),
2311
+ ),
2312
+ ).annotate({
2313
+ identifier: "PutAdminS3ResetCountersRequest",
2314
+ }) as any as S.Schema<PutAdminS3ResetCountersRequest>;
2315
+
2316
+ export interface PutAdminS3ResetCountersResponse {}
2317
+ export const PutAdminS3ResetCountersResponse = /*@__PURE__*/ S.suspend(() =>
2318
+ S.Struct({}),
2319
+ ).annotate({
2320
+ identifier: "PutAdminS3ResetCountersResponse",
2321
+ }) as any as S.Schema<PutAdminS3ResetCountersResponse>;
2322
+
2323
+ export interface RunAdminPruneRequest {
2324
+ id: string;
2325
+ }
2326
+ export const RunAdminPruneRequest = /*@__PURE__*/ S.suspend(() =>
2327
+ S.Struct({
2328
+ id: S.String.pipe(T.Label()),
2329
+ }).pipe(T.Http({ method: "POST", uri: "/admin/prune/{id}/run", code: 200 })),
2330
+ ).annotate({
2331
+ identifier: "RunAdminPruneRequest",
2332
+ }) as any as S.Schema<RunAdminPruneRequest>;
2333
+
2334
+ export interface RunAdminPruneResponse {}
2335
+ export const RunAdminPruneResponse = /*@__PURE__*/ S.suspend(() =>
2336
+ S.Struct({}),
2337
+ ).annotate({
2338
+ identifier: "RunAdminPruneResponse",
2339
+ }) as any as S.Schema<RunAdminPruneResponse>;
2340
+
2341
+ export interface RunAdminSyncRequest {
2342
+ id: string;
2343
+ }
2344
+ export const RunAdminSyncRequest = /*@__PURE__*/ S.suspend(() =>
2345
+ S.Struct({
2346
+ id: S.String.pipe(T.Label()),
2347
+ }).pipe(T.Http({ method: "POST", uri: "/admin/sync/{id}/run", code: 200 })),
2348
+ ).annotate({
2349
+ identifier: "RunAdminSyncRequest",
2350
+ }) as any as S.Schema<RunAdminSyncRequest>;
2351
+
2352
+ export interface RunAdminSyncResponse {}
2353
+ export const RunAdminSyncResponse = /*@__PURE__*/ S.suspend(() =>
2354
+ S.Struct({}),
2355
+ ).annotate({
2356
+ identifier: "RunAdminSyncResponse",
2357
+ }) as any as S.Schema<RunAdminSyncResponse>;
2358
+
2359
+ export type UploadAdminDatastoreBackupLogRequestBackupType =
2360
+ | "vm"
2361
+ | "ct"
2362
+ | "host";
2363
+ export const UploadAdminDatastoreBackupLogRequestBackupType = S.String;
2364
+
2365
+ export interface UploadAdminDatastoreBackupLogRequest {
2366
+ store: string;
2367
+ /** Backup ID. */
2368
+ backup_id: string;
2369
+ /** Backup time (Unix epoch.) */
2370
+ backup_time: string;
2371
+ /** Backup type. */
2372
+ backup_type: UploadAdminDatastoreBackupLogRequestBackupType | (string & {});
2373
+ /** Namespace. */
2374
+ ns?: string;
2375
+ }
2376
+ export const UploadAdminDatastoreBackupLogRequest = /*@__PURE__*/ S.suspend(
2377
+ () =>
2378
+ S.Struct({
2379
+ store: S.String.pipe(T.Label()),
2380
+ backup_id: S.String.pipe(T.Body("backup-id")),
2381
+ backup_time: S.String.pipe(T.Body("backup-time")),
2382
+ backup_type: UploadAdminDatastoreBackupLogRequestBackupType.pipe(
2383
+ T.Body("backup-type"),
2384
+ ),
2385
+ ns: S.optional(S.String),
2386
+ }).pipe(
2387
+ T.Http({
2388
+ method: "POST",
2389
+ uri: "/admin/datastore/{store}/upload-backup-log",
2390
+ code: 200,
2391
+ contentType: "form-urlencoded",
2392
+ }),
2393
+ ),
2394
+ ).annotate({
2395
+ identifier: "UploadAdminDatastoreBackupLogRequest",
2396
+ }) as any as S.Schema<UploadAdminDatastoreBackupLogRequest>;
2397
+
2398
+ export interface UploadAdminDatastoreBackupLogResponse {}
2399
+ export const UploadAdminDatastoreBackupLogResponse = /*@__PURE__*/ S.suspend(
2400
+ () => S.Struct({}),
2401
+ ).annotate({
2402
+ identifier: "UploadAdminDatastoreBackupLogResponse",
2403
+ }) as any as S.Schema<UploadAdminDatastoreBackupLogResponse>;
2404
+
2405
+ export type VerifyAdminDatastoreRequestBackupType = "vm" | "ct" | "host";
2406
+ export const VerifyAdminDatastoreRequestBackupType = S.String;
2407
+
2408
+ export interface VerifyAdminDatastoreRequest {
2409
+ store: string;
2410
+ /** Backup ID. */
2411
+ backup_id?: string;
2412
+ /** Backup time (Unix epoch.) */
2413
+ backup_time?: string;
2414
+ /** Backup types. */
2415
+ backup_type?: VerifyAdminDatastoreRequestBackupType | (string & {});
2416
+ /** Do not verify backups that are already verified if their verification is not outdated. */
2417
+ ignore_verified?: string;
2418
+ /** How many levels of namespaces should be operated on (0 == no recursion) */
2419
+ max_depth?: string;
2420
+ /** Namespace. */
2421
+ ns?: string;
2422
+ /** Days after that a verification becomes outdated. (0 is deprecated)' */
2423
+ outdated_after?: string;
2424
+ /** The number of threads to use for reading chunks in verify job. */
2425
+ read_threads?: string;
2426
+ /** The number of threads to use for verifying chunks in verify job. */
2427
+ verify_threads?: string;
2428
+ }
2429
+ export const VerifyAdminDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
2430
+ S.Struct({
2431
+ store: S.String.pipe(T.Label()),
2432
+ backup_id: S.optional(S.String.pipe(T.Body("backup-id"))),
2433
+ backup_time: S.optional(S.String.pipe(T.Body("backup-time"))),
2434
+ backup_type: S.optional(
2435
+ VerifyAdminDatastoreRequestBackupType.pipe(T.Body("backup-type")),
2436
+ ),
2437
+ ignore_verified: S.optional(S.String.pipe(T.Body("ignore-verified"))),
2438
+ max_depth: S.optional(S.String.pipe(T.Body("max-depth"))),
2439
+ ns: S.optional(S.String),
2440
+ outdated_after: S.optional(S.String.pipe(T.Body("outdated-after"))),
2441
+ read_threads: S.optional(S.String.pipe(T.Body("read-threads"))),
2442
+ verify_threads: S.optional(S.String.pipe(T.Body("verify-threads"))),
2443
+ }).pipe(
2444
+ T.Http({
2445
+ method: "POST",
2446
+ uri: "/admin/datastore/{store}/verify",
2447
+ code: 200,
2448
+ contentType: "form-urlencoded",
2449
+ }),
2450
+ ),
2451
+ ).annotate({
2452
+ identifier: "VerifyAdminDatastoreRequest",
2453
+ }) as any as S.Schema<VerifyAdminDatastoreRequest>;
2454
+
2455
+ export type VerifyAdminDatastoreResponse = string;
2456
+ export const VerifyAdminDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
2457
+ S.String.pipe(T.RawResponseRoot()),
2458
+ ).annotate({
2459
+ identifier: "VerifyAdminDatastoreResponse",
2460
+ }) as any as S.Schema<VerifyAdminDatastoreResponse>;
2461
+
2462
+ export interface VerifyRunAdminRequest {
2463
+ id: string;
2464
+ }
2465
+ export const VerifyRunAdminRequest = /*@__PURE__*/ S.suspend(() =>
2466
+ S.Struct({
2467
+ id: S.String.pipe(T.Label()),
2468
+ }).pipe(T.Http({ method: "POST", uri: "/admin/verify/{id}/run", code: 200 })),
2469
+ ).annotate({
2470
+ identifier: "VerifyRunAdminRequest",
2471
+ }) as any as S.Schema<VerifyRunAdminRequest>;
2472
+
2473
+ export interface VerifyRunAdminResponse {}
2474
+ export const VerifyRunAdminResponse = /*@__PURE__*/ S.suspend(() =>
2475
+ S.Struct({}),
2476
+ ).annotate({
2477
+ identifier: "VerifyRunAdminResponse",
2478
+ }) as any as S.Schema<VerifyRunAdminResponse>;
2479
+
2480
+ export type CreateAdminDatastoreChangeOwnerError = ProxmoxBackupOpError;
2481
+ /** Change owner of a backup group */
2482
+ export const createAdminDatastoreChangeOwner: API.OperationMethod<
2483
+ CreateAdminDatastoreChangeOwnerRequest,
2484
+ CreateAdminDatastoreChangeOwnerResponse,
2485
+ CreateAdminDatastoreChangeOwnerError,
2486
+ ProxmoxBackupOpContext
2487
+ > = /*@__PURE__*/ API.make(() => ({
2488
+ input: CreateAdminDatastoreChangeOwnerRequest,
2489
+ output: CreateAdminDatastoreChangeOwnerResponse,
2490
+ errors: [],
2491
+ protocol: ProxmoxBackupProtocol,
2492
+ retry: Retry.Retry,
2493
+ }));
2494
+
2495
+ export type CreateAdminDatastoreGcError = ProxmoxBackupOpError;
2496
+ /** Start garbage collection. */
2497
+ export const createAdminDatastoreGc: API.OperationMethod<
2498
+ CreateAdminDatastoreGcRequest,
2499
+ CreateAdminDatastoreGcResponse,
2500
+ CreateAdminDatastoreGcError,
2501
+ ProxmoxBackupOpContext
2502
+ > = /*@__PURE__*/ API.make(() => ({
2503
+ input: CreateAdminDatastoreGcRequest,
2504
+ output: CreateAdminDatastoreGcResponse,
2505
+ errors: [],
2506
+ protocol: ProxmoxBackupProtocol,
2507
+ retry: Retry.Retry,
2508
+ }));
2509
+
2510
+ export type CreateAdminDatastoreMountError = ProxmoxBackupOpError;
2511
+ /** Mount removable datastore. */
2512
+ export const createAdminDatastoreMount: API.OperationMethod<
2513
+ CreateAdminDatastoreMountRequest,
2514
+ CreateAdminDatastoreMountResponse,
2515
+ CreateAdminDatastoreMountError,
2516
+ ProxmoxBackupOpContext
2517
+ > = /*@__PURE__*/ API.make(() => ({
2518
+ input: CreateAdminDatastoreMountRequest,
2519
+ output: CreateAdminDatastoreMountResponse,
2520
+ errors: [],
2521
+ protocol: ProxmoxBackupProtocol,
2522
+ retry: Retry.Retry,
2523
+ }));
2524
+
2525
+ export type CreateAdminDatastoreNamespaceError = ProxmoxBackupOpError;
2526
+ /** Create a new datastore namespace. */
2527
+ export const createAdminDatastoreNamespace: API.OperationMethod<
2528
+ CreateAdminDatastoreNamespaceRequest,
2529
+ CreateAdminDatastoreNamespaceResponse,
2530
+ CreateAdminDatastoreNamespaceError,
2531
+ ProxmoxBackupOpContext
2532
+ > = /*@__PURE__*/ API.make(() => ({
2533
+ input: CreateAdminDatastoreNamespaceRequest,
2534
+ output: CreateAdminDatastoreNamespaceResponse,
2535
+ errors: [],
2536
+ protocol: ProxmoxBackupProtocol,
2537
+ retry: Retry.Retry,
2538
+ }));
2539
+
2540
+ export type CreateAdminDatastorePruneError = ProxmoxBackupOpError;
2541
+ /** Prune a group on the datastore */
2542
+ export const createAdminDatastorePrune: API.OperationMethod<
2543
+ CreateAdminDatastorePruneRequest,
2544
+ CreateAdminDatastorePruneResponse,
2545
+ CreateAdminDatastorePruneError,
2546
+ ProxmoxBackupOpContext
2547
+ > = /*@__PURE__*/ API.make(() => ({
2548
+ input: CreateAdminDatastorePruneRequest,
2549
+ output: CreateAdminDatastorePruneResponse,
2550
+ errors: [],
2551
+ protocol: ProxmoxBackupProtocol,
2552
+ retry: Retry.Retry,
2553
+ }));
2554
+
2555
+ export type CreateAdminDatastorePruneDatastoreError = ProxmoxBackupOpError;
2556
+ /** Prune the datastore */
2557
+ export const createAdminDatastorePruneDatastore: API.OperationMethod<
2558
+ CreateAdminDatastorePruneDatastoreRequest,
2559
+ CreateAdminDatastorePruneDatastoreResponse,
2560
+ CreateAdminDatastorePruneDatastoreError,
2561
+ ProxmoxBackupOpContext
2562
+ > = /*@__PURE__*/ API.make(() => ({
2563
+ input: CreateAdminDatastorePruneDatastoreRequest,
2564
+ output: CreateAdminDatastorePruneDatastoreResponse,
2565
+ errors: [],
2566
+ protocol: ProxmoxBackupProtocol,
2567
+ retry: Retry.Retry,
2568
+ }));
2569
+
2570
+ export type CreateAdminDatastoreUnmountError = ProxmoxBackupOpError;
2571
+ /** Unmount a removable device that is associated with the datastore */
2572
+ export const createAdminDatastoreUnmount: API.OperationMethod<
2573
+ CreateAdminDatastoreUnmountRequest,
2574
+ CreateAdminDatastoreUnmountResponse,
2575
+ CreateAdminDatastoreUnmountError,
2576
+ ProxmoxBackupOpContext
2577
+ > = /*@__PURE__*/ API.make(() => ({
2578
+ input: CreateAdminDatastoreUnmountRequest,
2579
+ output: CreateAdminDatastoreUnmountResponse,
2580
+ errors: [],
2581
+ protocol: ProxmoxBackupProtocol,
2582
+ retry: Retry.Retry,
2583
+ }));
2584
+
2585
+ export type DeleteAdminDatastoreGroupsError = ProxmoxBackupOpError;
2586
+ /** Delete backup group including all snapshots. */
2587
+ export const deleteAdminDatastoreGroups: API.OperationMethod<
2588
+ DeleteAdminDatastoreGroupsRequest,
2589
+ DeleteAdminDatastoreGroupsResponse,
2590
+ DeleteAdminDatastoreGroupsError,
2591
+ ProxmoxBackupOpContext
2592
+ > = /*@__PURE__*/ API.make(() => ({
2593
+ input: DeleteAdminDatastoreGroupsRequest,
2594
+ output: DeleteAdminDatastoreGroupsResponse,
2595
+ errors: [],
2596
+ protocol: ProxmoxBackupProtocol,
2597
+ retry: Retry.Retry,
2598
+ }));
2599
+
2600
+ export type DeleteAdminDatastoreNamespaceError = ProxmoxBackupOpError;
2601
+ /** Delete a backup namespace including all snapshots. */
2602
+ export const deleteAdminDatastoreNamespace: API.OperationMethod<
2603
+ DeleteAdminDatastoreNamespaceRequest,
2604
+ DeleteAdminDatastoreNamespaceResponse,
2605
+ DeleteAdminDatastoreNamespaceError,
2606
+ ProxmoxBackupOpContext
2607
+ > = /*@__PURE__*/ API.make(() => ({
2608
+ input: DeleteAdminDatastoreNamespaceRequest,
2609
+ output: DeleteAdminDatastoreNamespaceResponse,
2610
+ errors: [],
2611
+ protocol: ProxmoxBackupProtocol,
2612
+ retry: Retry.Retry,
2613
+ }));
2614
+
2615
+ export type DeleteAdminDatastoreSnapshotsError = ProxmoxBackupOpError;
2616
+ /** Delete backup snapshot. */
2617
+ export const deleteAdminDatastoreSnapshots: API.OperationMethod<
2618
+ DeleteAdminDatastoreSnapshotsRequest,
2619
+ DeleteAdminDatastoreSnapshotsResponse,
2620
+ DeleteAdminDatastoreSnapshotsError,
2621
+ ProxmoxBackupOpContext
2622
+ > = /*@__PURE__*/ API.make(() => ({
2623
+ input: DeleteAdminDatastoreSnapshotsRequest,
2624
+ output: DeleteAdminDatastoreSnapshotsResponse,
2625
+ errors: [],
2626
+ protocol: ProxmoxBackupProtocol,
2627
+ retry: Retry.Retry,
2628
+ }));
2629
+
2630
+ export type GetAdminError = ProxmoxBackupOpError;
2631
+ /** Directory index. */
2632
+ export const getAdmin: API.OperationMethod<
2633
+ GetAdminRequest,
2634
+ GetAdminResponse,
2635
+ GetAdminError,
2636
+ ProxmoxBackupOpContext
2637
+ > = /*@__PURE__*/ API.make(() => ({
2638
+ input: GetAdminRequest,
2639
+ output: GetAdminResponse,
2640
+ errors: [],
2641
+ protocol: ProxmoxBackupProtocol,
2642
+ retry: Retry.Retry,
2643
+ }));
2644
+
2645
+ export type GetAdminDatastoreError = ProxmoxBackupOpError;
2646
+ /** Directory index. */
2647
+ export const getAdminDatastore: API.OperationMethod<
2648
+ GetAdminDatastoreRequest,
2649
+ GetAdminDatastoreResponse,
2650
+ GetAdminDatastoreError,
2651
+ ProxmoxBackupOpContext
2652
+ > = /*@__PURE__*/ API.make(() => ({
2653
+ input: GetAdminDatastoreRequest,
2654
+ output: GetAdminDatastoreResponse,
2655
+ errors: [],
2656
+ protocol: ProxmoxBackupProtocol,
2657
+ retry: Retry.Retry,
2658
+ }));
2659
+
2660
+ export type GetAdminDatastoreActiveOperationsError = ProxmoxBackupOpError;
2661
+ /** Read datastore stats */
2662
+ export const getAdminDatastoreActiveOperations: API.OperationMethod<
2663
+ GetAdminDatastoreActiveOperationsRequest,
2664
+ GetAdminDatastoreActiveOperationsResponse,
2665
+ GetAdminDatastoreActiveOperationsError,
2666
+ ProxmoxBackupOpContext
2667
+ > = /*@__PURE__*/ API.make(() => ({
2668
+ input: GetAdminDatastoreActiveOperationsRequest,
2669
+ output: GetAdminDatastoreActiveOperationsResponse,
2670
+ errors: [],
2671
+ protocol: ProxmoxBackupProtocol,
2672
+ retry: Retry.Retry,
2673
+ }));
2674
+
2675
+ export type GetAdminDatastoreCatalogError = ProxmoxBackupOpError;
2676
+ /** Get the entries of the given path of the catalog */
2677
+ export const getAdminDatastoreCatalog: API.OperationMethod<
2678
+ GetAdminDatastoreCatalogRequest,
2679
+ GetAdminDatastoreCatalogResponse,
2680
+ GetAdminDatastoreCatalogError,
2681
+ ProxmoxBackupOpContext
2682
+ > = /*@__PURE__*/ API.make(() => ({
2683
+ input: GetAdminDatastoreCatalogRequest,
2684
+ output: GetAdminDatastoreCatalogResponse,
2685
+ errors: [],
2686
+ protocol: ProxmoxBackupProtocol,
2687
+ retry: Retry.Retry,
2688
+ }));
2689
+
2690
+ export type GetAdminDatastoreDownloadError = ProxmoxBackupOpError;
2691
+ /** Download single raw file from backup snapshot. */
2692
+ export const getAdminDatastoreDownload: API.OperationMethod<
2693
+ GetAdminDatastoreDownloadRequest,
2694
+ GetAdminDatastoreDownloadResponse,
2695
+ GetAdminDatastoreDownloadError,
2696
+ ProxmoxBackupOpContext
2697
+ > = /*@__PURE__*/ API.make(() => ({
2698
+ input: GetAdminDatastoreDownloadRequest,
2699
+ output: GetAdminDatastoreDownloadResponse,
2700
+ errors: [],
2701
+ protocol: ProxmoxBackupProtocol,
2702
+ retry: Retry.Retry,
2703
+ }));
2704
+
2705
+ export type GetAdminDatastoreDownloadDecodedError = ProxmoxBackupOpError;
2706
+ /** Download single decoded file from backup snapshot. Only works if it's not encrypted. */
2707
+ export const getAdminDatastoreDownloadDecoded: API.OperationMethod<
2708
+ GetAdminDatastoreDownloadDecodedRequest,
2709
+ GetAdminDatastoreDownloadDecodedResponse,
2710
+ GetAdminDatastoreDownloadDecodedError,
2711
+ ProxmoxBackupOpContext
2712
+ > = /*@__PURE__*/ API.make(() => ({
2713
+ input: GetAdminDatastoreDownloadDecodedRequest,
2714
+ output: GetAdminDatastoreDownloadDecodedResponse,
2715
+ errors: [],
2716
+ protocol: ProxmoxBackupProtocol,
2717
+ retry: Retry.Retry,
2718
+ }));
2719
+
2720
+ export type GetAdminDatastoreGcError = ProxmoxBackupOpError;
2721
+ /** Garbage collection status. */
2722
+ export const getAdminDatastoreGc: API.OperationMethod<
2723
+ GetAdminDatastoreGcRequest,
2724
+ GetAdminDatastoreGcResponse,
2725
+ GetAdminDatastoreGcError,
2726
+ ProxmoxBackupOpContext
2727
+ > = /*@__PURE__*/ API.make(() => ({
2728
+ input: GetAdminDatastoreGcRequest,
2729
+ output: GetAdminDatastoreGcResponse,
2730
+ errors: [],
2731
+ protocol: ProxmoxBackupProtocol,
2732
+ retry: Retry.Retry,
2733
+ }));
2734
+
2735
+ export type GetAdminDatastoreGroupNotesError = ProxmoxBackupOpError;
2736
+ /** Get "notes" for a backup group */
2737
+ export const getAdminDatastoreGroupNotes: API.OperationMethod<
2738
+ GetAdminDatastoreGroupNotesRequest,
2739
+ GetAdminDatastoreGroupNotesResponse,
2740
+ GetAdminDatastoreGroupNotesError,
2741
+ ProxmoxBackupOpContext
2742
+ > = /*@__PURE__*/ API.make(() => ({
2743
+ input: GetAdminDatastoreGroupNotesRequest,
2744
+ output: GetAdminDatastoreGroupNotesResponse,
2745
+ errors: [],
2746
+ protocol: ProxmoxBackupProtocol,
2747
+ retry: Retry.Retry,
2748
+ }));
2749
+
2750
+ export type GetAdminDatastoreNotesError = ProxmoxBackupOpError;
2751
+ /** Get "notes" for a specific backup */
2752
+ export const getAdminDatastoreNotes: API.OperationMethod<
2753
+ GetAdminDatastoreNotesRequest,
2754
+ GetAdminDatastoreNotesResponse,
2755
+ GetAdminDatastoreNotesError,
2756
+ ProxmoxBackupOpContext
2757
+ > = /*@__PURE__*/ API.make(() => ({
2758
+ input: GetAdminDatastoreNotesRequest,
2759
+ output: GetAdminDatastoreNotesResponse,
2760
+ errors: [],
2761
+ protocol: ProxmoxBackupProtocol,
2762
+ retry: Retry.Retry,
2763
+ }));
2764
+
2765
+ export type GetAdminDatastoreProtectedError = ProxmoxBackupOpError;
2766
+ /** Query protection for a specific backup */
2767
+ export const getAdminDatastoreProtected: API.OperationMethod<
2768
+ GetAdminDatastoreProtectedRequest,
2769
+ GetAdminDatastoreProtectedResponse,
2770
+ GetAdminDatastoreProtectedError,
2771
+ ProxmoxBackupOpContext
2772
+ > = /*@__PURE__*/ API.make(() => ({
2773
+ input: GetAdminDatastoreProtectedRequest,
2774
+ output: GetAdminDatastoreProtectedResponse,
2775
+ errors: [],
2776
+ protocol: ProxmoxBackupProtocol,
2777
+ retry: Retry.Retry,
2778
+ }));
2779
+
2780
+ export type GetAdminDatastorePxarFileDownloadError = ProxmoxBackupOpError;
2781
+ /** Download single file from pxar file of a backup snapshot. Only works if it's not encrypted. */
2782
+ export const getAdminDatastorePxarFileDownload: API.OperationMethod<
2783
+ GetAdminDatastorePxarFileDownloadRequest,
2784
+ GetAdminDatastorePxarFileDownloadResponse,
2785
+ GetAdminDatastorePxarFileDownloadError,
2786
+ ProxmoxBackupOpContext
2787
+ > = /*@__PURE__*/ API.make(() => ({
2788
+ input: GetAdminDatastorePxarFileDownloadRequest,
2789
+ output: GetAdminDatastorePxarFileDownloadResponse,
2790
+ errors: [],
2791
+ protocol: ProxmoxBackupProtocol,
2792
+ retry: Retry.Retry,
2793
+ }));
2794
+
2795
+ export type GetAdminDatastoreRrdError = ProxmoxBackupOpError;
2796
+ /** Read datastore stats */
2797
+ export const getAdminDatastoreRrd: API.OperationMethod<
2798
+ GetAdminDatastoreRrdRequest,
2799
+ GetAdminDatastoreRrdResponse,
2800
+ GetAdminDatastoreRrdError,
2801
+ ProxmoxBackupOpContext
2802
+ > = /*@__PURE__*/ API.make(() => ({
2803
+ input: GetAdminDatastoreRrdRequest,
2804
+ output: GetAdminDatastoreRrdResponse,
2805
+ errors: [],
2806
+ protocol: ProxmoxBackupProtocol,
2807
+ retry: Retry.Retry,
2808
+ }));
2809
+
2810
+ export type GetAdminDatastoreStatusError = ProxmoxBackupOpError;
2811
+ /** Get datastore status. */
2812
+ export const getAdminDatastoreStatus: API.OperationMethod<
2813
+ GetAdminDatastoreStatusRequest,
2814
+ GetAdminDatastoreStatusResponse,
2815
+ GetAdminDatastoreStatusError,
2816
+ ProxmoxBackupOpContext
2817
+ > = /*@__PURE__*/ API.make(() => ({
2818
+ input: GetAdminDatastoreStatusRequest,
2819
+ output: GetAdminDatastoreStatusResponse,
2820
+ errors: [],
2821
+ protocol: ProxmoxBackupProtocol,
2822
+ retry: Retry.Retry,
2823
+ }));
2824
+
2825
+ export type GetAdminGcError = ProxmoxBackupOpError;
2826
+ /** List all GC jobs (max one per datastore) */
2827
+ export const getAdminGc: API.OperationMethod<
2828
+ GetAdminGcRequest,
2829
+ GetAdminGcResponse,
2830
+ GetAdminGcError,
2831
+ ProxmoxBackupOpContext
2832
+ > = /*@__PURE__*/ API.make(() => ({
2833
+ input: GetAdminGcRequest,
2834
+ output: GetAdminGcResponse,
2835
+ errors: [],
2836
+ protocol: ProxmoxBackupProtocol,
2837
+ retry: Retry.Retry,
2838
+ }));
2839
+
2840
+ export type GetAdminPruneError = ProxmoxBackupOpError;
2841
+ /** Directory index. */
2842
+ export const getAdminPrune: API.OperationMethod<
2843
+ GetAdminPruneRequest,
2844
+ GetAdminPruneResponse,
2845
+ GetAdminPruneError,
2846
+ ProxmoxBackupOpContext
2847
+ > = /*@__PURE__*/ API.make(() => ({
2848
+ input: GetAdminPruneRequest,
2849
+ output: GetAdminPruneResponse,
2850
+ errors: [],
2851
+ protocol: ProxmoxBackupProtocol,
2852
+ retry: Retry.Retry,
2853
+ }));
2854
+
2855
+ export type GetAdminS3Error = ProxmoxBackupOpError;
2856
+ /** Directory index. */
2857
+ export const getAdminS3: API.OperationMethod<
2858
+ GetAdminS3Request,
2859
+ GetAdminS3Response,
2860
+ GetAdminS3Error,
2861
+ ProxmoxBackupOpContext
2862
+ > = /*@__PURE__*/ API.make(() => ({
2863
+ input: GetAdminS3Request,
2864
+ output: GetAdminS3Response,
2865
+ errors: [],
2866
+ protocol: ProxmoxBackupProtocol,
2867
+ retry: Retry.Retry,
2868
+ }));
2869
+
2870
+ export type GetAdminSyncError = ProxmoxBackupOpError;
2871
+ /** Directory index. */
2872
+ export const getAdminSync: API.OperationMethod<
2873
+ GetAdminSyncRequest,
2874
+ GetAdminSyncResponse,
2875
+ GetAdminSyncError,
2876
+ ProxmoxBackupOpContext
2877
+ > = /*@__PURE__*/ API.make(() => ({
2878
+ input: GetAdminSyncRequest,
2879
+ output: GetAdminSyncResponse,
2880
+ errors: [],
2881
+ protocol: ProxmoxBackupProtocol,
2882
+ retry: Retry.Retry,
2883
+ }));
2884
+
2885
+ export type GetAdminVerifyError = ProxmoxBackupOpError;
2886
+ /** Directory index. */
2887
+ export const getAdminVerify: API.OperationMethod<
2888
+ GetAdminVerifyRequest,
2889
+ GetAdminVerifyResponse,
2890
+ GetAdminVerifyError,
2891
+ ProxmoxBackupOpContext
2892
+ > = /*@__PURE__*/ API.make(() => ({
2893
+ input: GetAdminVerifyRequest,
2894
+ output: GetAdminVerifyResponse,
2895
+ errors: [],
2896
+ protocol: ProxmoxBackupProtocol,
2897
+ retry: Retry.Retry,
2898
+ }));
2899
+
2900
+ export type ListAdminDatastoreError = ProxmoxBackupOpError;
2901
+ /** Datastore list */
2902
+ export const listAdminDatastore: API.OperationMethod<
2903
+ ListAdminDatastoreRequest,
2904
+ ListAdminDatastoreResponse,
2905
+ ListAdminDatastoreError,
2906
+ ProxmoxBackupOpContext
2907
+ > = /*@__PURE__*/ API.make(() => ({
2908
+ input: ListAdminDatastoreRequest,
2909
+ output: ListAdminDatastoreResponse,
2910
+ errors: [],
2911
+ protocol: ProxmoxBackupProtocol,
2912
+ retry: Retry.Retry,
2913
+ }));
2914
+
2915
+ export type ListAdminDatastoreFilesError = ProxmoxBackupOpError;
2916
+ /** List snapshot files. */
2917
+ export const listAdminDatastoreFiles: API.OperationMethod<
2918
+ ListAdminDatastoreFilesRequest,
2919
+ ListAdminDatastoreFilesResponse,
2920
+ ListAdminDatastoreFilesError,
2921
+ ProxmoxBackupOpContext
2922
+ > = /*@__PURE__*/ API.make(() => ({
2923
+ input: ListAdminDatastoreFilesRequest,
2924
+ output: ListAdminDatastoreFilesResponse,
2925
+ errors: [],
2926
+ protocol: ProxmoxBackupProtocol,
2927
+ retry: Retry.Retry,
2928
+ }));
2929
+
2930
+ export type ListAdminDatastoreGroupsError = ProxmoxBackupOpError;
2931
+ /** List backup groups. */
2932
+ export const listAdminDatastoreGroups: API.OperationMethod<
2933
+ ListAdminDatastoreGroupsRequest,
2934
+ ListAdminDatastoreGroupsResponse,
2935
+ ListAdminDatastoreGroupsError,
2936
+ ProxmoxBackupOpContext
2937
+ > = /*@__PURE__*/ API.make(() => ({
2938
+ input: ListAdminDatastoreGroupsRequest,
2939
+ output: ListAdminDatastoreGroupsResponse,
2940
+ errors: [],
2941
+ protocol: ProxmoxBackupProtocol,
2942
+ retry: Retry.Retry,
2943
+ }));
2944
+
2945
+ export type ListAdminDatastoreNamespaceError = ProxmoxBackupOpError;
2946
+ /** List the namespaces of a datastore. */
2947
+ export const listAdminDatastoreNamespace: API.OperationMethod<
2948
+ ListAdminDatastoreNamespaceRequest,
2949
+ ListAdminDatastoreNamespaceResponse,
2950
+ ListAdminDatastoreNamespaceError,
2951
+ ProxmoxBackupOpContext
2952
+ > = /*@__PURE__*/ API.make(() => ({
2953
+ input: ListAdminDatastoreNamespaceRequest,
2954
+ output: ListAdminDatastoreNamespaceResponse,
2955
+ errors: [],
2956
+ protocol: ProxmoxBackupProtocol,
2957
+ retry: Retry.Retry,
2958
+ }));
2959
+
2960
+ export type ListAdminDatastoreSnapshotsError = ProxmoxBackupOpError;
2961
+ /** List backup snapshots. */
2962
+ export const listAdminDatastoreSnapshots: API.OperationMethod<
2963
+ ListAdminDatastoreSnapshotsRequest,
2964
+ ListAdminDatastoreSnapshotsResponse,
2965
+ ListAdminDatastoreSnapshotsError,
2966
+ ProxmoxBackupOpContext
2967
+ > = /*@__PURE__*/ API.make(() => ({
2968
+ input: ListAdminDatastoreSnapshotsRequest,
2969
+ output: ListAdminDatastoreSnapshotsResponse,
2970
+ errors: [],
2971
+ protocol: ProxmoxBackupProtocol,
2972
+ retry: Retry.Retry,
2973
+ }));
2974
+
2975
+ export type ListAdminGcError = ProxmoxBackupOpError;
2976
+ /** List all GC jobs (max one per datastore) */
2977
+ export const listAdminGc: API.OperationMethod<
2978
+ ListAdminGcRequest,
2979
+ ListAdminGcResponse,
2980
+ ListAdminGcError,
2981
+ ProxmoxBackupOpContext
2982
+ > = /*@__PURE__*/ API.make(() => ({
2983
+ input: ListAdminGcRequest,
2984
+ output: ListAdminGcResponse,
2985
+ errors: [],
2986
+ protocol: ProxmoxBackupProtocol,
2987
+ retry: Retry.Retry,
2988
+ }));
2989
+
2990
+ export type ListAdminMetricsError = ProxmoxBackupOpError;
2991
+ /** List configured metric servers. */
2992
+ export const listAdminMetrics: API.OperationMethod<
2993
+ ListAdminMetricsRequest,
2994
+ ListAdminMetricsResponse,
2995
+ ListAdminMetricsError,
2996
+ ProxmoxBackupOpContext
2997
+ > = /*@__PURE__*/ API.make(() => ({
2998
+ input: ListAdminMetricsRequest,
2999
+ output: ListAdminMetricsResponse,
3000
+ errors: [],
3001
+ protocol: ProxmoxBackupProtocol,
3002
+ retry: Retry.Retry,
3003
+ }));
3004
+
3005
+ export type ListAdminPruneError = ProxmoxBackupOpError;
3006
+ /** List all prune jobs */
3007
+ export const listAdminPrune: API.OperationMethod<
3008
+ ListAdminPruneRequest,
3009
+ ListAdminPruneResponse,
3010
+ ListAdminPruneError,
3011
+ ProxmoxBackupOpContext
3012
+ > = /*@__PURE__*/ API.make(() => ({
3013
+ input: ListAdminPruneRequest,
3014
+ output: ListAdminPruneResponse,
3015
+ errors: [],
3016
+ protocol: ProxmoxBackupProtocol,
3017
+ retry: Retry.Retry,
3018
+ }));
3019
+
3020
+ export type ListAdminSyncError = ProxmoxBackupOpError;
3021
+ /** List all configured sync jobs */
3022
+ export const listAdminSync: API.OperationMethod<
3023
+ ListAdminSyncRequest,
3024
+ ListAdminSyncResponse,
3025
+ ListAdminSyncError,
3026
+ ProxmoxBackupOpContext
3027
+ > = /*@__PURE__*/ API.make(() => ({
3028
+ input: ListAdminSyncRequest,
3029
+ output: ListAdminSyncResponse,
3030
+ errors: [],
3031
+ protocol: ProxmoxBackupProtocol,
3032
+ retry: Retry.Retry,
3033
+ }));
3034
+
3035
+ export type ListAdminTrafficControlError = ProxmoxBackupOpError;
3036
+ /** Show current traffic for all traffic control rules. */
3037
+ export const listAdminTrafficControl: API.OperationMethod<
3038
+ ListAdminTrafficControlRequest,
3039
+ ListAdminTrafficControlResponse,
3040
+ ListAdminTrafficControlError,
3041
+ ProxmoxBackupOpContext
3042
+ > = /*@__PURE__*/ API.make(() => ({
3043
+ input: ListAdminTrafficControlRequest,
3044
+ output: ListAdminTrafficControlResponse,
3045
+ errors: [],
3046
+ protocol: ProxmoxBackupProtocol,
3047
+ retry: Retry.Retry,
3048
+ }));
3049
+
3050
+ export type ListAdminVerifyError = ProxmoxBackupOpError;
3051
+ /** List all verification jobs */
3052
+ export const listAdminVerify: API.OperationMethod<
3053
+ ListAdminVerifyRequest,
3054
+ ListAdminVerifyResponse,
3055
+ ListAdminVerifyError,
3056
+ ProxmoxBackupOpContext
3057
+ > = /*@__PURE__*/ API.make(() => ({
3058
+ input: ListAdminVerifyRequest,
3059
+ output: ListAdminVerifyResponse,
3060
+ errors: [],
3061
+ protocol: ProxmoxBackupProtocol,
3062
+ retry: Retry.Retry,
3063
+ }));
3064
+
3065
+ export type MoveAdminDatastoreGroupError = ProxmoxBackupOpError;
3066
+ /** Move a backup group to a different namespace within the same datastore. */
3067
+ export const moveAdminDatastoreGroup: API.OperationMethod<
3068
+ MoveAdminDatastoreGroupRequest,
3069
+ MoveAdminDatastoreGroupResponse,
3070
+ MoveAdminDatastoreGroupError,
3071
+ ProxmoxBackupOpContext
3072
+ > = /*@__PURE__*/ API.make(() => ({
3073
+ input: MoveAdminDatastoreGroupRequest,
3074
+ output: MoveAdminDatastoreGroupResponse,
3075
+ errors: [],
3076
+ protocol: ProxmoxBackupProtocol,
3077
+ retry: Retry.Retry,
3078
+ }));
3079
+
3080
+ export type MoveAdminDatastoreNamespaceError = ProxmoxBackupOpError;
3081
+ /** Move a backup namespace (including all child namespaces and groups) to a new location. */
3082
+ export const moveAdminDatastoreNamespace: API.OperationMethod<
3083
+ MoveAdminDatastoreNamespaceRequest,
3084
+ MoveAdminDatastoreNamespaceResponse,
3085
+ MoveAdminDatastoreNamespaceError,
3086
+ ProxmoxBackupOpContext
3087
+ > = /*@__PURE__*/ API.make(() => ({
3088
+ input: MoveAdminDatastoreNamespaceRequest,
3089
+ output: MoveAdminDatastoreNamespaceResponse,
3090
+ errors: [],
3091
+ protocol: ProxmoxBackupProtocol,
3092
+ retry: Retry.Retry,
3093
+ }));
3094
+
3095
+ export type PutAdminDatastoreGroupNotesError = ProxmoxBackupOpError;
3096
+ /** Set "notes" for a backup group */
3097
+ export const putAdminDatastoreGroupNotes: API.OperationMethod<
3098
+ PutAdminDatastoreGroupNotesRequest,
3099
+ PutAdminDatastoreGroupNotesResponse,
3100
+ PutAdminDatastoreGroupNotesError,
3101
+ ProxmoxBackupOpContext
3102
+ > = /*@__PURE__*/ API.make(() => ({
3103
+ input: PutAdminDatastoreGroupNotesRequest,
3104
+ output: PutAdminDatastoreGroupNotesResponse,
3105
+ errors: [],
3106
+ protocol: ProxmoxBackupProtocol,
3107
+ retry: Retry.Retry,
3108
+ }));
3109
+
3110
+ export type PutAdminDatastoreNotesError = ProxmoxBackupOpError;
3111
+ /** Set "notes" for a specific backup */
3112
+ export const putAdminDatastoreNotes: API.OperationMethod<
3113
+ PutAdminDatastoreNotesRequest,
3114
+ PutAdminDatastoreNotesResponse,
3115
+ PutAdminDatastoreNotesError,
3116
+ ProxmoxBackupOpContext
3117
+ > = /*@__PURE__*/ API.make(() => ({
3118
+ input: PutAdminDatastoreNotesRequest,
3119
+ output: PutAdminDatastoreNotesResponse,
3120
+ errors: [],
3121
+ protocol: ProxmoxBackupProtocol,
3122
+ retry: Retry.Retry,
3123
+ }));
3124
+
3125
+ export type PutAdminDatastoreProtectedError = ProxmoxBackupOpError;
3126
+ /** En- or disable protection for a specific backup */
3127
+ export const putAdminDatastoreProtected: API.OperationMethod<
3128
+ PutAdminDatastoreProtectedRequest,
3129
+ PutAdminDatastoreProtectedResponse,
3130
+ PutAdminDatastoreProtectedError,
3131
+ ProxmoxBackupOpContext
3132
+ > = /*@__PURE__*/ API.make(() => ({
3133
+ input: PutAdminDatastoreProtectedRequest,
3134
+ output: PutAdminDatastoreProtectedResponse,
3135
+ errors: [],
3136
+ protocol: ProxmoxBackupProtocol,
3137
+ retry: Retry.Retry,
3138
+ }));
3139
+
3140
+ export type PutAdminDatastoreS3RefreshError = ProxmoxBackupOpError;
3141
+ /** Refresh datastore contents from S3 to local cache store. */
3142
+ export const putAdminDatastoreS3Refresh: API.OperationMethod<
3143
+ PutAdminDatastoreS3RefreshRequest,
3144
+ PutAdminDatastoreS3RefreshResponse,
3145
+ PutAdminDatastoreS3RefreshError,
3146
+ ProxmoxBackupOpContext
3147
+ > = /*@__PURE__*/ API.make(() => ({
3148
+ input: PutAdminDatastoreS3RefreshRequest,
3149
+ output: PutAdminDatastoreS3RefreshResponse,
3150
+ errors: [],
3151
+ protocol: ProxmoxBackupProtocol,
3152
+ retry: Retry.Retry,
3153
+ }));
3154
+
3155
+ export type PutAdminS3CheckError = ProxmoxBackupOpError;
3156
+ /** Perform basic sanity check for given s3 client configuration */
3157
+ export const putAdminS3Check: API.OperationMethod<
3158
+ PutAdminS3CheckRequest,
3159
+ PutAdminS3CheckResponse,
3160
+ PutAdminS3CheckError,
3161
+ ProxmoxBackupOpContext
3162
+ > = /*@__PURE__*/ API.make(() => ({
3163
+ input: PutAdminS3CheckRequest,
3164
+ output: PutAdminS3CheckResponse,
3165
+ errors: [],
3166
+ protocol: ProxmoxBackupProtocol,
3167
+ retry: Retry.Retry,
3168
+ }));
3169
+
3170
+ export type PutAdminS3ResetCountersError = ProxmoxBackupOpError;
3171
+ /** Reset the S3 request counters for matching endpoint, bucket or datastore (if prefix is given). */
3172
+ export const putAdminS3ResetCounters: API.OperationMethod<
3173
+ PutAdminS3ResetCountersRequest,
3174
+ PutAdminS3ResetCountersResponse,
3175
+ PutAdminS3ResetCountersError,
3176
+ ProxmoxBackupOpContext
3177
+ > = /*@__PURE__*/ API.make(() => ({
3178
+ input: PutAdminS3ResetCountersRequest,
3179
+ output: PutAdminS3ResetCountersResponse,
3180
+ errors: [],
3181
+ protocol: ProxmoxBackupProtocol,
3182
+ retry: Retry.Retry,
3183
+ }));
3184
+
3185
+ export type RunAdminPruneError = ProxmoxBackupOpError;
3186
+ /** Runs a prune job manually. */
3187
+ export const runAdminPrune: API.OperationMethod<
3188
+ RunAdminPruneRequest,
3189
+ RunAdminPruneResponse,
3190
+ RunAdminPruneError,
3191
+ ProxmoxBackupOpContext
3192
+ > = /*@__PURE__*/ API.make(() => ({
3193
+ input: RunAdminPruneRequest,
3194
+ output: RunAdminPruneResponse,
3195
+ errors: [],
3196
+ protocol: ProxmoxBackupProtocol,
3197
+ retry: Retry.Retry,
3198
+ }));
3199
+
3200
+ export type RunAdminSyncError = ProxmoxBackupOpError;
3201
+ /** Runs the sync jobs manually. */
3202
+ export const runAdminSync: API.OperationMethod<
3203
+ RunAdminSyncRequest,
3204
+ RunAdminSyncResponse,
3205
+ RunAdminSyncError,
3206
+ ProxmoxBackupOpContext
3207
+ > = /*@__PURE__*/ API.make(() => ({
3208
+ input: RunAdminSyncRequest,
3209
+ output: RunAdminSyncResponse,
3210
+ errors: [],
3211
+ protocol: ProxmoxBackupProtocol,
3212
+ retry: Retry.Retry,
3213
+ }));
3214
+
3215
+ export type UploadAdminDatastoreBackupLogError = ProxmoxBackupOpError;
3216
+ /** Upload the client backup log file into a backup snapshot ('client.log.blob'). */
3217
+ export const uploadAdminDatastoreBackupLog: API.OperationMethod<
3218
+ UploadAdminDatastoreBackupLogRequest,
3219
+ UploadAdminDatastoreBackupLogResponse,
3220
+ UploadAdminDatastoreBackupLogError,
3221
+ ProxmoxBackupOpContext
3222
+ > = /*@__PURE__*/ API.make(() => ({
3223
+ input: UploadAdminDatastoreBackupLogRequest,
3224
+ output: UploadAdminDatastoreBackupLogResponse,
3225
+ errors: [],
3226
+ protocol: ProxmoxBackupProtocol,
3227
+ retry: Retry.Retry,
3228
+ }));
3229
+
3230
+ export type VerifyAdminDatastoreError = ProxmoxBackupOpError;
3231
+ /** Verify backups. This function can verify a single backup snapshot, all backups from a backup group, or all backups in the datastore. */
3232
+ export const verifyAdminDatastore: API.OperationMethod<
3233
+ VerifyAdminDatastoreRequest,
3234
+ VerifyAdminDatastoreResponse,
3235
+ VerifyAdminDatastoreError,
3236
+ ProxmoxBackupOpContext
3237
+ > = /*@__PURE__*/ API.make(() => ({
3238
+ input: VerifyAdminDatastoreRequest,
3239
+ output: VerifyAdminDatastoreResponse,
3240
+ errors: [],
3241
+ protocol: ProxmoxBackupProtocol,
3242
+ retry: Retry.Retry,
3243
+ }));
3244
+
3245
+ export type VerifyRunAdminError = ProxmoxBackupOpError;
3246
+ /** Runs a verification job manually. */
3247
+ export const verifyRunAdmin: API.OperationMethod<
3248
+ VerifyRunAdminRequest,
3249
+ VerifyRunAdminResponse,
3250
+ VerifyRunAdminError,
3251
+ ProxmoxBackupOpContext
3252
+ > = /*@__PURE__*/ API.make(() => ({
3253
+ input: VerifyRunAdminRequest,
3254
+ output: VerifyRunAdminResponse,
3255
+ errors: [],
3256
+ protocol: ProxmoxBackupProtocol,
3257
+ retry: Retry.Retry,
3258
+ }));