Skip to main content

Types

All TypeScript types exported by @castari/sdk.

Agent

Represents a Castari agent.

AgentStatus

Possible agent statuses.

AgentSourceType

Source type for agent code.

InvocationResponse

Response from invoking an agent.

InvokeOptions

Options for invoking an agent.

CreateAgentOptions

Options for creating an agent.

UploadResponse

Response from uploading code.

Secret

Represents a secret (metadata only — values are never returned).

CastariClientOptions

Options for creating a client.

CastariError

Error thrown by SDK operations.
Example:

Storage v2 Types

The SDK includes types for managed file storage (Storage v2):
  • ManagedFile — File metadata (id, filename, size, scope, tags, status)
  • FileUploadResponse — Upload result
  • ManagedFileList — Paginated file list with metadata
  • StorageUsage — Quota information (total files, bytes, limits)
  • PresignedUpload — Presigned URL for large file uploads
  • AgentFile — File attached to an agent
  • AgentFileList — List of agent-attached files
See the full type definitions in types.ts.

Importing Types

All types are exported from the main package:

See Also