Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type * as paymentcryptographydata from "@distilled.cloud/aws/payment-cryptography-data";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Key } from "./Key.ts";
export interface GenerateAuthRequestCryptogramRequest extends Omit<
paymentcryptographydata.GenerateAuthRequestCryptogramInput,
"KeyIdentifier"
> {}
/**
* Runtime binding for `payment-cryptography:GenerateAuthRequestCryptogram` —
* generates an Authorization Request Cryptogram (ARQC) for AS2805 terminal
* transactions under an EMV issuer master {@link Key}. Provide
* `GenerateAuthRequestCryptogramHttp` on the Function to satisfy this
* service.
* @binding
* @section EMV Cryptograms
* @example Generate an ARQC for transaction data
* ```typescript
* // init
* const generateArqc =
* yield* PaymentCryptography.GenerateAuthRequestCryptogram(issuerMasterKey);
*
* // runtime
* const generated = yield* generateArqc({
* TransactionData: transactionDataHex,
* MajorKeyDerivationMode: "EMV_OPTION_A",
* SessionKeyDerivationAttributes: {
* EmvCommon: { PrimaryAccountNumber: pan, PanSequenceNumber: "00", ApplicationTransactionCounter: "0001" },
* },
* });
* ```
*/
export interface GenerateAuthRequestCryptogram extends Binding.Service<
GenerateAuthRequestCryptogram,
"AWS.PaymentCryptography.GenerateAuthRequestCryptogram",
<K extends Key>(
key: K,
) => Effect.Effect<
(
request: GenerateAuthRequestCryptogramRequest,
) => Effect.Effect<
paymentcryptographydata.GenerateAuthRequestCryptogramOutput,
paymentcryptographydata.GenerateAuthRequestCryptogramError
>
>
> {}
export const GenerateAuthRequestCryptogram =
Binding.Service<GenerateAuthRequestCryptogram>(
"AWS.PaymentCryptography.GenerateAuthRequestCryptogram",
);