cyberdesk 2.2.33 → 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.
@@ -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 trajectories and prompt images.
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
  */
@@ -362,18 +362,18 @@ const updateWorkflowV1WorkflowsWorkflowIdPatch = (options) => {
362
362
  exports.updateWorkflowV1WorkflowsWorkflowIdPatch = updateWorkflowV1WorkflowsWorkflowIdPatch;
363
363
  /**
364
364
  * Duplicate Workflow
365
- * Duplicate a workflow, including trajectories and prompt images.
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
  /**
@@ -1236,6 +1236,15 @@ export type WorkflowCreate = {
1236
1236
  */
1237
1237
  model_metadata?: WorkflowModelMetadata | null;
1238
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
+ };
1239
1248
  /**
1240
1249
  * Backend workflow metadata exposed read-only for internal observability.
1241
1250
  */
@@ -2145,7 +2154,7 @@ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses = {
2145
2154
  };
2146
2155
  export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponse = UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses[keyof UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses];
2147
2156
  export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostData = {
2148
- body?: never;
2157
+ body?: WorkflowDuplicateRequest | null;
2149
2158
  headers?: {
2150
2159
  /**
2151
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 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 } 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
  } | {
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.33",
3
+ "version": "2.2.34",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",