cyberdesk 2.1.9 → 2.1.11
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/client/types.gen.d.ts +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
|
@@ -129,6 +129,7 @@ export type MachineResponse = {
|
|
|
129
129
|
status: MachineStatus;
|
|
130
130
|
is_available: boolean;
|
|
131
131
|
reserved_session_id?: string | null;
|
|
132
|
+
linked_keepalive_machine_id?: string | null;
|
|
132
133
|
created_at: string;
|
|
133
134
|
last_seen: string;
|
|
134
135
|
pools?: Array<PoolResponse> | null;
|
|
@@ -517,6 +518,10 @@ export type RunCreate = {
|
|
|
517
518
|
* Persist outputs under this alias for $ref in this session
|
|
518
519
|
*/
|
|
519
520
|
session_alias?: string | null;
|
|
521
|
+
/**
|
|
522
|
+
* Release the session after this run completes successfully
|
|
523
|
+
*/
|
|
524
|
+
release_session_after?: boolean | null;
|
|
520
525
|
};
|
|
521
526
|
/**
|
|
522
527
|
* Run response schema
|
|
@@ -546,6 +551,7 @@ export type RunResponse = {
|
|
|
546
551
|
} | null;
|
|
547
552
|
session_id?: string | null;
|
|
548
553
|
session_alias?: string | null;
|
|
554
|
+
release_session_after?: boolean | null;
|
|
549
555
|
created_at: string;
|
|
550
556
|
};
|
|
551
557
|
export type RunStatus = 'scheduling' | 'running' | 'success' | 'cancelled' | 'error';
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
106
106
|
*
|
|
107
107
|
* @param machineId - The ID of the machine to update
|
|
108
108
|
* @param data - Update data (name, status, availability, etc.)
|
|
109
|
+
*
|
|
110
|
+
* Note: linked_keepalive_machine_id is not writable; it is managed by
|
|
111
|
+
* Cyberdriver link events and will be set/cleared automatically by the
|
|
112
|
+
* platform.
|
|
109
113
|
* @returns Updated machine details
|
|
110
114
|
*/
|
|
111
115
|
update: (machineId: string, data: MachineUpdate) => Promise<{
|
|
@@ -471,6 +475,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
471
475
|
* @param data.session_id - Optional: join an existing session; ignores machine_id/pool_ids
|
|
472
476
|
* @param data.start_session - Optional: start a new machine session for this run
|
|
473
477
|
* @param data.session_alias - Optional: persist outputs under this alias for refs in this session
|
|
478
|
+
* @param data.release_session_after - Optional: release the session when this run completes (success, error, or cancel)
|
|
474
479
|
* @returns Created run details
|
|
475
480
|
*
|
|
476
481
|
* @example
|
package/dist/index.js
CHANGED
|
@@ -151,6 +151,10 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
151
151
|
*
|
|
152
152
|
* @param machineId - The ID of the machine to update
|
|
153
153
|
* @param data - Update data (name, status, availability, etc.)
|
|
154
|
+
*
|
|
155
|
+
* Note: linked_keepalive_machine_id is not writable; it is managed by
|
|
156
|
+
* Cyberdriver link events and will be set/cleared automatically by the
|
|
157
|
+
* platform.
|
|
154
158
|
* @returns Updated machine details
|
|
155
159
|
*/
|
|
156
160
|
update: (machineId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -456,6 +460,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
456
460
|
* @param data.session_id - Optional: join an existing session; ignores machine_id/pool_ids
|
|
457
461
|
* @param data.start_session - Optional: start a new machine session for this run
|
|
458
462
|
* @param data.session_alias - Optional: persist outputs under this alias for refs in this session
|
|
463
|
+
* @param data.release_session_after - Optional: release the session when this run completes (success, error, or cancel)
|
|
459
464
|
* @returns Created run details
|
|
460
465
|
*
|
|
461
466
|
* @example
|