/** * @distilled.cloud/unkey -- Unkey SDK for Effect. * * `./services` is generated by `scripts/generate.ts` from the Smithy model that * `scripts/convert.ts` converts from the OpenAPI spec. Everything else in this * folder is hand-written. * * @example * ```ts * import * as Unkey from "@distilled.cloud/unkey"; * * const keys = yield* Unkey.Services.unkey.apisListKeys({ apiId: "api_123" }); * ``` */ export * from "./credentials.ts"; export * from "./errors.ts"; export * as T from "./traits.ts"; export { UnkeyProtocol, type UnkeyOpError, type UnkeyOpContext } from "./protocol.ts"; export { paginateCursor } from "./pagination.ts"; export * as Retry from "./retry.ts"; export * as Services from "./services/index.ts"; // Operations (and their request/response types) are importable straight off // the package root. The service-local typed error classes shadow the // same-named shared ones from ./errors.ts -- the ops actually raise the // service-local classes. export * from "./services/unkey.ts"; export { BadRequest, Conflict, Forbidden, NotFound, UnprocessableEntity, } from "./services/unkey.ts";