@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
20 lines • 965 B
TypeScript
import { ApiError } from '../api/errors.ts';
/** A >= 400 answer from the Airtable API, with its status and error type. */
export declare class AirtableApiError extends ApiError {
readonly errorType: string | null;
constructor(message: string, status?: number | null, errorType?: string | null);
/**
* Whether the call named something the token cannot see. Airtable
* answers a well-formed id it cannot resolve with a 403, not a 404: the
* permission and the existence checks share one answer so a token cannot
* probe for bases it was not granted.
*/
get notFound(): boolean;
}
/**
* Airtable's error type and message, from any of its body shapes:
* `{"error": {"type", "message"}}`, the same object without a message, or a
* bare `{"error": "NOT_FOUND"}` for an unmatched route or a malformed id.
*/
export declare function errorParts(text: string): [string | null, string | null];
//# sourceMappingURL=errors.d.ts.map