@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.
- package/dist/challenge/index.d.mts +2 -2
- package/dist/challenge/index.d.ts +2 -2
- package/dist/challenge/index.js +7 -5
- package/dist/challenge/index.js.map +1 -1
- package/dist/challenge/index.mjs +7 -5
- package/dist/challenge/index.mjs.map +1 -1
- package/dist/{checkout-BRw_caGr.d.mts → checkout-CKQE2QpJ.d.mts} +37 -1
- package/dist/{checkout-CuSNUJFX.d.ts → checkout-CfgxgPZL.d.ts} +37 -1
- package/dist/core.js +4 -3
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +4 -3
- package/dist/core.mjs.map +1 -1
- package/dist/discovery/index.d.mts +3 -3
- package/dist/discovery/index.d.ts +3 -3
- package/dist/identity/express.d.mts +4 -3
- package/dist/identity/express.d.ts +4 -3
- package/dist/identity/express.js +4 -3
- package/dist/identity/express.js.map +1 -1
- package/dist/identity/express.mjs +4 -3
- package/dist/identity/express.mjs.map +1 -1
- package/dist/identity/fastify.d.mts +4 -3
- package/dist/identity/fastify.d.ts +4 -3
- package/dist/identity/fastify.js +4 -3
- package/dist/identity/fastify.js.map +1 -1
- package/dist/identity/fastify.mjs +4 -3
- package/dist/identity/fastify.mjs.map +1 -1
- package/dist/identity/hono.d.mts +4 -3
- package/dist/identity/hono.d.ts +4 -3
- package/dist/identity/hono.js +4 -3
- package/dist/identity/hono.js.map +1 -1
- package/dist/identity/hono.mjs +4 -3
- package/dist/identity/hono.mjs.map +1 -1
- package/dist/identity/nextjs.js +4 -3
- package/dist/identity/nextjs.js.map +1 -1
- package/dist/identity/nextjs.mjs +4 -3
- package/dist/identity/nextjs.mjs.map +1 -1
- package/dist/identity/web.js +4 -3
- package/dist/identity/web.js.map +1 -1
- package/dist/identity/web.mjs +4 -3
- package/dist/identity/web.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +137 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +137 -13
- package/dist/index.mjs.map +1 -1
- package/dist/{pricing-4n5Ota0D.d.mts → pricing-dSI3ePmE.d.mts} +4 -2
- package/dist/{pricing-DHfH3ogG.d.ts → pricing-uFGRNoGl.d.ts} +4 -2
- package/dist/stripe-multichain/index.js +2 -1
- package/dist/stripe-multichain/index.js.map +1 -1
- package/dist/stripe-multichain/index.mjs +2 -1
- package/dist/stripe-multichain/index.mjs.map +1 -1
- 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
|
-
|
|
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
|
-
|
|
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,
|