cyberdesk 2.1.19 → 2.1.21
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 +5 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.js +13 -2
- package/package.json +1 -1
|
@@ -592,7 +592,7 @@ export type RunCreate = {
|
|
|
592
592
|
* These are optional fields beyond the essential identifiers that are always returned
|
|
593
593
|
* (id, workflow_id, machine_id, status, created_at).
|
|
594
594
|
*/
|
|
595
|
-
export type RunField = 'user_id' | 'organization_id' | 'error' | 'output_data' | 'input_attachment_ids' | 'output_attachment_ids' | 'run_message_history' | 'input_values' | 'pool_ids' | 'sensitive_input_aliases' | 'session_id' | 'session_alias' | 'release_session_after' | 'machine_id';
|
|
595
|
+
export type RunField = 'user_id' | 'organization_id' | 'error' | 'output_data' | 'input_attachment_ids' | 'output_attachment_ids' | 'run_message_history' | 'input_values' | 'pool_ids' | 'sensitive_input_aliases' | 'session_id' | 'session_alias' | 'release_session_after' | 'started_at' | 'ended_at' | 'machine_id';
|
|
596
596
|
/**
|
|
597
597
|
* Run response schema
|
|
598
598
|
*/
|
|
@@ -623,6 +623,8 @@ export type RunResponse = {
|
|
|
623
623
|
session_alias?: string | null;
|
|
624
624
|
release_session_after?: boolean | null;
|
|
625
625
|
created_at: string;
|
|
626
|
+
started_at?: string | null;
|
|
627
|
+
ended_at?: string | null;
|
|
626
628
|
};
|
|
627
629
|
/**
|
|
628
630
|
* Options for retrying an existing run in-place (same run_id).
|
|
@@ -687,6 +689,8 @@ export type RunUpdate = {
|
|
|
687
689
|
input_values?: {
|
|
688
690
|
[key: string]: unknown;
|
|
689
691
|
} | null;
|
|
692
|
+
started_at?: string | null;
|
|
693
|
+
ended_at?: string | null;
|
|
690
694
|
};
|
|
691
695
|
/**
|
|
692
696
|
* Schema for creating a trajectory
|
package/dist/index.d.ts
CHANGED
|
@@ -479,6 +479,9 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
479
479
|
/**
|
|
480
480
|
* List runs with optional filtering
|
|
481
481
|
*
|
|
482
|
+
* Runs are ordered by: RUNNING (by started_at DESC) first, then all others (by ended_at DESC).
|
|
483
|
+
* This surfaces active work and recent completions.
|
|
484
|
+
*
|
|
482
485
|
* @param params - Optional query parameters
|
|
483
486
|
* @param params.skip - Number of items to skip (for pagination)
|
|
484
487
|
* @param params.limit - Maximum number of items to return
|
|
@@ -486,7 +489,12 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
486
489
|
* @param params.workflow_id - Filter by workflow ID
|
|
487
490
|
* @param params.machine_id - Filter by machine ID
|
|
488
491
|
* @param params.session_id - Filter by session ID
|
|
489
|
-
* @
|
|
492
|
+
* @param params.fields - Optional list of fields to include per run (projection). Available fields include:
|
|
493
|
+
* started_at, ended_at, error, output_data, input_values, and more.
|
|
494
|
+
* @returns Paginated list of runs including timing fields:
|
|
495
|
+
* - created_at: When run was created
|
|
496
|
+
* - started_at: When run execution started (null for SCHEDULING runs)
|
|
497
|
+
* - ended_at: When run completed (null for RUNNING/SCHEDULING runs)
|
|
490
498
|
*/
|
|
491
499
|
list: (params?: {
|
|
492
500
|
skip?: number;
|
|
@@ -622,7 +630,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
622
630
|
* Get a specific run by ID
|
|
623
631
|
*
|
|
624
632
|
* @param runId - The ID of the run
|
|
625
|
-
* @returns Run details including
|
|
633
|
+
* @returns Run details including timing information:
|
|
634
|
+
* - created_at: When run was created
|
|
635
|
+
* - started_at: When run execution started (null if not started)
|
|
636
|
+
* - ended_at: When run completed (null if not finished)
|
|
626
637
|
*/
|
|
627
638
|
get: (runId: string) => Promise<({
|
|
628
639
|
data: undefined;
|
package/dist/index.js
CHANGED
|
@@ -469,6 +469,9 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
469
469
|
/**
|
|
470
470
|
* List runs with optional filtering
|
|
471
471
|
*
|
|
472
|
+
* Runs are ordered by: RUNNING (by started_at DESC) first, then all others (by ended_at DESC).
|
|
473
|
+
* This surfaces active work and recent completions.
|
|
474
|
+
*
|
|
472
475
|
* @param params - Optional query parameters
|
|
473
476
|
* @param params.skip - Number of items to skip (for pagination)
|
|
474
477
|
* @param params.limit - Maximum number of items to return
|
|
@@ -476,7 +479,12 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
476
479
|
* @param params.workflow_id - Filter by workflow ID
|
|
477
480
|
* @param params.machine_id - Filter by machine ID
|
|
478
481
|
* @param params.session_id - Filter by session ID
|
|
479
|
-
* @
|
|
482
|
+
* @param params.fields - Optional list of fields to include per run (projection). Available fields include:
|
|
483
|
+
* started_at, ended_at, error, output_data, input_values, and more.
|
|
484
|
+
* @returns Paginated list of runs including timing fields:
|
|
485
|
+
* - created_at: When run was created
|
|
486
|
+
* - started_at: When run execution started (null for SCHEDULING runs)
|
|
487
|
+
* - ended_at: When run completed (null for RUNNING/SCHEDULING runs)
|
|
480
488
|
*/
|
|
481
489
|
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
482
490
|
var _a, _b, _c, _d;
|
|
@@ -595,7 +603,10 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
595
603
|
* Get a specific run by ID
|
|
596
604
|
*
|
|
597
605
|
* @param runId - The ID of the run
|
|
598
|
-
* @returns Run details including
|
|
606
|
+
* @returns Run details including timing information:
|
|
607
|
+
* - created_at: When run was created
|
|
608
|
+
* - started_at: When run execution started (null if not started)
|
|
609
|
+
* - ended_at: When run completed (null if not finished)
|
|
599
610
|
*/
|
|
600
611
|
get: (runId) => __awaiter(this, void 0, void 0, function* () {
|
|
601
612
|
return (0, sdk_gen_1.getRunV1RunsRunIdGet)({
|