Skip to main content

Overview

All types are exported from the cuey package. This page provides a complete reference of all available types.

Importing Types

Core Types

Cron

Represents a recurring cron job.
interface
Interface representing a cron job.

Event

Represents a scheduled event.
interface
Interface representing a scheduled event.

HttpMethod

Supported HTTP methods for webhook requests.
union
Union type of supported HTTP methods.

EventStatus

Status values for event execution.
union
Union type of event status values.

RetryConfig

Retry configuration for webhooks.
interface
Interface for retry configuration.

Json

JSON type for API payloads.
union
Recursive union type representing any JSON-serializable value.

Input Types

CreateCronInput

Input for creating a cron job.
interface
Interface for creating a cron job.

UpdateCronInput

Input for updating a cron job (same structure as CreateCronInput).
interface
Interface for updating a cron job. Same structure as CreateCronInput.

CreateEventInput

Input for creating an event.
interface
Interface for creating an event.

UpdateEventInput

Input for updating an event (same structure as CreateEventInput).
interface
Interface for updating an event. Same structure as CreateEventInput.

Query Parameter Types

CronsQueryParams

Query parameters for listing crons.
interface
Interface for query parameters when listing crons.

EventsQueryParams

Query parameters for listing events.
interface
Interface for query parameters when listing events.

Configuration Types

CueyConfig

Configuration options for the Cuey client.
interface
Interface for Cuey client configuration.

API Response Types

ApiSuccess

Standard API success response.
interface
Generic interface for API success responses.

ApiSuccessWithPagination

Paginated API success response.
interface
Generic interface for paginated API success responses.

Error Types

See the Error Handling page for complete error type documentation.
class
Base error class for all Cuey API errors. Extends JavaScript’s Error.
union
Union type of all possible error codes.

Type Guards and Utilities

Checking Event Status

Type Narrowing

Type-Safe Payload Handling

Error Handling

Learn about error types and handling.

Advanced Configuration

Learn about configuration options.

Events

See events resource methods.

Crons

See crons resource methods.