cyberdesk 2.2.15 → 2.2.16
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 +33 -2
- package/dist/client/sdk.gen.js +70 -2
- package/dist/client/types.gen.d.ts +168 -0
- package/package.json +1 -1
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, GetMachinePoolsV1MachinesMachineIdPoolsGetData, UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ListPoolsV1PoolsGetData, CreatePoolV1PoolsPostData, DeletePoolV1PoolsPoolIdDeleteData, GetPoolV1PoolsPoolIdGetData, UpdatePoolV1PoolsPoolIdPatchData, RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ListModelConfigurationsV1ModelConfigurationsGetData, CreateModelConfigurationV1ModelConfigurationsPostData, DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData, GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData, UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, CreateRunChainV1RunsChainPostData, BulkCreateRunsV1RunsBulkPostData, RetryRunV1RunsRunIdRetryPostData, ListRunAttachmentsV1RunAttachmentsGetData, CreateRunAttachmentV1RunAttachmentsPostData, DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, DuplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePostData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, GetUsageAggregateV1UsageAggregateGetData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, HealthHealthGetData, HealthDbHealthDbGetData } from './types.gen';
|
|
1
|
+
import { type Options as ClientOptions, type TDataShape, type Client } from '@hey-api/client-fetch';
|
|
2
|
+
import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, GetMachinePoolsV1MachinesMachineIdPoolsGetData, UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ListPoolsV1PoolsGetData, CreatePoolV1PoolsPostData, DeletePoolV1PoolsPoolIdDeleteData, GetPoolV1PoolsPoolIdGetData, UpdatePoolV1PoolsPoolIdPatchData, RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteData, UploadWorkflowPromptImageV1WorkflowsPromptImagePostData, ListWorkflowPromptImagesV1WorkflowsPromptImagesGetData, GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetData, ListModelConfigurationsV1ModelConfigurationsGetData, CreateModelConfigurationV1ModelConfigurationsPostData, DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData, GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData, UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, CreateRunChainV1RunsChainPostData, BulkCreateRunsV1RunsBulkPostData, RetryRunV1RunsRunIdRetryPostData, ListRunAttachmentsV1RunAttachmentsGetData, CreateRunAttachmentV1RunAttachmentsPostData, DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, DuplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePostData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, GetUsageAggregateV1UsageAggregateGetData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, HealthHealthGetData, HealthDbHealthDbGetData } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -166,6 +166,37 @@ export declare const updateWorkflowV1WorkflowsWorkflowIdPatch: <ThrowOnError ext
|
|
|
166
166
|
export declare const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet: <ThrowOnError extends boolean = false>(options: Options<GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
167
167
|
[key: string]: unknown;
|
|
168
168
|
}[], import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
169
|
+
/**
|
|
170
|
+
* Delete a workflow prompt image
|
|
171
|
+
* Delete a workflow prompt image from storage.
|
|
172
|
+
*/
|
|
173
|
+
export declare const deleteWorkflowPromptImageV1WorkflowsPromptImageDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
174
|
+
/**
|
|
175
|
+
* Upload a workflow prompt image
|
|
176
|
+
* Upload an image to use in workflow prompts.
|
|
177
|
+
*
|
|
178
|
+
* The returned `supabase_url` can be embedded directly in workflow prompt HTML:
|
|
179
|
+
*
|
|
180
|
+
* ```html
|
|
181
|
+
* <img src="supabase://workflow-prompt-images/org_xxx/prompt-assets/my-image.png" alt="Description">
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* When the workflow runs, Cyberdesk automatically resolves these URLs to display the image
|
|
185
|
+
* to the AI agent.
|
|
186
|
+
*
|
|
187
|
+
* Supported formats: PNG, JPEG, GIF, WebP. Maximum size: 10MB.
|
|
188
|
+
*/
|
|
189
|
+
export declare const uploadWorkflowPromptImageV1WorkflowsPromptImagePost: <ThrowOnError extends boolean = false>(options: Options<UploadWorkflowPromptImageV1WorkflowsPromptImagePostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowPromptImageResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
190
|
+
/**
|
|
191
|
+
* List workflow prompt images
|
|
192
|
+
* List all prompt images uploaded for the organization.
|
|
193
|
+
*/
|
|
194
|
+
export declare const listWorkflowPromptImagesV1WorkflowsPromptImagesGet: <ThrowOnError extends boolean = false>(options?: Options<ListWorkflowPromptImagesV1WorkflowsPromptImagesGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowPromptImageListItem[], unknown, ThrowOnError>;
|
|
195
|
+
/**
|
|
196
|
+
* Get signed URL for a prompt image
|
|
197
|
+
* Get a fresh signed URL for an existing workflow prompt image.
|
|
198
|
+
*/
|
|
199
|
+
export declare const getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet: <ThrowOnError extends boolean = false>(options: Options<GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowPromptImageSignedUrlResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
169
200
|
/**
|
|
170
201
|
* List Model Configurations
|
|
171
202
|
*/
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = exports.dbPingInternalDebugDbPingGet = exports.getUsageAggregateV1UsageAggregateGet = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.copyToClipboardV1ComputerMachineIdCopyToClipboardPost = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.duplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePost = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = exports.createTrajectoryV1TrajectoriesPost = exports.listTrajectoriesV1TrajectoriesGet = exports.updateRequestLogV1RequestLogsLogIdPatch = exports.getRequestLogV1RequestLogsLogIdGet = void 0;
|
|
4
|
+
exports.getConnectionV1ConnectionsConnectionIdGet = exports.deleteConnectionV1ConnectionsConnectionIdDelete = exports.createConnectionV1ConnectionsPost = exports.listConnectionsV1ConnectionsGet = exports.downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = exports.getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGet = exports.updateRunAttachmentV1RunAttachmentsAttachmentIdPut = exports.getRunAttachmentV1RunAttachmentsAttachmentIdGet = exports.deleteRunAttachmentV1RunAttachmentsAttachmentIdDelete = exports.createRunAttachmentV1RunAttachmentsPost = exports.listRunAttachmentsV1RunAttachmentsGet = exports.retryRunV1RunsRunIdRetryPost = exports.bulkCreateRunsV1RunsBulkPost = exports.createRunChainV1RunsChainPost = exports.updateRunV1RunsRunIdPatch = exports.getRunV1RunsRunIdGet = exports.deleteRunV1RunsRunIdDelete = exports.createRunV1RunsPost = exports.listRunsV1RunsGet = exports.updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch = exports.getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet = exports.deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete = exports.createModelConfigurationV1ModelConfigurationsPost = exports.listModelConfigurationsV1ModelConfigurationsGet = exports.getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet = exports.listWorkflowPromptImagesV1WorkflowsPromptImagesGet = exports.uploadWorkflowPromptImageV1WorkflowsPromptImagePost = exports.deleteWorkflowPromptImageV1WorkflowsPromptImageDelete = exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = exports.createWorkflowV1WorkflowsPost = exports.listWorkflowsV1WorkflowsGet = exports.addMachinesToPoolV1PoolsPoolIdMachinesPost = exports.removeMachinesFromPoolV1PoolsPoolIdMachinesDelete = exports.updatePoolV1PoolsPoolIdPatch = exports.getPoolV1PoolsPoolIdGet = exports.deletePoolV1PoolsPoolIdDelete = exports.createPoolV1PoolsPost = exports.listPoolsV1PoolsGet = exports.updateMachinePoolsV1MachinesMachineIdPoolsPut = exports.getMachinePoolsV1MachinesMachineIdPoolsGet = exports.updateMachineV1MachinesMachineIdPatch = exports.getMachineV1MachinesMachineIdGet = exports.deleteMachineV1MachinesMachineIdDelete = exports.createMachineV1MachinesPost = exports.listMachinesV1MachinesGet = exports.databaseHealthCheckV1HealthDbGet = exports.healthCheckV1HealthGet = void 0;
|
|
5
|
+
exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = exports.dbPingInternalDebugDbPingGet = exports.getUsageAggregateV1UsageAggregateGet = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.copyToClipboardV1ComputerMachineIdCopyToClipboardPost = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.duplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePost = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = exports.createTrajectoryV1TrajectoriesPost = exports.listTrajectoriesV1TrajectoriesGet = exports.updateRequestLogV1RequestLogsLogIdPatch = exports.getRequestLogV1RequestLogsLogIdGet = exports.deleteRequestLogV1RequestLogsLogIdDelete = exports.createRequestLogV1RequestLogsPost = exports.listRequestLogsV1RequestLogsGet = exports.updateConnectionV1ConnectionsConnectionIdPatch = void 0;
|
|
6
|
+
const client_fetch_1 = require("@hey-api/client-fetch");
|
|
6
7
|
const client_gen_1 = require("./client.gen");
|
|
7
8
|
/**
|
|
8
9
|
* Health Check
|
|
@@ -341,6 +342,73 @@ const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = (options) => {
|
|
|
341
342
|
], url: '/v1/workflows/{workflow_id}/versions' }, options));
|
|
342
343
|
};
|
|
343
344
|
exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet;
|
|
345
|
+
/**
|
|
346
|
+
* Delete a workflow prompt image
|
|
347
|
+
* Delete a workflow prompt image from storage.
|
|
348
|
+
*/
|
|
349
|
+
const deleteWorkflowPromptImageV1WorkflowsPromptImageDelete = (options) => {
|
|
350
|
+
var _a;
|
|
351
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
352
|
+
{
|
|
353
|
+
scheme: 'bearer',
|
|
354
|
+
type: 'http'
|
|
355
|
+
}
|
|
356
|
+
], url: '/v1/workflows/prompt-image' }, options));
|
|
357
|
+
};
|
|
358
|
+
exports.deleteWorkflowPromptImageV1WorkflowsPromptImageDelete = deleteWorkflowPromptImageV1WorkflowsPromptImageDelete;
|
|
359
|
+
/**
|
|
360
|
+
* Upload a workflow prompt image
|
|
361
|
+
* Upload an image to use in workflow prompts.
|
|
362
|
+
*
|
|
363
|
+
* The returned `supabase_url` can be embedded directly in workflow prompt HTML:
|
|
364
|
+
*
|
|
365
|
+
* ```html
|
|
366
|
+
* <img src="supabase://workflow-prompt-images/org_xxx/prompt-assets/my-image.png" alt="Description">
|
|
367
|
+
* ```
|
|
368
|
+
*
|
|
369
|
+
* When the workflow runs, Cyberdesk automatically resolves these URLs to display the image
|
|
370
|
+
* to the AI agent.
|
|
371
|
+
*
|
|
372
|
+
* Supported formats: PNG, JPEG, GIF, WebP. Maximum size: 10MB.
|
|
373
|
+
*/
|
|
374
|
+
const uploadWorkflowPromptImageV1WorkflowsPromptImagePost = (options) => {
|
|
375
|
+
var _a;
|
|
376
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign(Object.assign(Object.assign({}, client_fetch_1.formDataBodySerializer), { security: [
|
|
377
|
+
{
|
|
378
|
+
scheme: 'bearer',
|
|
379
|
+
type: 'http'
|
|
380
|
+
}
|
|
381
|
+
], url: '/v1/workflows/prompt-image' }), options), { headers: Object.assign({ 'Content-Type': null }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
382
|
+
};
|
|
383
|
+
exports.uploadWorkflowPromptImageV1WorkflowsPromptImagePost = uploadWorkflowPromptImageV1WorkflowsPromptImagePost;
|
|
384
|
+
/**
|
|
385
|
+
* List workflow prompt images
|
|
386
|
+
* List all prompt images uploaded for the organization.
|
|
387
|
+
*/
|
|
388
|
+
const listWorkflowPromptImagesV1WorkflowsPromptImagesGet = (options) => {
|
|
389
|
+
var _a;
|
|
390
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
391
|
+
{
|
|
392
|
+
scheme: 'bearer',
|
|
393
|
+
type: 'http'
|
|
394
|
+
}
|
|
395
|
+
], url: '/v1/workflows/prompt-images' }, options));
|
|
396
|
+
};
|
|
397
|
+
exports.listWorkflowPromptImagesV1WorkflowsPromptImagesGet = listWorkflowPromptImagesV1WorkflowsPromptImagesGet;
|
|
398
|
+
/**
|
|
399
|
+
* Get signed URL for a prompt image
|
|
400
|
+
* Get a fresh signed URL for an existing workflow prompt image.
|
|
401
|
+
*/
|
|
402
|
+
const getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet = (options) => {
|
|
403
|
+
var _a;
|
|
404
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
405
|
+
{
|
|
406
|
+
scheme: 'bearer',
|
|
407
|
+
type: 'http'
|
|
408
|
+
}
|
|
409
|
+
], url: '/v1/workflows/prompt-image/signed-url' }, options));
|
|
410
|
+
};
|
|
411
|
+
exports.getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet = getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet;
|
|
344
412
|
/**
|
|
345
413
|
* List Model Configurations
|
|
346
414
|
*/
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export type AttachmentType = 'input' | 'output';
|
|
2
|
+
export type BodyUploadWorkflowPromptImageV1WorkflowsPromptImagePost = {
|
|
3
|
+
/**
|
|
4
|
+
* The image file to upload
|
|
5
|
+
*/
|
|
6
|
+
file: Blob | File;
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* One step within a chain
|
|
4
10
|
*/
|
|
@@ -965,6 +971,73 @@ export type WorkflowModelMetadata = {
|
|
|
965
971
|
*/
|
|
966
972
|
fallback_model_2_id?: string | null;
|
|
967
973
|
};
|
|
974
|
+
/**
|
|
975
|
+
* Schema for an item in the workflow prompt images list
|
|
976
|
+
*/
|
|
977
|
+
export type WorkflowPromptImageListItem = {
|
|
978
|
+
/**
|
|
979
|
+
* The stable supabase:// URL to use in workflow prompt HTML
|
|
980
|
+
*/
|
|
981
|
+
supabase_url: string;
|
|
982
|
+
/**
|
|
983
|
+
* The storage path of the image
|
|
984
|
+
*/
|
|
985
|
+
path: string;
|
|
986
|
+
/**
|
|
987
|
+
* The filename of the image
|
|
988
|
+
*/
|
|
989
|
+
filename: string;
|
|
990
|
+
/**
|
|
991
|
+
* When the image was uploaded
|
|
992
|
+
*/
|
|
993
|
+
created_at?: string | null;
|
|
994
|
+
/**
|
|
995
|
+
* The size of the file in bytes
|
|
996
|
+
*/
|
|
997
|
+
size_bytes?: number | null;
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* Response schema for uploaded workflow prompt image
|
|
1001
|
+
*/
|
|
1002
|
+
export type WorkflowPromptImageResponse = {
|
|
1003
|
+
/**
|
|
1004
|
+
* The stable supabase:// URL to use in workflow prompt HTML. Example: supabase://workflow-prompt-images/org_xxx/prompt-assets/image.png
|
|
1005
|
+
*/
|
|
1006
|
+
supabase_url: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* A temporary signed URL for immediate display (expires in 1 hour)
|
|
1009
|
+
*/
|
|
1010
|
+
signed_url: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* The sanitized filename as stored
|
|
1013
|
+
*/
|
|
1014
|
+
filename: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* The MIME type of the uploaded image
|
|
1017
|
+
*/
|
|
1018
|
+
content_type: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* The size of the uploaded file in bytes
|
|
1021
|
+
*/
|
|
1022
|
+
size_bytes: number;
|
|
1023
|
+
};
|
|
1024
|
+
/**
|
|
1025
|
+
* Response schema for getting a signed URL for an existing image
|
|
1026
|
+
*/
|
|
1027
|
+
export type WorkflowPromptImageSignedUrlResponse = {
|
|
1028
|
+
/**
|
|
1029
|
+
* The stable supabase:// URL
|
|
1030
|
+
*/
|
|
1031
|
+
supabase_url: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* A temporary signed URL (expires in 1 hour)
|
|
1034
|
+
*/
|
|
1035
|
+
signed_url: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* Seconds until the signed URL expires
|
|
1038
|
+
*/
|
|
1039
|
+
expires_in: number;
|
|
1040
|
+
};
|
|
968
1041
|
/**
|
|
969
1042
|
* Workflow response schema
|
|
970
1043
|
*/
|
|
@@ -1591,6 +1664,101 @@ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses = {
|
|
|
1591
1664
|
}>;
|
|
1592
1665
|
};
|
|
1593
1666
|
export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponse = GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses[keyof GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses];
|
|
1667
|
+
export type DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteData = {
|
|
1668
|
+
body?: never;
|
|
1669
|
+
headers?: {
|
|
1670
|
+
/**
|
|
1671
|
+
* 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.
|
|
1672
|
+
*/
|
|
1673
|
+
'Idempotency-Key'?: string;
|
|
1674
|
+
};
|
|
1675
|
+
path?: never;
|
|
1676
|
+
query: {
|
|
1677
|
+
/**
|
|
1678
|
+
* The storage path of the image to delete
|
|
1679
|
+
*/
|
|
1680
|
+
path: string;
|
|
1681
|
+
};
|
|
1682
|
+
url: '/v1/workflows/prompt-image';
|
|
1683
|
+
};
|
|
1684
|
+
export type DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteErrors = {
|
|
1685
|
+
/**
|
|
1686
|
+
* Validation Error
|
|
1687
|
+
*/
|
|
1688
|
+
422: HttpValidationError;
|
|
1689
|
+
};
|
|
1690
|
+
export type DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteError = DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteErrors[keyof DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteErrors];
|
|
1691
|
+
export type DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteResponses = {
|
|
1692
|
+
/**
|
|
1693
|
+
* Successful Response
|
|
1694
|
+
*/
|
|
1695
|
+
204: void;
|
|
1696
|
+
};
|
|
1697
|
+
export type DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteResponse = DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteResponses[keyof DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteResponses];
|
|
1698
|
+
export type UploadWorkflowPromptImageV1WorkflowsPromptImagePostData = {
|
|
1699
|
+
body: BodyUploadWorkflowPromptImageV1WorkflowsPromptImagePost;
|
|
1700
|
+
headers?: {
|
|
1701
|
+
/**
|
|
1702
|
+
* 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.
|
|
1703
|
+
*/
|
|
1704
|
+
'Idempotency-Key'?: string;
|
|
1705
|
+
};
|
|
1706
|
+
path?: never;
|
|
1707
|
+
query?: never;
|
|
1708
|
+
url: '/v1/workflows/prompt-image';
|
|
1709
|
+
};
|
|
1710
|
+
export type UploadWorkflowPromptImageV1WorkflowsPromptImagePostErrors = {
|
|
1711
|
+
/**
|
|
1712
|
+
* Validation Error
|
|
1713
|
+
*/
|
|
1714
|
+
422: HttpValidationError;
|
|
1715
|
+
};
|
|
1716
|
+
export type UploadWorkflowPromptImageV1WorkflowsPromptImagePostError = UploadWorkflowPromptImageV1WorkflowsPromptImagePostErrors[keyof UploadWorkflowPromptImageV1WorkflowsPromptImagePostErrors];
|
|
1717
|
+
export type UploadWorkflowPromptImageV1WorkflowsPromptImagePostResponses = {
|
|
1718
|
+
/**
|
|
1719
|
+
* Successful Response
|
|
1720
|
+
*/
|
|
1721
|
+
201: WorkflowPromptImageResponse;
|
|
1722
|
+
};
|
|
1723
|
+
export type UploadWorkflowPromptImageV1WorkflowsPromptImagePostResponse = UploadWorkflowPromptImageV1WorkflowsPromptImagePostResponses[keyof UploadWorkflowPromptImageV1WorkflowsPromptImagePostResponses];
|
|
1724
|
+
export type ListWorkflowPromptImagesV1WorkflowsPromptImagesGetData = {
|
|
1725
|
+
body?: never;
|
|
1726
|
+
path?: never;
|
|
1727
|
+
query?: never;
|
|
1728
|
+
url: '/v1/workflows/prompt-images';
|
|
1729
|
+
};
|
|
1730
|
+
export type ListWorkflowPromptImagesV1WorkflowsPromptImagesGetResponses = {
|
|
1731
|
+
/**
|
|
1732
|
+
* Successful Response
|
|
1733
|
+
*/
|
|
1734
|
+
200: Array<WorkflowPromptImageListItem>;
|
|
1735
|
+
};
|
|
1736
|
+
export type ListWorkflowPromptImagesV1WorkflowsPromptImagesGetResponse = ListWorkflowPromptImagesV1WorkflowsPromptImagesGetResponses[keyof ListWorkflowPromptImagesV1WorkflowsPromptImagesGetResponses];
|
|
1737
|
+
export type GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetData = {
|
|
1738
|
+
body?: never;
|
|
1739
|
+
path?: never;
|
|
1740
|
+
query: {
|
|
1741
|
+
/**
|
|
1742
|
+
* The storage path of the image (e.g., org_xxx/prompt-assets/image.png)
|
|
1743
|
+
*/
|
|
1744
|
+
path: string;
|
|
1745
|
+
};
|
|
1746
|
+
url: '/v1/workflows/prompt-image/signed-url';
|
|
1747
|
+
};
|
|
1748
|
+
export type GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetErrors = {
|
|
1749
|
+
/**
|
|
1750
|
+
* Validation Error
|
|
1751
|
+
*/
|
|
1752
|
+
422: HttpValidationError;
|
|
1753
|
+
};
|
|
1754
|
+
export type GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetError = GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetErrors[keyof GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetErrors];
|
|
1755
|
+
export type GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetResponses = {
|
|
1756
|
+
/**
|
|
1757
|
+
* Successful Response
|
|
1758
|
+
*/
|
|
1759
|
+
200: WorkflowPromptImageSignedUrlResponse;
|
|
1760
|
+
};
|
|
1761
|
+
export type GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetResponse = GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetResponses[keyof GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetResponses];
|
|
1594
1762
|
export type ListModelConfigurationsV1ModelConfigurationsGetData = {
|
|
1595
1763
|
body?: never;
|
|
1596
1764
|
path?: never;
|