virtualizorjs 1.0.5 → 2.0.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/README.md CHANGED
@@ -1,126 +1,211 @@
1
- # VirtualizorJS
2
-
3
- Since there is no SDK's for Node.js for the Virtualizor API, I decided to create one, and one that is actually easy to use and useful with **0 Dependencies** keeping it `Lightweight` and `Fast`.
4
-
5
- VirtualizorJS simplifies the management of Virtualizor servers with a streamlined and developer-friendly API for Node.js. Perform actions such as creating, starting, stopping, and restarting virtual servers effortlessly. Ideal for seamless integration into your Node.js applications, providing a powerful toolkit for Virtualizor server management.
6
-
7
-
8
- [![GitHub stars](https://img.shields.io/github/stars/kkMihai/virtualizorjs.svg?style=social&label=Star&maxAge=2592000)](https://github.com/kkMihai/virtualizorjs)
9
-
10
- [![Npm package version](https://badgen.net/npm/v/virtualizorjs)](https://npmjs.com/package/virtualizorjs) [![Maintenance](https://img.shields.io/badge/Maintained%3F-Yes-green.svg)](https://github.com/kkMihai/virtualizorjs/graphs/commit-activity)
11
-
12
- ## Important
13
- - This library is still in development and there is more to add but for now it's stable and ready to use, all the methods have been tested and work as expected.
14
-
15
- ## Table of Contents
16
- - [Installation](#installation)
17
- - [Usage](#usage)
18
- - [Examples](#examples)
19
- - [API Documentation](#api-documentation)
20
- - [Roadmap](#roadmap)
21
- - [Contributing](#contributing)
22
- - [License](#license)
23
-
24
- ## Installation
25
-
26
- ```bash
27
- npm i virtualizorjs@latest
28
- ```
29
-
30
- ## Usage
31
-
32
- ```javascript
33
-
34
- const VirtualizorClient = require('virtualizorjs');
35
-
36
- // Initialize VirtualizorClient
37
- const { ListVPS } = new VirtualizorClient({
38
- host: '< IP or Hostname of Virtualizor Server >',
39
- port: 4085, // or 4085 for SSL
40
- adminapikey: "< Your API KEY >",
41
- adminapipass: "< Your API PASS >",
42
- });
43
-
44
- // Using const client = new VirtualizorClient({ ... }) is also valid, but you will have to use client.ListVPS() instead of ListVPS() which just looks ugly.
45
- // Example: Get a list of all VPSs
46
- ListVPS().then((data) => {
47
- console.log(data);
48
- }).catch((err) => {
49
- console.log(err);
50
- });
51
- ```
52
-
53
- # Event Handling Usage
54
-
55
- VirtualizorJS uses the [EventEmitter](https://nodejs.org/api/events.html) class to handle events. You can attach **`Event Listeners`** to different events provided by the VirtualizorClient.
56
-
57
- - Note: To use **`Event Listeners`** we need to define the **`VirtualizorClient`** as a `const` named preferably **`Client`** and then use **`Client.on()`** to attach **`Event Listeners`** to different events.
58
-
59
- ```javascript
60
- const VirtualizorClient = require('virtualizorjs');
61
-
62
- const Client = new VirtualizorClient({
63
- host: '< IP or Hostname of Virtualizor Server >',
64
- port: 4085,
65
- adminapikey: "< Your API KEY >",
66
- adminapipass: "< Your API PASS >",
67
- });
68
-
69
- //Get the methods you need
70
- const { StartVPS } = Client;
71
-
72
- // - Event Types - :
73
- // 1. vpsCreated
74
- // 2. vpsStarted
75
- // 3. vpsStopped
76
- // 4. vpsRestarted
77
-
78
- // Event listener for when a virtual server is created
79
- Client.on('vpsCreated', (response) => {
80
- console.log(`Virtual Server Created! Details:`, response);
81
- });
82
-
83
- // Event listener for when a virtual server is started
84
- Client.on('vpsStarted', (response) => {
85
- console.log(`Virtual Server Started! Details:`, response);
86
- });
87
-
88
- // Event listener for when a virtual server is stopped
89
- Client.on('vpsStopped', (response) => {
90
- console.log(`Virtual Server Stopped! Details:`, response);
91
- });
92
-
93
- // Event listener for when a virtual server is restarted
94
- Client.on('vpsRestarted', (response) => {
95
- console.log(`Virtual Server Restarted! Details:`, response);
96
- });
97
- ```
98
-
99
- ## What's the point of using **`Event Listeners`**?
100
- - **`Event Listeners`** are useful when you want to perform an action when a certain event occurs without modifying the source code of the **`VirtualizorJS`** library to avoid breaking changes.
101
- - For example, you can use **`Event Listeners`** to send a notification to your `users` when a event is triggered.
102
- - You can also use **`Event Listeners`** to perform an action when a event is triggered.
103
-
104
- ## Examples
105
-
106
- - [Get VPS's List](/examples/listvps.js)
107
- - [Create VPS](/examples/createvps.js)
108
- - [Using Event Handling](/examples/eventhandling.js)
109
-
110
-
111
- ## Documentation
112
-
113
- - Check the [Wiki](https://github.com/kkMihai/virtualizorjs/wiki) for detailed documentation.
114
- - If you use frameworks such as [Next.js](https://nextjs.org/) make sure to use it only Server-Side for security reasons.
115
-
116
- ## Roadmap
117
- - [ ] Add Proxmox KVM Support
118
- - [ ] Add Virtualization Types enums
119
-
120
- ## Contributing
121
-
122
- - Feel free to contribute by opening issues or submitting pull requests. See [CONTRIBUTING](/CONTRIBUTING.md) for details.
123
-
124
- ## License
125
-
126
- - This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.
1
+ # VirtualizorJS
2
+
3
+ [![npm version](https://img.shields.io/npm/v/virtualizorjs)](https://www.npmjs.com/package/virtualizorjs)
4
+ [![CI Status](https://img.shields.io/github/actions/workflow/status/kkMihai/virtualizorjs/ci.yml?branch=main)](https://github.com/kkMihai/virtualizorjs/actions)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ A **TypeScript-first** SDK for the [Virtualizor](https://www.virtualizor.com/) server management API. Manage VPS instances, users, and plans with a clean, namespaced interface and zero production dependencies.
8
+
9
+ ## Features
10
+
11
+ - ✅ **TypeScript-first**: Full type safety and IDE autocomplete
12
+ - ✅ **Namespaced API**: Logical organization (`client.vps.*`, `client.users.*`, `client.plans.*`, `client.tasks.*`)
13
+ - **SHA-256 Authentication**: Secure API communication
14
+ - ✅ **Zero Production Dependencies**: Lightweight and fast
15
+ - **Async Task Polling**: Built-in support for long-running operations
16
+ - ✅ **Self-signed SSL Ready**: Pre-configured for Virtualizor's typical certificate setup
17
+ - ✅ **Dual Output**: Outputs both CommonJS and ESM modules
18
+
19
+ ## Installation
20
+
21
+ **npm:**
22
+ ```bash
23
+ npm install virtualizorjs
24
+ ```
25
+
26
+ **bun:**
27
+ ```bash
28
+ bun add virtualizorjs
29
+ ```
30
+
31
+ ## Quick Start
32
+
33
+ ### Create a Client
34
+
35
+ ```typescript
36
+ import { createVirtualizorClient } from 'virtualizorjs';
37
+
38
+ const client = createVirtualizorClient({
39
+ host: 'virtualizor.example.com',
40
+ apiKey: 'your-api-key',
41
+ apiPass: 'your-api-pass',
42
+ // Optional: port (default 4085), https (default true),
43
+ // rejectUnauthorized (default false), timeout (default 30000ms)
44
+ });
45
+ ```
46
+
47
+ ### List All VPS
48
+
49
+ ```typescript
50
+ const vpsList = await client.vps.list();
51
+
52
+ for (const [vpsId, vps] of Object.entries(vpsList)) {
53
+ console.log(`${vpsId}: ${vps.hostname} (${vps.status})`);
54
+ }
55
+ ```
56
+
57
+ ### Start a VPS and Wait for Completion
58
+
59
+ Many Virtualizor operations are asynchronous. Use `client.tasks.wait()` to poll for completion:
60
+
61
+ ```typescript
62
+ const result = await client.vps.start('123');
63
+ const task = await client.tasks.wait(result.taskid!);
64
+
65
+ console.log(`VPS started! Task status: ${task.status}`);
66
+ ```
67
+
68
+ ## Error Handling
69
+
70
+ All SDK errors are instances of `VirtualizorApiError`. Catch and inspect them:
71
+
72
+ ```typescript
73
+ import { VirtualizorApiError } from 'virtualizorjs';
74
+
75
+ try {
76
+ await client.vps.start('invalid-id');
77
+ } catch (err) {
78
+ if (err instanceof VirtualizorApiError) {
79
+ console.error(`API Error [${err.code}]: ${err.message}`);
80
+ } else {
81
+ console.error('Unexpected error:', err);
82
+ }
83
+ }
84
+ ```
85
+
86
+ ## API Reference
87
+
88
+ ### VPS Management
89
+
90
+ | Method | Parameters | Returns | Notes |
91
+ |--------|-----------|---------|-------|
92
+ | `list()` | — | `Record<string, VPS>` | List all VPS |
93
+ | `get(vpsId)` | `vpsId: string` | `VPS` | Get a single VPS |
94
+ | `create(params)` | `CreateVPSParams` | `AsyncTaskResult` | Async |
95
+ | `delete(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
96
+ | `start(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
97
+ | `stop(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
98
+ | `restart(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
99
+ | `poweroff(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
100
+ | `suspend(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
101
+ | `unsuspend(vpsId)` | `vpsId: string` | `AsyncTaskResult` | Async |
102
+ | `rebuild(vpsId, params)` | `vpsId: string, RebuildVPSParams` | `AsyncTaskResult` | Async |
103
+ | `clone(vpsId, params)` | `vpsId: string, CloneVPSParams` | `AsyncTaskResult` | Async |
104
+ | `migrate(vpsId, params)` | `vpsId: string, MigrateVPSParams` | `AsyncTaskResult` | Async |
105
+ | `status(vpsId)` | `vpsId: string` | `unknown` | Current status snapshot |
106
+ | `vnc(vpsId)` | `vpsId: string` | `VNCInfo` | Get VNC connection details |
107
+ | `stats(vpsId)` | `vpsId: string` | `VPSStatsResponse` | Get resource usage statistics |
108
+
109
+ ### User Management
110
+
111
+ | Method | Parameters | Returns | Notes |
112
+ |--------|-----------|---------|-------|
113
+ | `list()` | | `Record<string, User>` | List all users |
114
+ | `create(params)` | `CreateUserParams` | `AsyncTaskResult` | Async |
115
+ | `delete(uid)` | `uid: string` | `AsyncTaskResult` | Async |
116
+ | `suspend(uid)` | `uid: string` | `AsyncTaskResult` | Async |
117
+ | `unsuspend(uid)` | `uid: string` | `AsyncTaskResult` | Async |
118
+
119
+ ### Plan Management
120
+
121
+ | Method | Parameters | Returns | Notes |
122
+ |--------|-----------|---------|-------|
123
+ | `list()` | — | `Record<string, Plan>` | List all plans |
124
+ | `create(params)` | `CreatePlanParams` | `AsyncTaskResult` | Async |
125
+ | `delete(planId)` | `planId: string` | `AsyncTaskResult` | Async |
126
+
127
+ ### Task Polling
128
+
129
+ | Method | Parameters | Returns | Notes |
130
+ |--------|-----------|---------|-------|
131
+ | `get(taskId)` | `taskId: string` | `Task \| undefined` | Get task status once |
132
+ | `wait(taskId, options?)` | `taskId: string, { pollIntervalMs?, timeoutMs? }?` | `Promise<Task>` | Poll until complete or timeout |
133
+
134
+ ## Task Polling Pattern
135
+
136
+ Many API calls return `AsyncTaskResult` with a `taskid` field. Poll for completion:
137
+
138
+ ```typescript
139
+ // Example: Create a VPS and wait for it to be ready
140
+ const createResult = await client.vps.create({
141
+ hostname: 'my-vps.example.com',
142
+ // ... other params
143
+ });
144
+
145
+ const completedTask = await client.tasks.wait(createResult.taskid!, {
146
+ pollIntervalMs: 5000, // Check every 5 seconds (default: 2000ms)
147
+ timeoutMs: 300000, // Give up after 5 minutes (default: 120000ms)
148
+ });
149
+
150
+ if (completedTask.status === '1' || completedTask.status === 'done') {
151
+ console.log('VPS creation completed successfully');
152
+ }
153
+ ```
154
+
155
+ ## Configuration
156
+
157
+ When creating a client, the following options are available:
158
+
159
+ ```typescript
160
+ interface VirtualizorConfig {
161
+ host: string; // Virtualizor server hostname or IP
162
+ apiKey: string; // API key from Virtualizor panel
163
+ apiPass: string; // API password from Virtualizor panel
164
+ port?: number; // Server port (default: 4085)
165
+ https?: boolean; // Use HTTPS (default: true)
166
+ rejectUnauthorized?: boolean; // Reject self-signed certs (default: false)
167
+ timeout?: number; // Request timeout in ms (default: 30000)
168
+ }
169
+ ```
170
+
171
+ ### Self-Signed SSL Certificates
172
+
173
+ Virtualizor typically uses self-signed SSL certificates. The SDK handles this by default with `rejectUnauthorized: false`. If you need to enforce certificate validation, set `rejectUnauthorized: true` and ensure your Virtualizor instance has a valid certificate.
174
+
175
+ ## TypeScript Types
176
+
177
+ All resources are fully typed. Import types as needed:
178
+
179
+ ```typescript
180
+ import type {
181
+ VPS,
182
+ CreateVPSParams,
183
+ RebuildVPSParams,
184
+ CloneVPSParams,
185
+ MigrateVPSParams,
186
+ User,
187
+ CreateUserParams,
188
+ Plan,
189
+ CreatePlanParams,
190
+ Task,
191
+ AsyncTaskResult,
192
+ } from 'virtualizorjs';
193
+ ```
194
+
195
+ ## Contributing
196
+
197
+ We welcome contributions! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to help.
198
+
199
+ ## Security
200
+
201
+ Please report security vulnerabilities to the maintainers privately. See [SECURITY.md](./SECURITY.md) for more details.
202
+
203
+ ## License
204
+
205
+ This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
206
+
207
+ ---
208
+
209
+ **Author**: [kkMihai](https://github.com/kkMihai)
210
+ **Package**: [npm/virtualizorjs](https://www.npmjs.com/package/virtualizorjs)
211
+ **Repository**: [github.com/kkMihai/virtualizorjs](https://github.com/kkMihai/virtualizorjs)
@@ -0,0 +1,245 @@
1
+ interface VirtualizorError {
2
+ code: number;
3
+ msg: string;
4
+ }
5
+ interface VirtualizorResponse {
6
+ title?: string;
7
+ timenow?: number;
8
+ time_taken?: string;
9
+ error?: VirtualizorError[];
10
+ }
11
+ interface AsyncTaskResult extends VirtualizorResponse {
12
+ done?: 1;
13
+ taskid?: string;
14
+ }
15
+ type VirtType = 'kvm' | 'xen' | 'openvz' | 'lxc' | 'proxmox' | 'virtuozzo' | 'xcp' | 'hyperv';
16
+
17
+ interface VirtualizorConfig {
18
+ host: string;
19
+ apiKey: string;
20
+ apiPass?: string;
21
+ port?: number;
22
+ https?: boolean;
23
+ rejectUnauthorized?: boolean;
24
+ timeout?: number;
25
+ }
26
+ interface ResolvedConfig {
27
+ host: string;
28
+ apiKey: string;
29
+ apiPass: string;
30
+ port: number;
31
+ https: boolean;
32
+ rejectUnauthorized: boolean;
33
+ timeout: number;
34
+ }
35
+
36
+ declare class VirtualizorApiError extends Error {
37
+ readonly code: number;
38
+ constructor(message: string, code: number);
39
+ }
40
+ type Params = Record<string, string | number | undefined>;
41
+ declare class HttpClient {
42
+ private readonly config;
43
+ constructor(config: ResolvedConfig);
44
+ parseResponse<T extends VirtualizorResponse>(data: T): T;
45
+ request<T extends VirtualizorResponse>(act: string, queryParams?: Params, bodyParams?: Params): Promise<T>;
46
+ private rawRequest;
47
+ }
48
+
49
+ interface Plan {
50
+ pid: string;
51
+ plan_name: string;
52
+ disk: string;
53
+ ram: string;
54
+ bandwidth: string;
55
+ cpu: string;
56
+ virt?: string;
57
+ }
58
+ interface CreatePlanParams {
59
+ plan_name: string;
60
+ disk: number;
61
+ ram: number;
62
+ bandwidth: number;
63
+ cpu: number;
64
+ virt?: string;
65
+ }
66
+
67
+ declare class PlansResource {
68
+ private readonly http;
69
+ constructor(http: HttpClient);
70
+ list(): Promise<Record<string, Plan>>;
71
+ create(params: CreatePlanParams): Promise<AsyncTaskResult>;
72
+ delete(planId: string): Promise<AsyncTaskResult>;
73
+ }
74
+
75
+ interface Task {
76
+ id: string;
77
+ action: string;
78
+ status: string;
79
+ vpsid?: string;
80
+ data?: unknown;
81
+ }
82
+
83
+ declare class TasksResource {
84
+ private readonly http;
85
+ constructor(http: HttpClient);
86
+ get(taskId: string): Promise<Task | undefined>;
87
+ wait(taskId: string, options?: {
88
+ pollIntervalMs?: number;
89
+ timeoutMs?: number;
90
+ }): Promise<Task>;
91
+ }
92
+
93
+ interface User {
94
+ uid: string;
95
+ email: string;
96
+ fname?: string;
97
+ lname?: string;
98
+ status: string;
99
+ type: string;
100
+ }
101
+ interface CreateUserParams {
102
+ email: string;
103
+ password: string;
104
+ fname?: string;
105
+ lname?: string;
106
+ acttype?: number;
107
+ }
108
+
109
+ declare class UsersResource {
110
+ private readonly http;
111
+ constructor(http: HttpClient);
112
+ list(): Promise<Record<string, User>>;
113
+ create(params: CreateUserParams): Promise<AsyncTaskResult>;
114
+ delete(uid: string): Promise<AsyncTaskResult>;
115
+ suspend(uid: string): Promise<AsyncTaskResult>;
116
+ unsuspend(uid: string): Promise<AsyncTaskResult>;
117
+ }
118
+
119
+ interface VPS {
120
+ vpsid: string;
121
+ hostname: string;
122
+ status: string;
123
+ ram: string;
124
+ hdd: string;
125
+ bandwidth: string;
126
+ os_name: string;
127
+ ip: string;
128
+ serid?: string;
129
+ virt?: VirtType;
130
+ cpu?: string;
131
+ }
132
+ interface ListVPSParams {
133
+ user?: string | number;
134
+ vpsid?: string | number;
135
+ vpsname?: string;
136
+ vpsip?: string;
137
+ vpshostname?: string;
138
+ vsstatus?: string;
139
+ vstype?: VirtType;
140
+ serid?: number;
141
+ plid?: number;
142
+ bpid?: number;
143
+ }
144
+ interface CreateVPSParams {
145
+ hostname: string;
146
+ rootpass: string;
147
+ osid: number;
148
+ plid?: number;
149
+ user_email?: string;
150
+ ips?: number;
151
+ ips_int?: number;
152
+ space?: number;
153
+ ram?: number;
154
+ burst?: number;
155
+ bandwidth?: number;
156
+ cpu?: number;
157
+ cpu_percent?: number;
158
+ virt?: VirtType;
159
+ serid?: number;
160
+ node_select?: 0 | 1;
161
+ recipe?: number;
162
+ sshkey?: string;
163
+ nopassword?: 0 | 1;
164
+ }
165
+ interface RebuildVPSParams {
166
+ /** OS template ID to rebuild with */
167
+ osid: number;
168
+ /** New root password for the VPS */
169
+ newpass: string;
170
+ /** Must be set to 1 to confirm the rebuild */
171
+ conf: 1;
172
+ /** Format primary disk (0 = no, 1 = yes); defaults to 0 */
173
+ format_primary?: 0 | 1;
174
+ /** Send rebuild notification email (0 = no, 1 = yes) */
175
+ eu_send_rebuild_email?: 0 | 1;
176
+ /** Recipe ID to apply post-rebuild */
177
+ recipe?: number;
178
+ /** SSH key to inject */
179
+ sshkey?: string;
180
+ }
181
+ interface CloneVPSParams {
182
+ /** Hostname for the new cloned VPS */
183
+ hostname: string;
184
+ /** Root password for the new cloned VPS */
185
+ rootpass: string;
186
+ /** Source server ID (server where the VPS lives) */
187
+ from_server: number;
188
+ /** Destination server ID (server to clone into) */
189
+ to_server: number;
190
+ }
191
+ interface MigrateVPSParams {
192
+ /** Destination server ID */
193
+ serid: number;
194
+ /** Source server IP address */
195
+ from_ip: string;
196
+ /** Source server API/root password */
197
+ from_pass: string;
198
+ /** 0 = ignore VDF conflicts, 1 = error on conflict */
199
+ ignore_if_vdfconflict?: 0 | 1;
200
+ /** 0 = use gzip compression, 1 = disable gzip */
201
+ disable_gzip?: 0 | 1;
202
+ /** 0 = offline migration, 1 = live migration */
203
+ online?: 0 | 1;
204
+ }
205
+ interface VPSStatsResponse extends VirtualizorResponse {
206
+ vs_stats?: unknown;
207
+ vs_bandwidth?: unknown;
208
+ time_taken?: string;
209
+ }
210
+ interface VNCInfo extends VirtualizorResponse {
211
+ novnc?: string;
212
+ [key: string]: unknown;
213
+ }
214
+
215
+ declare class VpsResource {
216
+ private readonly http;
217
+ constructor(http: HttpClient);
218
+ list(filters?: ListVPSParams): Promise<Record<string, VPS>>;
219
+ get(vpsId: string): Promise<VPS>;
220
+ create(params: CreateVPSParams): Promise<AsyncTaskResult>;
221
+ delete(vpsId: string): Promise<AsyncTaskResult>;
222
+ start(vpsId: string): Promise<AsyncTaskResult>;
223
+ stop(vpsId: string): Promise<AsyncTaskResult>;
224
+ restart(vpsId: string): Promise<AsyncTaskResult>;
225
+ poweroff(vpsId: string): Promise<AsyncTaskResult>;
226
+ suspend(vpsId: string): Promise<AsyncTaskResult>;
227
+ unsuspend(vpsId: string): Promise<AsyncTaskResult>;
228
+ rebuild(vpsId: string, params: RebuildVPSParams): Promise<AsyncTaskResult>;
229
+ clone(vpsId: string, params: CloneVPSParams): Promise<AsyncTaskResult>;
230
+ migrate(vpsId: string, params: MigrateVPSParams): Promise<AsyncTaskResult>;
231
+ status(vpsId: string): Promise<unknown>;
232
+ vnc(vpsId: string): Promise<VNCInfo>;
233
+ stats(vpsId: string): Promise<VPSStatsResponse>;
234
+ }
235
+
236
+ declare class VirtualizorClient {
237
+ readonly vps: VpsResource;
238
+ readonly users: UsersResource;
239
+ readonly plans: PlansResource;
240
+ readonly tasks: TasksResource;
241
+ constructor(config: VirtualizorConfig);
242
+ }
243
+ declare function createVirtualizorClient(config: VirtualizorConfig): VirtualizorClient;
244
+
245
+ export { type AsyncTaskResult, type CloneVPSParams, type CreatePlanParams, type CreateUserParams, type CreateVPSParams, type ListVPSParams, type MigrateVPSParams, type Plan, type RebuildVPSParams, type Task, type User, type VPS, type VirtType, VirtualizorApiError, VirtualizorClient, type VirtualizorConfig, createVirtualizorClient };