crouter

Files, uploads and shares

Downloading files, uploading attachments, and sharing a run with someone else.

Exports of @crouter/sdk, read from the TypeScript compiler at build time. Types re-exported from @crouter/api are documented with that package.

interface declared in resources/attachments.ts

A short-lived signed link to an uploaded file's stored bytes.

Prop

Type

FileDownloadOptions

interface declared in resources/files.ts

Options for files.download.

Prop

Type

Share

interface declared in resources/shares.ts

A share the caller created.

Prop

Type

ShareCreated

interface declared in resources/shares.ts

A newly created share: a frozen copy of the file at a public URL.

Prop

Type

ShareCreateParams

interface declared in resources/shares.ts

shares.create input.

Prop

Type

Upload

interface declared in resources/uploads.ts

A reserved upload. PUT the bytes to upload_link before expires_at, then put url in a run prompt or message.

Prop

Type

UploadCreateParams

interface declared in resources/uploads.ts

uploads.create input: the file the caller will PUT to upload_link. At most 100 MiB.

Prop

Type

On this page