@agent-score/commerce 2.1.1 → 2.2.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.
Files changed (53) hide show
  1. package/dist/challenge/index.d.mts +2 -2
  2. package/dist/challenge/index.d.ts +2 -2
  3. package/dist/challenge/index.js +7 -5
  4. package/dist/challenge/index.js.map +1 -1
  5. package/dist/challenge/index.mjs +7 -5
  6. package/dist/challenge/index.mjs.map +1 -1
  7. package/dist/{checkout-BRw_caGr.d.mts → checkout-CKQE2QpJ.d.mts} +37 -1
  8. package/dist/{checkout-CuSNUJFX.d.ts → checkout-CfgxgPZL.d.ts} +37 -1
  9. package/dist/core.js +4 -3
  10. package/dist/core.js.map +1 -1
  11. package/dist/core.mjs +4 -3
  12. package/dist/core.mjs.map +1 -1
  13. package/dist/discovery/index.d.mts +3 -3
  14. package/dist/discovery/index.d.ts +3 -3
  15. package/dist/identity/express.d.mts +4 -3
  16. package/dist/identity/express.d.ts +4 -3
  17. package/dist/identity/express.js +4 -3
  18. package/dist/identity/express.js.map +1 -1
  19. package/dist/identity/express.mjs +4 -3
  20. package/dist/identity/express.mjs.map +1 -1
  21. package/dist/identity/fastify.d.mts +4 -3
  22. package/dist/identity/fastify.d.ts +4 -3
  23. package/dist/identity/fastify.js +4 -3
  24. package/dist/identity/fastify.js.map +1 -1
  25. package/dist/identity/fastify.mjs +4 -3
  26. package/dist/identity/fastify.mjs.map +1 -1
  27. package/dist/identity/hono.d.mts +4 -3
  28. package/dist/identity/hono.d.ts +4 -3
  29. package/dist/identity/hono.js +4 -3
  30. package/dist/identity/hono.js.map +1 -1
  31. package/dist/identity/hono.mjs +4 -3
  32. package/dist/identity/hono.mjs.map +1 -1
  33. package/dist/identity/nextjs.js +4 -3
  34. package/dist/identity/nextjs.js.map +1 -1
  35. package/dist/identity/nextjs.mjs +4 -3
  36. package/dist/identity/nextjs.mjs.map +1 -1
  37. package/dist/identity/web.js +4 -3
  38. package/dist/identity/web.js.map +1 -1
  39. package/dist/identity/web.mjs +4 -3
  40. package/dist/identity/web.mjs.map +1 -1
  41. package/dist/index.d.mts +3 -3
  42. package/dist/index.d.ts +3 -3
  43. package/dist/index.js +137 -13
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +137 -13
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/{pricing-4n5Ota0D.d.mts → pricing-dSI3ePmE.d.mts} +4 -2
  48. package/dist/{pricing-DHfH3ogG.d.ts → pricing-uFGRNoGl.d.ts} +4 -2
  49. package/dist/stripe-multichain/index.js +2 -1
  50. package/dist/stripe-multichain/index.js.map +1 -1
  51. package/dist/stripe-multichain/index.mjs +2 -1
  52. package/dist/stripe-multichain/index.mjs.map +1 -1
  53. package/package.json +6 -6
@@ -43,8 +43,10 @@ declare function buildHowToPay({ url, retryBodyJson, totalUsd, rails, opTokenPla
43
43
  totalUsd: string | number;
44
44
  /** Per-rail config — each is optional. Pass only the rails you support. */
45
45
  rails: HowToPayRails;
46
- /** Placeholder text for the operator token in commands. Defaults to '<your_opc_token>'. */
47
- opTokenPlaceholder?: string;
46
+ /** Placeholder text for the operator token in commands. Defaults to '<your_opc_token>'.
47
+ * Pass `null` (gateless merchants) to strip the `-H 'X-Operator-Token: ...'` line entirely
48
+ * from each rail command — appropriate when the merchant doesn't run an identity gate. */
49
+ opTokenPlaceholder?: string | null;
48
50
  /** Override max-spend value used in commands. Default: `ceil(totalUsd) + 1`
49
51
  * (for prices ≥ $1) or `totalUsd.toFixed(decimals)` (for sub-dollar prices,
50
52
  * so the command flags reflect the real amount instead of `1.00`). */
@@ -43,8 +43,10 @@ declare function buildHowToPay({ url, retryBodyJson, totalUsd, rails, opTokenPla
43
43
  totalUsd: string | number;
44
44
  /** Per-rail config — each is optional. Pass only the rails you support. */
45
45
  rails: HowToPayRails;
46
- /** Placeholder text for the operator token in commands. Defaults to '<your_opc_token>'. */
47
- opTokenPlaceholder?: string;
46
+ /** Placeholder text for the operator token in commands. Defaults to '<your_opc_token>'.
47
+ * Pass `null` (gateless merchants) to strip the `-H 'X-Operator-Token: ...'` line entirely
48
+ * from each rail command — appropriate when the merchant doesn't run an identity gate. */
49
+ opTokenPlaceholder?: string | null;
48
50
  /** Override max-spend value used in commands. Default: `ceil(totalUsd) + 1`
49
51
  * (for prices ≥ $1) or `totalUsd.toFixed(decimals)` (for sub-dollar prices,
50
52
  * so the command flags reflect the real amount instead of `1.00`). */
@@ -19434,11 +19434,12 @@ function toClient(method, options) {
19434
19434
  };
19435
19435
  }
19436
19436
  function toServer(method, options) {
19437
- const { authorize, defaults, html, request, respond, stableBinding, transport, verify: verify3 } = options;
19437
+ const { authorize, defaults, extensions, html, request, respond, stableBinding, transport, verify: verify3 } = options;
19438
19438
  return {
19439
19439
  ...method,
19440
19440
  authorize,
19441
19441
  defaults,
19442
+ extensions,
19442
19443
  html,
19443
19444
  request,
19444
19445
  respond,