@agent-cards/sdk 0.23.28 → 0.24.0
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 +58 -0
- package/PREFLIGHT.md +7 -1
- package/README.md +137 -99
- package/dist/aci.d.ts +52 -22
- package/dist/aci.js +79 -15
- package/dist/adyen-merchant-hosted.generated.d.ts +1 -1
- package/dist/adyen-merchant-hosted.generated.js +459 -21
- package/dist/agent-amount.generated.js +1 -1
- package/dist/agentcard.d.ts +4 -5
- package/dist/agentcard.js +4 -5
- package/dist/amadeus.d.ts +9 -3
- package/dist/amadeus.js +33 -4
- package/dist/api-module.d.ts +1 -7
- package/dist/api-module.js +3 -5
- package/dist/{voice-retry.js → api-retry.js} +1 -1
- package/dist/api-types.d.ts +53 -0
- package/dist/{voice-types.js → api-types.js} +7 -2
- package/dist/approvals.d.ts +166 -0
- package/dist/approvals.js +213 -0
- package/dist/buy.d.ts +20 -101
- package/dist/buy.js +19 -74
- package/dist/capabilities.generated.js +1 -1
- package/dist/card-fields.generated.js +1398 -106
- package/dist/cdp.d.ts +3 -13
- package/dist/cdp.js +231 -175
- package/dist/client.d.ts +104 -22
- package/dist/client.js +215 -40
- package/dist/creditguard.generated.d.ts +4 -4
- package/dist/datatrans.generated.js +22 -1
- package/dist/elavon-converge.generated.js +5 -3
- package/dist/hold.d.ts +8 -0
- package/dist/hold.js +43 -2
- package/dist/hosted-entry.js +2 -0
- package/dist/index.d.ts +9 -15
- package/dist/index.js +6 -10
- package/dist/lifecycle.d.ts +9 -61
- package/dist/lifecycle.js +24 -10
- package/dist/merchant-card-endpoints.generated.d.ts +6 -1
- package/dist/merchant-card-endpoints.generated.js +344 -19
- package/dist/merchant-hosted.d.ts +8 -1
- package/dist/nike-order.d.ts +51 -0
- package/dist/nike-order.js +81 -0
- package/dist/oceanpayment.d.ts +38 -0
- package/dist/oceanpayment.js +70 -0
- package/dist/paddle-tokenex.generated.js +105 -10
- package/dist/payplug.d.ts +41 -0
- package/dist/payplug.js +71 -0
- package/dist/payrails.generated.js +27 -7
- package/dist/pre-claim.d.ts +9 -0
- package/dist/pre-claim.js +86 -7
- package/dist/preflight-capabilities.generated.d.ts +0 -4
- package/dist/preflight-capabilities.generated.js +0 -5
- package/dist/preflight-catalog.json +46 -5
- package/dist/preflight-playwright.d.ts +2 -2
- package/dist/preflight-playwright.js +63 -14
- package/dist/preflight-schemas.json +4 -0
- package/dist/preflight.generated.d.ts +0 -4
- package/dist/preflight.generated.js +24 -1
- package/dist/prepared-processor.d.ts +18 -5
- package/dist/prepared-processor.js +48 -8
- package/dist/primer.generated.js +1418 -120
- package/dist/processout.generated.d.ts +61 -0
- package/dist/processout.generated.js +577 -0
- package/dist/requests.js +1 -1
- package/dist/shiji-sts.generated.js +105 -10
- package/dist/stripe-checkout.generated.js +1405 -234
- package/dist/substitutions.generated.js +460 -26
- package/dist/tap-payments.generated.js +105 -10
- package/dist/twoc2p.generated.js +105 -10
- package/dist/url-masks/bluesnap.d.ts +2 -0
- package/dist/url-masks/bluesnap.js +15 -0
- package/dist/url-masks/oceanpayment.d.ts +2 -0
- package/dist/url-masks/oceanpayment.js +13 -0
- package/dist/url-masks/payplug.d.ts +2 -0
- package/dist/url-masks/payplug.js +13 -0
- package/dist/url-masks/vtex_payments.d.ts +2 -0
- package/dist/url-masks/vtex_payments.js +12 -0
- package/dist/url-masks.generated.d.ts +1 -1
- package/dist/url-masks.generated.js +6 -2
- package/dist/verifone.generated.js +42 -2
- package/dist/vtex-payments.generated.d.ts +127 -0
- package/dist/vtex-payments.generated.js +544 -0
- package/dist/webhooks.d.ts +2 -2
- package/dist/webhooks.js +2 -2
- package/examples/preflight/kernel-native/inventory.json +1 -1
- package/package.json +6 -8
- package/dist/languages.d.ts +0 -23
- package/dist/languages.js +0 -76
- package/dist/voice-pkce.d.ts +0 -49
- package/dist/voice-pkce.js +0 -147
- package/dist/voice-stream.generated.d.ts +0 -118
- package/dist/voice-stream.generated.js +0 -170
- package/dist/voice-types.d.ts +0 -735
- package/dist/voice.d.ts +0 -373
- package/dist/voice.js +0 -815
- package/readme.test.mjs +0 -53
- /package/dist/{voice-retry.d.ts → api-retry.d.ts} +0 -0
package/dist/cdp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VaultClient, type ExecutionMetadata } from './client.js';
|
|
2
2
|
import { type StripeCheckoutOptions } from './stripe-checkout.js';
|
|
3
3
|
import { type HoldOptions } from './hold.js';
|
|
4
|
-
import { type CheckoutController, type LifecycleOptions, type PaymentEndpointGuard
|
|
4
|
+
import { type CheckoutController, type LifecycleOptions, type PaymentEndpointGuard } from './lifecycle.js';
|
|
5
5
|
/**
|
|
6
6
|
* The CORS headers a fulfilled CROSS-ORIGIN request needs, or null when the
|
|
7
7
|
* request is same-origin (or carries no Origin, so no CORS check applies).
|
|
@@ -103,16 +103,6 @@ export interface CdpTargetInfo {
|
|
|
103
103
|
browserContextId?: string;
|
|
104
104
|
}
|
|
105
105
|
export interface AttachOptions extends LifecycleOptions, ExecutionMetadata {
|
|
106
|
-
/**
|
|
107
|
-
* Pause only: the card request pauses and is handed to `onPaused` with the page's request,
|
|
108
|
-
* and this transport creates no authorization. The business creates it (`voice.authorizations.create`
|
|
109
|
-
* with its posture, user and return link, as on its other purchases), reads the result, and calls
|
|
110
|
-
* `controller.resume(result)`; the processor's answer then reaches the page exactly as on the default
|
|
111
|
-
* path. Default false: the transport creates and polls the authorization itself. Raw CDP only.
|
|
112
|
-
*/
|
|
113
|
-
pauseOnly?: boolean;
|
|
114
|
-
/** With `pauseOnly`: the paused request and the controller to resume it on. Required when `pauseOnly` is set. */
|
|
115
|
-
onPaused?: (paused: PausedCheckout) => void | Promise<void>;
|
|
116
106
|
/**
|
|
117
107
|
* Hold mode (CARD-REQUEST-HOLD.md): the first card request pauses and is HELD with nothing created, and
|
|
118
108
|
* `controller.hold` (CardRequestHold) answers it. `controller.release({ amount, currency, pageTotal })` creates the
|
|
@@ -121,8 +111,8 @@ export interface AttachOptions extends LifecycleOptions, ExecutionMetadata {
|
|
|
121
111
|
* fails it. A request held past its processor's own wait is cancelled first. One request is held at a time; every
|
|
122
112
|
* other card request, and every one after a decision, fails at once. Besides the registry's processors, a hold
|
|
123
113
|
* 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
|
|
125
|
-
*
|
|
114
|
+
* cancel-only, except a sandbox placeholder post released with `continuePlaceholder`). Raw CDP only.
|
|
115
|
+
* Service workers are bypassed in this mode unless `serviceWorkers: 'refuse'`.
|
|
126
116
|
*/
|
|
127
117
|
hold?: boolean | HoldOptions;
|
|
128
118
|
/**
|