@visa/cli 4.1.0-rc.60 → 4.1.0-rc.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { type CardMandateFacts } from './mandate/card-mandate.js';
7
7
  import { MandateLedger } from './mandate/mandate-ledger.js';
8
8
  import { writeReceipt as realWriteReceipt } from './receipt.js';
9
9
  import { reportVicOutcome as realReportVicOutcome, type VicConfirmationReport } from './vic-confirmation.js';
10
- import type { Contact } from './types.js';
10
+ import type { Contact, OtpResolver } from './types.js';
11
11
  /**
12
12
  * A card-mandate draw failed transiently (retryable) rather than definitively.
13
13
  * Gateway 5xx, "server cryptogram not completed / try again", and network
@@ -186,6 +186,11 @@ export type CliEngineDeps = {
186
186
  * passkey approval because a budget token cannot act as draw authority.
187
187
  */
188
188
  cardMandateRegister?: CardMandateRegisterSeam;
189
+ /**
190
+ * Canonical mailbox OTP reader supplied by the runtime. The checkout engine
191
+ * owns no mailbox credential and never imports an email provider package.
192
+ */
193
+ resolveEmailOtp?: OtpResolver;
189
194
  };
190
195
  export declare function createCliCheckoutEngine(deps?: CliEngineDeps): {
191
196
  startCardMandate(input: CliStartMandateInput): Promise<CliMandateFacts>;
@@ -598,6 +598,7 @@ export function createCliCheckoutEngine(deps = {}) {
598
598
  instrument,
599
599
  contact: session.contact,
600
600
  mode,
601
+ ...(deps.resolveEmailOtp ? { resolveEmailOtp: deps.resolveEmailOtp } : {}),
601
602
  }, store);
602
603
  // Report the observed submit outcome to VIC for the consumed intent
603
604
  // (APPROVED/DECLINED). Only definitive submit answers post. Mirrors