@kevinmichaelchen/distilled-adyen
v0.2.0
Published
Effect 4-native Adyen Checkout API SDK generated by Distilled
Readme
distilled-adyen
An Effect 4-native Adyen Checkout API v72 SDK generated from Adyen's official OpenAPI repository through Distilled's OpenAPI-to-Smithy production pipeline. The generated operation surface remains intentionally limited to Checkout. The spec mirror also pins Terminal, Disputes, Management, Balance Platform, Transfers, and webhook contracts for separately reviewed expansions.
The default endpoint is Adyen's Checkout test environment. Live Checkout URLs
are merchant specific, so set ADYEN_API_URL explicitly for production.
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
import { CredentialsFromEnv } from "@kevinmichaelchen/distilled-adyen";
import { getStoredPaymentMethods } from "@kevinmichaelchen/distilled-adyen/recurring";
const AdyenLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
await Effect.runPromise(
Effect.provide(
getStoredPaymentMethods({ merchantAccount: "merchant" }),
AdyenLive,
),
);ADYEN_API_KEY is stored as an Effect Redacted value and sent only through
the X-API-Key header. The Webhooks export verifies both Adyen's standard
notification-item signature and raw-body HMAC header variants without logging
keys or payloads. Releases use guarded npm trusted publishing from main.
Verification
With the distilled repository checked out beside this repository, run
bun run verify. The gate packs the exact adjacent core, regenerates twice,
checks direct-to-Smithy parity, typechecks, tests, builds, dry-runs the package,
and restores the dependency manifest and lockfile.
