Component evidence
A typed HTTP client for interacting with the ActiveTrail marketing API. Use this to manage email campaigns and subscriber lists programmatically.
// Source: https://github.com/corsairdev/corsair | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { ApiRequestOptions, OpenAPIConfig } from 'corsair/http';
import { ApiError, request } from 'corsair/http';
import type { ActiveTrailMethod } from './endpoints/routes';
export class ActiveTrailAPIError extends Error {
public readonly status?: number;
public readonly statusText?: string;
public readonly body?: unknown;
constructor(message: string, options?: { cause?: Error }) {
super(message, options);
this.name = 'ActiveTrailAPIError';
if (options?.cause instanceof ApiError) {
this.status = options.cause.status;
this.statusText = options.cause.statusText;
... (truncated -- full source via MCP)