@vates/types 1.17.0 → 1.18.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.
@@ -1,8 +1,7 @@
1
1
  import { WrappedXenApiRecord, XenApiHost, XenApiNetworkWrapped, XenApiRecord, XenApiSr, XenApiTask, XenApiVbd, XenApiVdi, XenApiVm, XenApiVmWrapped, XenApiVtpm } from '../xen-api.mjs';
2
- import type { OPAQUE_REF_NULL, VBD_MODE, VBD_TYPE } from '../common.mjs';
2
+ import type { OPAQUE_REF_NULL, SUPPORTED_VDI_FORMAT, VBD_MODE, VBD_TYPE } from '../common.mjs';
3
3
  import type { PassThrough, Readable } from 'node:stream';
4
- import type { XoGpuGroup, XoVgpuType, XoHost, XoNetwork, XoPif, XoSr, XoUser, XoVdi, XoVm, XoVmTemplate } from '../xo.mjs';
5
- import type { SUPPORTED_VDI_FORMAT } from '../common.mjs';
4
+ import type { XoGpuGroup, XoHost, XoNetwork, XoPif, XoSr, XoUser, XoVdi, XoVgpuType, XoVm, XoVmTemplate } from '../xo.mjs';
6
5
  export type XcpPatches = {
7
6
  changelog?: {
8
7
  author: string;
@@ -131,6 +130,9 @@ export interface Xapi {
131
130
  }, checkLimits?: boolean, creatorId?: XoUser['id'], opts?: {
132
131
  destroyAllVifs: boolean;
133
132
  }): Promise<XenApiVmWrapped>;
133
+ moveVdi(vdiId: XenApiVdi['$ref'] | XoVdi['id'], srId: XenApiSr['$ref'] | XoSr['id'], opts?: {
134
+ _failOnCbtError?: boolean;
135
+ }): Promise<XenApiVdi>;
134
136
  VBD_create(params: {
135
137
  bootable?: boolean;
136
138
  empty?: boolean;
@@ -145,6 +147,7 @@ export interface Xapi {
145
147
  VM: XenApiVm['$ref'];
146
148
  }): Promise<XenApiVbd['$ref']>;
147
149
  VBD_destroy(vbdRef: XenApiVbd['$ref']): Promise<void>;
150
+ VBD_unplug(vbdRef: XenApiVbd['$ref']): Promise<void>;
148
151
  VDI_destroy(vdiRef: XenApiVdi['$ref']): Promise<void>;
149
152
  VDI_destroyCloudInitConfig(vdiRef: XenApiVdi['$ref'], opts?: {
150
153
  timeLimit?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vates/types",
3
3
  "private": false,
4
- "version": "1.17.0",
4
+ "version": "1.18.0",
5
5
  "main": "./dist/index.mjs",
6
6
  "exports": {
7
7
  ".": {