The best way to control Claude Code, Codex and more from any computer or phone

main
ts 18 lines 841 Bytes
Raw
1 import * as paymentcryptographydata from "@distilled.cloud/aws/payment-cryptography-data";
2 import * as Layer from "effect/Layer";
3 import { makePaymentCryptographyKeyHttpBinding } from "./BindingHttp.ts";
4 import { GenerateCardValidationData } from "./GenerateCardValidationData.ts";
5
6 /**
7 * HTTP implementation of {@link GenerateCardValidationData} — grants the
8 * host Function `payment-cryptography:GenerateCardValidationData` on the CVK
9 * and calls the Payment Cryptography Data API at runtime.
10 */
11 export const GenerateCardValidationDataHttp = Layer.effect(
12 GenerateCardValidationData,
13 makePaymentCryptographyKeyHttpBinding({
14 tag: "AWS.PaymentCryptography.GenerateCardValidationData",
15 operation: paymentcryptographydata.generateCardValidationData,
16 actions: ["payment-cryptography:GenerateCardValidationData"],
17 }),
18 );