@agent-cards/sdk 0.23.19 → 0.23.21
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.
- package/CHANGELOG.md +61 -2
- package/PREFLIGHT.md +4 -0
- package/README.md +175 -7
- package/dist/amadeus.d.ts +4 -2
- package/dist/amadeus.js +16 -3
- package/dist/buy.d.ts +84 -2
- package/dist/buy.js +16 -1
- package/dist/card-endpoint-facts.d.ts +2 -1
- package/dist/card-endpoint-facts.js +18 -9
- package/dist/card-endpoint.d.ts +20 -4
- package/dist/card-endpoint.js +38 -4
- package/dist/card-fields.generated.js +1444 -51
- package/dist/cdp.d.ts +29 -0
- package/dist/cdp.js +444 -24
- package/dist/client.d.ts +134 -7
- package/dist/client.js +350 -25
- package/dist/comgate.d.ts +50 -0
- package/dist/comgate.js +80 -0
- package/dist/cybersource-secure-acceptance.generated.d.ts +1 -1
- package/dist/eprotect.generated.d.ts +1 -1
- package/dist/gmo.generated.js +7 -3
- package/dist/hipay.generated.d.ts +56 -0
- package/dist/hipay.generated.js +392 -0
- package/dist/hold.d.ts +180 -0
- package/dist/hold.js +270 -0
- package/dist/hosted-entry.d.ts +4 -0
- package/dist/hosted-entry.js +32 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -0
- package/dist/lifecycle.d.ts +10 -0
- package/dist/lifecycle.js +21 -0
- package/dist/merchant-card-endpoints.generated.js +102 -11
- package/dist/paddle-tokenex.generated.js +7 -3
- package/dist/paddle-vgs.generated.d.ts +3 -2
- package/dist/paddle-vgs.generated.js +9 -5
- package/dist/payrails.generated.js +7 -3
- package/dist/pre-claim.d.ts +20 -0
- package/dist/pre-claim.js +202 -22
- package/dist/preflight-catalog.json +58 -0
- package/dist/preflight-schemas.json +4 -0
- package/dist/preflight.generated.js +26 -2
- package/dist/prepared-processor.d.ts +6 -2
- package/dist/prepared-processor.js +18 -2
- package/dist/primer.generated.js +1487 -94
- package/dist/przelewy24.d.ts +47 -0
- package/dist/przelewy24.js +88 -0
- package/dist/quickpay.d.ts +44 -0
- package/dist/quickpay.js +65 -0
- package/dist/registry.d.ts +6 -5
- package/dist/registry.js +27 -7
- package/dist/shiji-sts.generated.js +7 -3
- package/dist/stripe-checkout.generated.js +744 -13
- package/dist/tokenex-iframe.d.ts +93 -0
- package/dist/tokenex-iframe.generated.d.ts +81 -0
- package/dist/tokenex-iframe.generated.js +403 -0
- package/dist/tokenex-iframe.js +195 -0
- package/dist/transbank.d.ts +45 -0
- package/dist/transbank.js +73 -0
- package/dist/twoc2p.d.ts +54 -0
- package/dist/twoc2p.generated.d.ts +33 -0
- package/dist/twoc2p.generated.js +1149 -0
- package/dist/twoc2p.js +85 -0
- package/dist/voice.d.ts +16 -13
- package/dist/voice.js +13 -10
- package/examples/preflight/kernel-native/inventory.json +1 -1
- package/package.json +3 -3
package/dist/cdp.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type VaultClient, type ExecutionMetadata } from './client.js';
|
|
2
2
|
import { type StripeCheckoutOptions } from './stripe-checkout.js';
|
|
3
|
+
import { type HoldOptions } from './hold.js';
|
|
3
4
|
import { type CheckoutController, type LifecycleOptions, type PaymentEndpointGuard, type PausedCheckout } from './lifecycle.js';
|
|
4
5
|
/**
|
|
5
6
|
* The CORS headers a fulfilled CROSS-ORIGIN request needs, or null when the
|
|
@@ -112,6 +113,34 @@ export interface AttachOptions extends LifecycleOptions, ExecutionMetadata {
|
|
|
112
113
|
pauseOnly?: boolean;
|
|
113
114
|
/** With `pauseOnly`: the paused request and the controller to resume it on. Required when `pauseOnly` is set. */
|
|
114
115
|
onPaused?: (paused: PausedCheckout) => void | Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Hold mode (CARD-REQUEST-HOLD.md): the first card request pauses and is HELD with nothing created, and
|
|
118
|
+
* `controller.hold` (CardRequestHold) answers it. `controller.release({ amount, currency, pageTotal })` creates the
|
|
119
|
+
* authorization only then, at the total the person confirmed, and only when the page shows it; a live client
|
|
120
|
+
* answers the page with the device's replay, a sandbox client never sends the request on. `controller.hold.cancel()`
|
|
121
|
+
* fails it. A request held past its processor's own wait is cancelled first. One request is held at a time; every
|
|
122
|
+
* other card request, and every one after a decision, fails at once. Besides the registry's processors, a hold
|
|
123
|
+
* catches Bolt's sealed tokenizer and, with `placeholderNumbers`, any request carrying the placeholder card (both
|
|
124
|
+
* cancel-only, except a sandbox placeholder post released with `continuePlaceholder`). Raw CDP only; not with
|
|
125
|
+
* `pauseOnly`. Service workers are bypassed in this mode unless `serviceWorkers: 'refuse'`.
|
|
126
|
+
*/
|
|
127
|
+
hold?: boolean | HoldOptions;
|
|
128
|
+
/**
|
|
129
|
+
* A site service worker in the merchant's browser context. `refuse` (default): the attachment refuses the context,
|
|
130
|
+
* since a worker can send a card request outside the frames' interception. `bypass` (default in hold mode): every
|
|
131
|
+
* armed frame sends its requests past service workers (Network.setBypassServiceWorker), so the worker is accepted.
|
|
132
|
+
*/
|
|
133
|
+
serviceWorkers?: 'refuse' | 'bypass';
|
|
134
|
+
/**
|
|
135
|
+
* A shared worker in the merchant's browser context (chewy.com runs three from blob: URLs). Its own requests pause
|
|
136
|
+
* nowhere: Fetch reaches no shared worker. `refuse` (default): the attachment refuses the context. `accept`
|
|
137
|
+
* (default in hold mode): the worker is accepted unwatched and a `shared_worker_unwatched` event names it; nothing
|
|
138
|
+
* it sends can be approved, and the browser only ever holds the placeholder card. Kernel answers an attach to such
|
|
139
|
+
* a worker with "Not allowed" and closes the connection, so `accept` never attaches. `observe`: the worker is
|
|
140
|
+
* attached and its Network reports read; a card request it sends ends the checkout and any hold, with nothing
|
|
141
|
+
* approved (a browser that allows the attach only).
|
|
142
|
+
*/
|
|
143
|
+
sharedWorkers?: 'refuse' | 'accept' | 'observe';
|
|
115
144
|
/** Explicit native hosted Stripe Checkout TEST integration; requires an Autopilot grant. */
|
|
116
145
|
stripeCheckout?: StripeCheckoutOptions;
|
|
117
146
|
/** Fallback when the browser cannot expose its top-level origin. Never an amount/payee authority. */
|