mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(box): use generic output descriptions for shared file properties
Rename "Uploaded file ID/name" to "File ID/name" in UPLOAD_FILE_OUTPUT_PROPERTIES since the constant is shared by both upload and copy operations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@ With the Box integration in Sim, you can:
|
||||
These capabilities allow your Sim agents to automate Box operations directly within your workflows — from organizing documents and distributing content to processing uploaded files and maintaining structured cloud storage as part of your business processes.
|
||||
{/* MANUAL-CONTENT-END */}
|
||||
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Integrate Box into your workflow to manage files and folders. Upload and download files, get file information, list folder contents, create and delete folders, copy files, search across your Box account, and update file metadata.
|
||||
@@ -53,8 +54,8 @@ Upload a file to a Box folder
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Uploaded file ID |
|
||||
| `name` | string | Uploaded file name |
|
||||
| `id` | string | File ID |
|
||||
| `name` | string | File name |
|
||||
| `size` | number | File size in bytes |
|
||||
| `sha1` | string | SHA1 hash of file content |
|
||||
| `createdAt` | string | Creation timestamp |
|
||||
@@ -204,8 +205,8 @@ Copy a file to another folder in Box
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ---- | ----------- |
|
||||
| `id` | string | Uploaded file ID |
|
||||
| `name` | string | Uploaded file name |
|
||||
| `id` | string | File ID |
|
||||
| `name` | string | File name |
|
||||
| `size` | number | File size in bytes |
|
||||
| `sha1` | string | SHA1 hash of file content |
|
||||
| `createdAt` | string | Creation timestamp |
|
||||
|
||||
@@ -240,8 +240,8 @@ export const SEARCH_RESULT_OUTPUT_PROPERTIES = {
|
||||
} as const satisfies Record<string, OutputProperty>
|
||||
|
||||
export const UPLOAD_FILE_OUTPUT_PROPERTIES = {
|
||||
id: { type: 'string', description: 'Uploaded file ID' },
|
||||
name: { type: 'string', description: 'Uploaded file name' },
|
||||
id: { type: 'string', description: 'File ID' },
|
||||
name: { type: 'string', description: 'File name' },
|
||||
size: { type: 'number', description: 'File size in bytes' },
|
||||
sha1: { type: 'string', description: 'SHA1 hash of file content', optional: true },
|
||||
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
|
||||
|
||||
Reference in New Issue
Block a user