SDK

Destinations

A destination is where results are pushed once a job succeeds (for example a signed webhook). lirovo.destinations exposes create and list.

destinations.create(input)#

Creates a destination and resolves to a Destination. Input is a CreateDestinationInput.

namerequired
string

Human-readable name for the destination.

typerequired
DestinationCreate["type"]

The destination kind. The accepted values come from the API contract (the DestinationCreate wire type).

configrequired
Record<string, unknown>

Type-specific configuration (for example the webhook URL).

ts
const destination = await lirovo.destinations.create({
  name: "my-webhook",
  type: "webhook",
  config: { url: "https://example.com/lirovo-hook" },
});
// => Destination { id, name, ... }

destinations.list(params?)#

Lists destinations and resolves to a DestinationList. Accepts optional limit and cursor for pagination.

ts
const page = await lirovo.destinations.list({ limit: 20 });
// => DestinationList { data, ... }