@vates/types 1.14.0 → 1.16.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.
- package/dist/xo.d.mts +26 -9
- package/package.json +1 -1
package/dist/xo.d.mts
CHANGED
|
@@ -106,10 +106,19 @@ export type XoAlarm = Omit<XoMessage, '$object' | 'body'> & {
|
|
|
106
106
|
};
|
|
107
107
|
type BaseXoLog = {
|
|
108
108
|
id: Branded<'xo-log'>;
|
|
109
|
+
infos?: {
|
|
110
|
+
data: unknown;
|
|
111
|
+
message: string;
|
|
112
|
+
}[];
|
|
109
113
|
[key: string]: unknown;
|
|
110
114
|
};
|
|
111
115
|
export type XoBackupLog = BaseXoLog & {
|
|
112
|
-
|
|
116
|
+
status: 'success' | 'skipped' | 'interrupted' | 'failure' | 'pending';
|
|
117
|
+
message: 'backup';
|
|
118
|
+
start: number;
|
|
119
|
+
end?: number;
|
|
120
|
+
tasks?: XoTask[];
|
|
121
|
+
jobId?: AnyXoBackupJob['id'];
|
|
113
122
|
};
|
|
114
123
|
export type XoRestoreLog = BaseXoLog & {
|
|
115
124
|
message: 'restore';
|
|
@@ -133,6 +142,7 @@ export type XoVmBackupArchive = {
|
|
|
133
142
|
uuid: XoVm['uuid'];
|
|
134
143
|
name_description: string;
|
|
135
144
|
name_label: string;
|
|
145
|
+
tags: XoVm['tags'];
|
|
136
146
|
};
|
|
137
147
|
differencingVhds?: number;
|
|
138
148
|
dynamicVhds?: number;
|
|
@@ -197,7 +207,7 @@ export type XoHost = BaseXapiXo & {
|
|
|
197
207
|
CPUs: Record<string, string>;
|
|
198
208
|
address: string;
|
|
199
209
|
agentStartTime: null | number;
|
|
200
|
-
|
|
210
|
+
bios_strings: Record<string, string>;
|
|
201
211
|
build: string;
|
|
202
212
|
certificates?: {
|
|
203
213
|
fingerprint: string;
|
|
@@ -206,7 +216,7 @@ export type XoHost = BaseXapiXo & {
|
|
|
206
216
|
chipset_info: {
|
|
207
217
|
iommu?: boolean;
|
|
208
218
|
};
|
|
209
|
-
controlDomain?:
|
|
219
|
+
controlDomain?: XoVmController['id'];
|
|
210
220
|
cpus: {
|
|
211
221
|
cores?: number;
|
|
212
222
|
sockets?: number;
|
|
@@ -350,7 +360,7 @@ export type XoPif = BaseXapiXo & {
|
|
|
350
360
|
$network: XoNetwork['id'];
|
|
351
361
|
attached: boolean;
|
|
352
362
|
bondMaster?: XoPif['id'];
|
|
353
|
-
|
|
363
|
+
bondSlaves?: XoPif['id'][];
|
|
354
364
|
carrier: boolean;
|
|
355
365
|
device: string;
|
|
356
366
|
deviceName?: string;
|
|
@@ -382,7 +392,7 @@ export type XoPool = BaseXapiXo & {
|
|
|
382
392
|
};
|
|
383
393
|
crashDumpSr?: XoSr['id'];
|
|
384
394
|
current_operations: Record<string, POOL_ALLOWED_OPERATIONS>;
|
|
385
|
-
|
|
395
|
+
default_SR?: XoSr['id'];
|
|
386
396
|
HA_enabled: boolean;
|
|
387
397
|
haSrs: XoSr['id'][];
|
|
388
398
|
id: Branded<'pool'>;
|
|
@@ -396,7 +406,6 @@ export type XoPool = BaseXapiXo & {
|
|
|
396
406
|
tags: string[];
|
|
397
407
|
type: 'pool';
|
|
398
408
|
vtpmSupported: boolean;
|
|
399
|
-
xosanPackInstallationTime: number | null;
|
|
400
409
|
zstdSupported: boolean;
|
|
401
410
|
};
|
|
402
411
|
export type XoProxy = {
|
|
@@ -421,6 +430,7 @@ type BaseXoJob = {
|
|
|
421
430
|
type XoBackupJobGeneralSettings = {
|
|
422
431
|
backupReportTpl?: 'compactMjml' | 'mjml';
|
|
423
432
|
reportWhen?: 'always' | 'error' | 'failure' | 'never';
|
|
433
|
+
reportRecipients?: string[];
|
|
424
434
|
hideSuccessfulItems?: boolean;
|
|
425
435
|
[key: string]: unknown;
|
|
426
436
|
};
|
|
@@ -445,6 +455,8 @@ export type XoVmBackupJobGeneralSettings = XoBackupJobGeneralSettings & {
|
|
|
445
455
|
settings: Record<string, unknown>;
|
|
446
456
|
};
|
|
447
457
|
};
|
|
458
|
+
checkpointSnapshot?: boolean;
|
|
459
|
+
offlineSnapshot?: boolean;
|
|
448
460
|
maxExportRate?: number;
|
|
449
461
|
nbdConcurrency?: number;
|
|
450
462
|
nRetriesVmBackupFailures?: number;
|
|
@@ -453,7 +465,6 @@ export type XoVmBackupJobGeneralSettings = XoBackupJobGeneralSettings & {
|
|
|
453
465
|
mergeBackupsSynchronously?: boolean;
|
|
454
466
|
offlineBackup?: boolean;
|
|
455
467
|
timeout?: number;
|
|
456
|
-
[key: string]: unknown;
|
|
457
468
|
};
|
|
458
469
|
export type XoVmBackupJobScheduleSettings = {
|
|
459
470
|
exportRetention?: number;
|
|
@@ -499,11 +510,11 @@ export type XoMetadataBackupJob = BaseXoJob & {
|
|
|
499
510
|
export type XoMirrorBackupGeneralSettings = XoBackupJobGeneralSettings & {
|
|
500
511
|
concurrency?: number;
|
|
501
512
|
nRetriesVmBackupFailures?: number;
|
|
513
|
+
mergeBackupsSynchronously?: boolean;
|
|
502
514
|
timeout?: number;
|
|
503
515
|
maxExportRate?: number;
|
|
504
516
|
backupReportTpl?: 'compactMjml';
|
|
505
517
|
reportWhen: 'failure';
|
|
506
|
-
[key: string]: unknown;
|
|
507
518
|
};
|
|
508
519
|
export type XoMirrorBackupScheduleSettings = {
|
|
509
520
|
exportRetention?: number;
|
|
@@ -516,12 +527,15 @@ export type XoMirrorBackupJob = BaseXoJob & {
|
|
|
516
527
|
mode: 'full' | 'delta';
|
|
517
528
|
sourceRemote: XoBackupRepository['id'];
|
|
518
529
|
remotes: CMType.IdOr<XoBackupRepository['id']>;
|
|
530
|
+
proxy?: XoProxy['id'];
|
|
519
531
|
settings: {
|
|
520
532
|
'': XoMirrorBackupGeneralSettings;
|
|
521
533
|
[scheduleId: XoSchedule['id']]: XoMirrorBackupScheduleSettings | undefined;
|
|
522
534
|
};
|
|
523
535
|
};
|
|
524
|
-
export type XoJob = BaseXoJob & {
|
|
536
|
+
export type XoJob = BaseXoJob & {
|
|
537
|
+
type: 'call';
|
|
538
|
+
};
|
|
525
539
|
export type XoSchedule = {
|
|
526
540
|
cron: string;
|
|
527
541
|
enabled: boolean;
|
|
@@ -582,17 +596,20 @@ export type XoSm = BaseXapiXo & {
|
|
|
582
596
|
};
|
|
583
597
|
export type XoTask = {
|
|
584
598
|
abortionRequestedAt?: number;
|
|
599
|
+
data?: Record<string, string>;
|
|
585
600
|
end?: number;
|
|
586
601
|
id: Branded<'task'>;
|
|
587
602
|
infos?: {
|
|
588
603
|
data: unknown;
|
|
589
604
|
message: string;
|
|
590
605
|
}[];
|
|
606
|
+
progress?: number;
|
|
591
607
|
properties: {
|
|
592
608
|
method?: string;
|
|
593
609
|
name?: string;
|
|
594
610
|
objectId?: string;
|
|
595
611
|
params?: Record<string, unknown>;
|
|
612
|
+
progress?: number;
|
|
596
613
|
type?: string;
|
|
597
614
|
userId?: string;
|
|
598
615
|
[key: string]: unknown | undefined;
|