cyberdesk 2.1.8 → 2.1.10

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.
@@ -517,6 +517,10 @@ export type RunCreate = {
517
517
  * Persist outputs under this alias for $ref in this session
518
518
  */
519
519
  session_alias?: string | null;
520
+ /**
521
+ * Release the session after this run completes successfully
522
+ */
523
+ release_session_after?: boolean | null;
520
524
  };
521
525
  /**
522
526
  * Run response schema
@@ -546,6 +550,7 @@ export type RunResponse = {
546
550
  } | null;
547
551
  session_id?: string | null;
548
552
  session_alias?: string | null;
553
+ release_session_after?: boolean | null;
549
554
  created_at: string;
550
555
  };
551
556
  export type RunStatus = 'scheduling' | 'running' | 'success' | 'cancelled' | 'error';
package/dist/index.d.ts CHANGED
@@ -436,6 +436,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
436
436
  * @param params.status - Filter by run status (scheduling, running, success, cancelled, error)
437
437
  * @param params.workflow_id - Filter by workflow ID
438
438
  * @param params.machine_id - Filter by machine ID
439
+ * @param params.session_id - Filter by session ID
439
440
  * @returns Paginated list of runs
440
441
  */
441
442
  list: (params?: {
@@ -444,6 +445,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
444
445
  status?: RunStatus;
445
446
  workflow_id?: string;
446
447
  machine_id?: string;
448
+ session_id?: string;
447
449
  created_at_from?: string | Date;
448
450
  created_at_to?: string | Date;
449
451
  }) => Promise<({
@@ -465,8 +467,11 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
465
467
  * @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
466
468
  * @param data.input_values - Optional input values for workflow variables
467
469
  * @param data.file_inputs - Optional files to upload to the machine
468
- * @param data.start_session - Optional: start a new machine session for this run
470
+ * @param data.sensitive_input_values - Optional sensitive inputs (stored securely, not in DB)
469
471
  * @param data.session_id - Optional: join an existing session; ignores machine_id/pool_ids
472
+ * @param data.start_session - Optional: start a new machine session for this run
473
+ * @param data.session_alias - Optional: persist outputs under this alias for refs in this session
474
+ * @param data.release_session_after - Optional: release the session when this run completes (success, error, or cancel)
470
475
  * @returns Created run details
471
476
  *
472
477
  * @example
@@ -509,8 +514,9 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
509
514
  * @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
510
515
  * @param data.input_values - Optional input values for workflow variables
511
516
  * @param data.file_inputs - Optional files to upload to the machine
512
- * @param data.start_session - Optional: start a new session for all created runs
517
+ * @param data.sensitive_input_values - Optional sensitive inputs (stored securely, not in DB)
513
518
  * @param data.session_id - Optional: join an existing session for all runs
519
+ * @param data.start_session - Optional: start a new session for all created runs
514
520
  * @returns Details about created runs and any failures
515
521
  *
516
522
  * @example
@@ -549,7 +555,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
549
555
  *
550
556
  * @param data - WorkflowChainCreate with steps (session_alias, inputs),
551
557
  * optional shared inputs/sensitive/file inputs, and either
552
- * session_id to join or machine_id/pool_id to start a session.
558
+ * session_id to join or machine_id/pool_ids to start a session.
553
559
  * @returns WorkflowChainResponse containing session_id and run_ids
554
560
  */
555
561
  chain: (data: WorkflowChainCreate) => Promise<({
package/dist/index.js CHANGED
@@ -426,16 +426,18 @@ function createCyberdeskClient(apiKey, baseUrl) {
426
426
  * @param params.status - Filter by run status (scheduling, running, success, cancelled, error)
427
427
  * @param params.workflow_id - Filter by workflow ID
428
428
  * @param params.machine_id - Filter by machine ID
429
+ * @param params.session_id - Filter by session ID
429
430
  * @returns Paginated list of runs
430
431
  */
431
432
  list: (params) => __awaiter(this, void 0, void 0, function* () {
432
- var _a, _b, _c;
433
+ var _a, _b, _c, _d;
433
434
  const query = {
434
435
  skip: params === null || params === void 0 ? void 0 : params.skip,
435
436
  limit: params === null || params === void 0 ? void 0 : params.limit,
436
437
  status: (_a = params === null || params === void 0 ? void 0 : params.status) !== null && _a !== void 0 ? _a : undefined,
437
438
  workflow_id: (_b = params === null || params === void 0 ? void 0 : params.workflow_id) !== null && _b !== void 0 ? _b : undefined,
438
439
  machine_id: (_c = params === null || params === void 0 ? void 0 : params.machine_id) !== null && _c !== void 0 ? _c : undefined,
440
+ session_id: (_d = params === null || params === void 0 ? void 0 : params.session_id) !== null && _d !== void 0 ? _d : undefined,
439
441
  created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
440
442
  created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
441
443
  };
@@ -450,8 +452,11 @@ function createCyberdeskClient(apiKey, baseUrl) {
450
452
  * @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
451
453
  * @param data.input_values - Optional input values for workflow variables
452
454
  * @param data.file_inputs - Optional files to upload to the machine
453
- * @param data.start_session - Optional: start a new machine session for this run
455
+ * @param data.sensitive_input_values - Optional sensitive inputs (stored securely, not in DB)
454
456
  * @param data.session_id - Optional: join an existing session; ignores machine_id/pool_ids
457
+ * @param data.start_session - Optional: start a new machine session for this run
458
+ * @param data.session_alias - Optional: persist outputs under this alias for refs in this session
459
+ * @param data.release_session_after - Optional: release the session when this run completes (success, error, or cancel)
455
460
  * @returns Created run details
456
461
  *
457
462
  * @example
@@ -490,8 +495,9 @@ function createCyberdeskClient(apiKey, baseUrl) {
490
495
  * @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
491
496
  * @param data.input_values - Optional input values for workflow variables
492
497
  * @param data.file_inputs - Optional files to upload to the machine
493
- * @param data.start_session - Optional: start a new session for all created runs
498
+ * @param data.sensitive_input_values - Optional sensitive inputs (stored securely, not in DB)
494
499
  * @param data.session_id - Optional: join an existing session for all runs
500
+ * @param data.start_session - Optional: start a new session for all created runs
495
501
  * @returns Details about created runs and any failures
496
502
  *
497
503
  * @example
@@ -526,7 +532,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
526
532
  *
527
533
  * @param data - WorkflowChainCreate with steps (session_alias, inputs),
528
534
  * optional shared inputs/sensitive/file inputs, and either
529
- * session_id to join or machine_id/pool_id to start a session.
535
+ * session_id to join or machine_id/pool_ids to start a session.
530
536
  * @returns WorkflowChainResponse containing session_id and run_ids
531
537
  */
532
538
  chain: (data) => __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",