cyberdesk 2.2.46 → 2.2.51

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.
@@ -178,7 +178,7 @@ const mergeHeaders = (...headers) => {
178
178
  }
179
179
  }
180
180
  else if (value !== undefined) {
181
- // assume object headers are meant to be JSON stringified, i.e. their
181
+ // assume object headers are meant to be JSON stringified, i.e., their
182
182
  // content value in OpenAPI specification is 'application/json'
183
183
  mergedHeaders.set(key, typeof value === 'object' ? JSON.stringify(value) : value);
184
184
  }
@@ -61,7 +61,7 @@ export interface Config {
61
61
  requestValidator?: (data: unknown) => Promise<unknown>;
62
62
  /**
63
63
  * A function transforming response data before it's returned. This is useful
64
- * for post-processing data, e.g. converting ISO strings into Date objects.
64
+ * for post-processing data, e.g., converting ISO strings into Date objects.
65
65
  */
66
66
  responseTransformer?: (data: unknown) => Promise<unknown>;
67
67
  /**
@@ -81,7 +81,7 @@ function getValidRequestBody(options) {
81
81
  const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
82
82
  return hasSerializedBody ? options.serializedBody : null;
83
83
  }
84
- // not all clients implement a serializedBody property (i.e. client-axios)
84
+ // not all clients implement a serializedBody property (i.e., client-axios)
85
85
  return options.body !== '' ? options.body : null;
86
86
  }
87
87
  // plain/text body
@@ -34,7 +34,7 @@ export declare const databaseHealthCheckV1HealthDbGet: <ThrowOnError extends boo
34
34
  *
35
35
  * List all machines for the authenticated organization.
36
36
  *
37
- * Supports pagination and filtering by status.
37
+ * Supports pagination and filtering by status, name, or substring search.
38
38
  *
39
39
  * Use the `include` parameter to fetch related resources in the response.
40
40
  * Related resources are returned in the `included` array following the JSON:API pattern.
@@ -772,6 +772,10 @@ export declare const keyboardTypeV1ComputerMachineIdInputKeyboardTypePost: <Thro
772
772
  * Send key combination
773
773
  *
774
774
  * Send a key combination (e.g., 'ctrl+a', 'alt+tab').
775
+ *
776
+ * When `down` is omitted, the key is pressed and released normally. Pass `down=true` to
777
+ * press and hold the key (without releasing), and `down=false` to release a key that was
778
+ * previously held.
775
779
  */
776
780
  export declare const keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost: <ThrowOnError extends boolean = false>(options: Options<KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, ThrowOnError>) => import("./client").RequestResult<KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostErrors, ThrowOnError, "fields">;
777
781
  /**
@@ -29,7 +29,7 @@ exports.databaseHealthCheckV1HealthDbGet = databaseHealthCheckV1HealthDbGet;
29
29
  *
30
30
  * List all machines for the authenticated organization.
31
31
  *
32
- * Supports pagination and filtering by status.
32
+ * Supports pagination and filtering by status, name, or substring search.
33
33
  *
34
34
  * Use the `include` parameter to fetch related resources in the response.
35
35
  * Related resources are returned in the `included` array following the JSON:API pattern.
@@ -1111,6 +1111,10 @@ exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = keyboardTypeV1Com
1111
1111
  * Send key combination
1112
1112
  *
1113
1113
  * Send a key combination (e.g., 'ctrl+a', 'alt+tab').
1114
+ *
1115
+ * When `down` is omitted, the key is pressed and released normally. Pass `down=true` to
1116
+ * press and hold the key (without releasing), and `down=false` to release a key that was
1117
+ * previously held.
1114
1118
  */
1115
1119
  const keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = (options) => {
1116
1120
  var _a;
@@ -292,6 +292,12 @@ export type KeyboardKeyRequest = {
292
292
  * Text
293
293
  */
294
294
  text: string;
295
+ /**
296
+ * Down
297
+ *
298
+ * None = full press (down + up), True = press key down and hold, False = release a key previously held with down=True
299
+ */
300
+ down?: boolean | null;
295
301
  };
296
302
  /**
297
303
  * KeyboardTypeRequest
@@ -3732,6 +3738,12 @@ export type ListMachinesV1MachinesGetData = {
3732
3738
  * Search machines by id, name, or hostname (case-insensitive substring match)
3733
3739
  */
3734
3740
  search?: string | null;
3741
+ /**
3742
+ * Name
3743
+ *
3744
+ * Exact-match filter on the machine's name (case-sensitive). Use this to look up machines by the value passed to `cyberdriver --name`, e.g. when correlating VMs you spawned from the same image. Names are not unique; the response is a list.
3745
+ */
3746
+ name?: string | null;
3735
3747
  /**
3736
3748
  * Status
3737
3749
  *
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
121
121
  * @param params.skip - Number of items to skip (for pagination)
122
122
  * @param params.limit - Maximum number of items to return
123
123
  * @param params.search - Search machines by name or hostname (case-insensitive substring match)
124
+ * @param params.name - Exact-match machine name filter
124
125
  * @param params.status - Filter by machine status
125
126
  * @param params.include - Optional list of related resources to include. Available: ["pools"].
126
127
  * Related resources are returned in the `included` array following the JSON:API pattern.
@@ -132,6 +133,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
132
133
  skip?: number;
133
134
  limit?: number;
134
135
  search?: string;
136
+ name?: string;
135
137
  status?: MachineStatus;
136
138
  created_at_from?: string | Date;
137
139
  created_at_to?: string | Date;
package/dist/index.js CHANGED
@@ -285,6 +285,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
285
285
  * @param params.skip - Number of items to skip (for pagination)
286
286
  * @param params.limit - Maximum number of items to return
287
287
  * @param params.search - Search machines by name or hostname (case-insensitive substring match)
288
+ * @param params.name - Exact-match machine name filter
288
289
  * @param params.status - Filter by machine status
289
290
  * @param params.include - Optional list of related resources to include. Available: ["pools"].
290
291
  * Related resources are returned in the `included` array following the JSON:API pattern.
@@ -299,6 +300,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
299
300
  skip: params === null || params === void 0 ? void 0 : params.skip,
300
301
  limit: params === null || params === void 0 ? void 0 : params.limit,
301
302
  search: params === null || params === void 0 ? void 0 : params.search,
303
+ name: params === null || params === void 0 ? void 0 : params.name,
302
304
  created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
303
305
  created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
304
306
  include: (_a = params === null || params === void 0 ? void 0 : params.include) === null || _a === void 0 ? void 0 : _a.join(','),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.46",
3
+ "version": "2.2.51",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",