@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.
Files changed (66) hide show
  1. package/CHANGELOG.md +61 -2
  2. package/PREFLIGHT.md +4 -0
  3. package/README.md +175 -7
  4. package/dist/amadeus.d.ts +4 -2
  5. package/dist/amadeus.js +16 -3
  6. package/dist/buy.d.ts +84 -2
  7. package/dist/buy.js +16 -1
  8. package/dist/card-endpoint-facts.d.ts +2 -1
  9. package/dist/card-endpoint-facts.js +18 -9
  10. package/dist/card-endpoint.d.ts +20 -4
  11. package/dist/card-endpoint.js +38 -4
  12. package/dist/card-fields.generated.js +1444 -51
  13. package/dist/cdp.d.ts +29 -0
  14. package/dist/cdp.js +444 -24
  15. package/dist/client.d.ts +134 -7
  16. package/dist/client.js +350 -25
  17. package/dist/comgate.d.ts +50 -0
  18. package/dist/comgate.js +80 -0
  19. package/dist/cybersource-secure-acceptance.generated.d.ts +1 -1
  20. package/dist/eprotect.generated.d.ts +1 -1
  21. package/dist/gmo.generated.js +7 -3
  22. package/dist/hipay.generated.d.ts +56 -0
  23. package/dist/hipay.generated.js +392 -0
  24. package/dist/hold.d.ts +180 -0
  25. package/dist/hold.js +270 -0
  26. package/dist/hosted-entry.d.ts +4 -0
  27. package/dist/hosted-entry.js +32 -0
  28. package/dist/index.d.ts +4 -1
  29. package/dist/index.js +1 -0
  30. package/dist/lifecycle.d.ts +10 -0
  31. package/dist/lifecycle.js +21 -0
  32. package/dist/merchant-card-endpoints.generated.js +102 -11
  33. package/dist/paddle-tokenex.generated.js +7 -3
  34. package/dist/paddle-vgs.generated.d.ts +3 -2
  35. package/dist/paddle-vgs.generated.js +9 -5
  36. package/dist/payrails.generated.js +7 -3
  37. package/dist/pre-claim.d.ts +20 -0
  38. package/dist/pre-claim.js +202 -22
  39. package/dist/preflight-catalog.json +58 -0
  40. package/dist/preflight-schemas.json +4 -0
  41. package/dist/preflight.generated.js +26 -2
  42. package/dist/prepared-processor.d.ts +6 -2
  43. package/dist/prepared-processor.js +18 -2
  44. package/dist/primer.generated.js +1487 -94
  45. package/dist/przelewy24.d.ts +47 -0
  46. package/dist/przelewy24.js +88 -0
  47. package/dist/quickpay.d.ts +44 -0
  48. package/dist/quickpay.js +65 -0
  49. package/dist/registry.d.ts +6 -5
  50. package/dist/registry.js +27 -7
  51. package/dist/shiji-sts.generated.js +7 -3
  52. package/dist/stripe-checkout.generated.js +744 -13
  53. package/dist/tokenex-iframe.d.ts +93 -0
  54. package/dist/tokenex-iframe.generated.d.ts +81 -0
  55. package/dist/tokenex-iframe.generated.js +403 -0
  56. package/dist/tokenex-iframe.js +195 -0
  57. package/dist/transbank.d.ts +45 -0
  58. package/dist/transbank.js +73 -0
  59. package/dist/twoc2p.d.ts +54 -0
  60. package/dist/twoc2p.generated.d.ts +33 -0
  61. package/dist/twoc2p.generated.js +1149 -0
  62. package/dist/twoc2p.js +85 -0
  63. package/dist/voice.d.ts +16 -13
  64. package/dist/voice.js +13 -10
  65. package/examples/preflight/kernel-native/inventory.json +1 -1
  66. 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. */