cyberdesk 2.2.32 → 2.2.34
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/sdk.gen.d.ts +1 -1
- package/dist/client/sdk.gen.js +3 -3
- package/dist/client/types.gen.d.ts +26 -4
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ export declare const getWorkflowV1WorkflowsWorkflowIdGet: <ThrowOnError extends
|
|
|
183
183
|
export declare const updateWorkflowV1WorkflowsWorkflowIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkflowV1WorkflowsWorkflowIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
184
184
|
/**
|
|
185
185
|
* Duplicate Workflow
|
|
186
|
-
* Duplicate a workflow, including
|
|
186
|
+
* Duplicate a workflow, including prompt images and optional generated trajectories.
|
|
187
187
|
*
|
|
188
188
|
* Copies everything except version history, and prefixes the name with "(Copy)".
|
|
189
189
|
*/
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -362,18 +362,18 @@ const updateWorkflowV1WorkflowsWorkflowIdPatch = (options) => {
|
|
|
362
362
|
exports.updateWorkflowV1WorkflowsWorkflowIdPatch = updateWorkflowV1WorkflowsWorkflowIdPatch;
|
|
363
363
|
/**
|
|
364
364
|
* Duplicate Workflow
|
|
365
|
-
* Duplicate a workflow, including
|
|
365
|
+
* Duplicate a workflow, including prompt images and optional generated trajectories.
|
|
366
366
|
*
|
|
367
367
|
* Copies everything except version history, and prefixes the name with "(Copy)".
|
|
368
368
|
*/
|
|
369
369
|
const duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost = (options) => {
|
|
370
370
|
var _a;
|
|
371
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign({ security: [
|
|
371
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
372
372
|
{
|
|
373
373
|
scheme: 'bearer',
|
|
374
374
|
type: 'http'
|
|
375
375
|
}
|
|
376
|
-
], url: '/v1/workflows/{workflow_id}/duplicate' }, options));
|
|
376
|
+
], url: '/v1/workflows/{workflow_id}/duplicate' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
377
377
|
};
|
|
378
378
|
exports.duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost = duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost;
|
|
379
379
|
/**
|
|
@@ -342,6 +342,10 @@ export type ModelConfigurationCreate = {
|
|
|
342
342
|
additional_params?: {
|
|
343
343
|
[key: string]: unknown;
|
|
344
344
|
} | null;
|
|
345
|
+
/**
|
|
346
|
+
* Agent harness version string used by Cyberdesk workers for prompt/tool selection.
|
|
347
|
+
*/
|
|
348
|
+
agent_harness_version_string?: string | null;
|
|
345
349
|
/**
|
|
346
350
|
* True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents.
|
|
347
351
|
*/
|
|
@@ -379,6 +383,10 @@ export type ModelConfigurationResponse = {
|
|
|
379
383
|
additional_params?: {
|
|
380
384
|
[key: string]: unknown;
|
|
381
385
|
} | null;
|
|
386
|
+
/**
|
|
387
|
+
* Agent harness version string used by Cyberdesk workers for prompt/tool selection.
|
|
388
|
+
*/
|
|
389
|
+
agent_harness_version_string?: string | null;
|
|
382
390
|
/**
|
|
383
391
|
* True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents.
|
|
384
392
|
*/
|
|
@@ -420,6 +428,7 @@ export type ModelConfigurationUpdate = {
|
|
|
420
428
|
additional_params?: {
|
|
421
429
|
[key: string]: unknown;
|
|
422
430
|
} | null;
|
|
431
|
+
agent_harness_version_string?: string | null;
|
|
423
432
|
is_computer_use_model?: boolean | null;
|
|
424
433
|
is_archived?: boolean | null;
|
|
425
434
|
};
|
|
@@ -1223,10 +1232,19 @@ export type WorkflowCreate = {
|
|
|
1223
1232
|
*/
|
|
1224
1233
|
is_webhooks_enabled?: boolean;
|
|
1225
1234
|
/**
|
|
1226
|
-
* Optional workflow-level model configuration metadata (main agent
|
|
1235
|
+
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
1227
1236
|
*/
|
|
1228
1237
|
model_metadata?: WorkflowModelMetadata | null;
|
|
1229
1238
|
};
|
|
1239
|
+
/**
|
|
1240
|
+
* Schema for duplicating workflows.
|
|
1241
|
+
*/
|
|
1242
|
+
export type WorkflowDuplicateRequest = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Whether to duplicate generated trajectories onto the copied workflow. Non-generated trajectories are never duplicated.
|
|
1245
|
+
*/
|
|
1246
|
+
include_trajectories?: boolean;
|
|
1247
|
+
};
|
|
1230
1248
|
/**
|
|
1231
1249
|
* Backend workflow metadata exposed read-only for internal observability.
|
|
1232
1250
|
*/
|
|
@@ -1285,6 +1303,10 @@ export type WorkflowModelMetadata = {
|
|
|
1285
1303
|
* ModelConfiguration.id used for the main agent. Null → Cyberdesk default.
|
|
1286
1304
|
*/
|
|
1287
1305
|
main_agent_model_id?: string | null;
|
|
1306
|
+
/**
|
|
1307
|
+
* ModelConfiguration.id used for cache detection. Null → Cyberdesk default.
|
|
1308
|
+
*/
|
|
1309
|
+
cache_detection_model_id?: string | null;
|
|
1288
1310
|
/**
|
|
1289
1311
|
* ModelConfiguration.id used as fallback 1 (global across agents).
|
|
1290
1312
|
*/
|
|
@@ -1384,7 +1406,7 @@ export type WorkflowResponse = {
|
|
|
1384
1406
|
*/
|
|
1385
1407
|
is_webhooks_enabled?: boolean;
|
|
1386
1408
|
/**
|
|
1387
|
-
* Optional workflow-level model configuration metadata (main agent
|
|
1409
|
+
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
1388
1410
|
*/
|
|
1389
1411
|
model_metadata?: WorkflowModelMetadata | null;
|
|
1390
1412
|
id: string;
|
|
@@ -1517,7 +1539,7 @@ export type WorkflowUpdate = {
|
|
|
1517
1539
|
*/
|
|
1518
1540
|
is_webhooks_enabled?: boolean | null;
|
|
1519
1541
|
/**
|
|
1520
|
-
* Optional workflow-level model configuration metadata (main agent
|
|
1542
|
+
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
1521
1543
|
*/
|
|
1522
1544
|
model_metadata?: WorkflowModelMetadata | null;
|
|
1523
1545
|
/**
|
|
@@ -2132,7 +2154,7 @@ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses = {
|
|
|
2132
2154
|
};
|
|
2133
2155
|
export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponse = UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses[keyof UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses];
|
|
2134
2156
|
export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostData = {
|
|
2135
|
-
body?:
|
|
2157
|
+
body?: WorkflowDuplicateRequest | null;
|
|
2136
2158
|
headers?: {
|
|
2137
2159
|
/**
|
|
2138
2160
|
* Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
import { type MachineResponse, type MachinePoolUpdate, type PoolResponse, type PoolCreate, type PoolUpdate, type PoolWithMachines, type MachinePoolAssignment, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseWithIncludesMachineResponse, type PaginatedResponseWithIncludesPoolResponse, type PaginatedResponseWorkflowResponse, type PaginatedResponseWithIncludesRunResponse, type PaginatedResponseConnectionResponse, type PaginatedResponseWithIncludesTrajectoryResponse, type MachineStatus, type RunStatus, type ConnectionStatus, type MachineCreate, type WorkflowCreate, type RunCreate, type RunBulkCreate, type RunBulkCreateResponse, type WorkflowChainCreate, type WorkflowChainResponse, type FileInput, type ConnectionCreate, type TrajectoryCreate, type MachineUpdate, type WorkflowUpdate, type RunUpdate, type TrajectoryUpdate, type RunAttachmentCreate, type RunAttachmentUpdate, type RunAttachmentResponse, type RunAttachmentDownloadUrlResponse, type AttachmentType, type IncludedResource, type PaginatedResponseRunAttachmentResponse, type RunRetry, type RunField, type RunListSortMode, type ModelConfigurationCreate, type ModelConfigurationUpdate, type ModelConfigurationResponse, type UsageAggregateResponse, type UsageMode, type WorkflowTagCreate, type WorkflowTagUpdate, type WorkflowTagResponse, type WorkflowTagGroupCreate, type WorkflowTagGroupUpdate, type WorkflowTagGroupResponse, type ReorderRequest, type AddTagsRequest, type BulkAddTagsRequest } from './client/types.gen';
|
|
28
|
+
import { type MachineResponse, type MachinePoolUpdate, type PoolResponse, type PoolCreate, type PoolUpdate, type PoolWithMachines, type MachinePoolAssignment, type WorkflowModelMetadata, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseWithIncludesMachineResponse, type PaginatedResponseWithIncludesPoolResponse, type PaginatedResponseWorkflowResponse, type PaginatedResponseWithIncludesRunResponse, type PaginatedResponseConnectionResponse, type PaginatedResponseWithIncludesTrajectoryResponse, type MachineStatus, type RunStatus, type ConnectionStatus, type MachineCreate, type WorkflowCreate, type RunCreate, type RunBulkCreate, type RunBulkCreateResponse, type WorkflowChainCreate, type WorkflowChainResponse, type FileInput, type ConnectionCreate, type TrajectoryCreate, type MachineUpdate, type WorkflowUpdate, type RunUpdate, type TrajectoryUpdate, type RunAttachmentCreate, type RunAttachmentUpdate, type RunAttachmentResponse, type RunAttachmentDownloadUrlResponse, type AttachmentType, type IncludedResource, type PaginatedResponseRunAttachmentResponse, type RunRetry, type RunField, type RunListSortMode, type ModelConfigurationCreate, type ModelConfigurationUpdate, type ModelConfigurationResponse, type UsageAggregateResponse, type UsageMode, type WorkflowTagCreate, type WorkflowTagUpdate, type WorkflowTagResponse, type WorkflowTagGroupCreate, type WorkflowTagGroupUpdate, type WorkflowTagGroupResponse, type ReorderRequest, type AddTagsRequest, type BulkAddTagsRequest, type WorkflowDuplicateRequest } from './client/types.gen';
|
|
29
29
|
export * from './client/types.gen';
|
|
30
30
|
export * from './client/sdk.gen';
|
|
31
31
|
export * from './client/client.gen';
|
|
@@ -585,9 +585,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
|
|
|
585
585
|
* Duplicate a workflow
|
|
586
586
|
*
|
|
587
587
|
* @param workflowId - The ID of the workflow to duplicate
|
|
588
|
+
* @param data - Optional duplication settings, including whether to copy generated trajectories
|
|
588
589
|
* @returns Duplicated workflow details
|
|
589
590
|
*/
|
|
590
|
-
duplicate: (workflowId: string) => Promise<({
|
|
591
|
+
duplicate: (workflowId: string, data?: WorkflowDuplicateRequest) => Promise<({
|
|
591
592
|
data: undefined;
|
|
592
593
|
error: import("./client/types.gen").HttpValidationError;
|
|
593
594
|
} | {
|
|
@@ -1785,4 +1786,4 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
|
|
|
1785
1786
|
}>;
|
|
1786
1787
|
};
|
|
1787
1788
|
};
|
|
1788
|
-
export type { MachineResponse, MachinePoolUpdate, PoolResponse, PoolCreate, PoolUpdate, PoolWithMachines, MachinePoolAssignment, WorkflowResponse, RunResponse, RunBulkCreate, RunBulkCreateResponse, ConnectionResponse, TrajectoryResponse, RunAttachmentResponse, RunAttachmentDownloadUrlResponse, FileInput, AttachmentType, IncludedResource, PaginatedResponseWithIncludesMachineResponse, PaginatedResponseWithIncludesPoolResponse, PaginatedResponseWorkflowResponse, PaginatedResponseWithIncludesRunResponse, PaginatedResponseConnectionResponse, PaginatedResponseWithIncludesTrajectoryResponse, PaginatedResponseRunAttachmentResponse, ModelConfigurationCreate, ModelConfigurationUpdate, ModelConfigurationResponse, UsageAggregateResponse, UsageMode, WorkflowTagCreate, WorkflowTagUpdate, WorkflowTagResponse, WorkflowTagGroupCreate, WorkflowTagGroupUpdate, WorkflowTagGroupResponse, ReorderRequest, AddTagsRequest, BulkAddTagsRequest, };
|
|
1789
|
+
export type { MachineResponse, MachinePoolUpdate, PoolResponse, PoolCreate, PoolUpdate, PoolWithMachines, MachinePoolAssignment, WorkflowModelMetadata, WorkflowResponse, RunResponse, RunBulkCreate, RunBulkCreateResponse, ConnectionResponse, TrajectoryResponse, RunAttachmentResponse, RunAttachmentDownloadUrlResponse, FileInput, AttachmentType, IncludedResource, PaginatedResponseWithIncludesMachineResponse, PaginatedResponseWithIncludesPoolResponse, PaginatedResponseWorkflowResponse, PaginatedResponseWithIncludesRunResponse, PaginatedResponseConnectionResponse, PaginatedResponseWithIncludesTrajectoryResponse, PaginatedResponseRunAttachmentResponse, ModelConfigurationCreate, ModelConfigurationUpdate, ModelConfigurationResponse, UsageAggregateResponse, UsageMode, WorkflowTagCreate, WorkflowTagUpdate, WorkflowTagResponse, WorkflowTagGroupCreate, WorkflowTagGroupUpdate, WorkflowTagGroupResponse, ReorderRequest, AddTagsRequest, BulkAddTagsRequest, };
|
package/dist/index.js
CHANGED
|
@@ -696,12 +696,14 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
|
|
|
696
696
|
* Duplicate a workflow
|
|
697
697
|
*
|
|
698
698
|
* @param workflowId - The ID of the workflow to duplicate
|
|
699
|
+
* @param data - Optional duplication settings, including whether to copy generated trajectories
|
|
699
700
|
* @returns Duplicated workflow details
|
|
700
701
|
*/
|
|
701
|
-
duplicate: (workflowId) => __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
duplicate: (workflowId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
702
703
|
return (0, sdk_gen_1.duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost)({
|
|
703
704
|
client,
|
|
704
705
|
path: { workflow_id: workflowId },
|
|
706
|
+
body: data,
|
|
705
707
|
});
|
|
706
708
|
}),
|
|
707
709
|
/**
|