@agent-score/commerce 2.6.2 → 2.6.4
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/{checkout-C4RD7M0Z.d.ts → checkout-B-Z5_EQP.d.ts} +9 -0
- package/dist/{checkout-CzB9f_jf.d.mts → checkout-BtdHSF_w.d.mts} +9 -0
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/discovery/index.d.mts +1 -1
- package/dist/discovery/index.d.ts +1 -1
- package/dist/identity/express.js +1 -1
- package/dist/identity/express.js.map +1 -1
- package/dist/identity/express.mjs +1 -1
- package/dist/identity/express.mjs.map +1 -1
- package/dist/identity/fastify.js +1 -1
- package/dist/identity/fastify.js.map +1 -1
- package/dist/identity/fastify.mjs +1 -1
- package/dist/identity/fastify.mjs.map +1 -1
- package/dist/identity/hono.js +1 -1
- package/dist/identity/hono.js.map +1 -1
- package/dist/identity/hono.mjs +1 -1
- package/dist/identity/hono.mjs.map +1 -1
- package/dist/identity/nextjs.js +1 -1
- package/dist/identity/nextjs.js.map +1 -1
- package/dist/identity/nextjs.mjs +1 -1
- package/dist/identity/nextjs.mjs.map +1 -1
- package/dist/identity/web.js +1 -1
- package/dist/identity/web.js.map +1 -1
- package/dist/identity/web.mjs +1 -1
- package/dist/identity/web.mjs.map +1 -1
- package/dist/index.d.mts +35 -17
- package/dist/index.d.ts +35 -17
- package/dist/index.js +101 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +99 -18
- package/dist/index.mjs.map +1 -1
- package/dist/{network_kind-BIJM2peR.d.ts → network_kind-BmbWKNud.d.ts} +23 -1
- package/dist/{network_kind-C0EMkdzz.d.mts → network_kind-D2xpo2Fj.d.mts} +23 -1
- package/dist/payment/index.d.mts +27 -20
- package/dist/payment/index.d.ts +27 -20
- package/dist/payment/index.js +35 -0
- package/dist/payment/index.js.map +1 -1
- package/dist/payment/index.mjs +34 -0
- package/dist/payment/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -815,6 +815,7 @@ declare class Checkout {
|
|
|
815
815
|
* agent-supplied `payTo` to this set (anti funds-drain). Empty for pure per-order minting. */
|
|
816
816
|
private readonly x402StaticRecipients;
|
|
817
817
|
readonly zeroSettleCarveOut: boolean;
|
|
818
|
+
readonly credentialPreCheck: boolean;
|
|
818
819
|
readonly gate: CheckoutGateConfig | undefined;
|
|
819
820
|
readonly discoveryExtensions: Record<string, unknown> | undefined;
|
|
820
821
|
readonly resourceInfo: {
|
|
@@ -882,6 +883,14 @@ declare class Checkout {
|
|
|
882
883
|
* resolves to $0. Goods merchants offering free redemption codes set this
|
|
883
884
|
* to `true` so the credential parses without an on-chain settle. */
|
|
884
885
|
zeroSettleCarveOut?: boolean;
|
|
886
|
+
/** Reject payment credentials that fail the cheap wire-shape check (not
|
|
887
|
+
* base64 JSON, not a token-shaped value) BEFORE any merchant hook runs,
|
|
888
|
+
* so junk headers never trigger `preValidate` / pricing / recipient
|
|
889
|
+
* minting / the gate's assess call. Shape only — signature and payTo
|
|
890
|
+
* verification stay on the settle path. Default `true`; set `false` for
|
|
891
|
+
* custom `composeMppx` implementations that accept non-standard
|
|
892
|
+
* credential encodings. */
|
|
893
|
+
credentialPreCheck?: boolean;
|
|
885
894
|
/** Per-request gate config. When set, the gate runs after `preValidate`
|
|
886
895
|
* populates `ctx.state` and before pricing/settle. Denials short-circuit
|
|
887
896
|
* with the gate's body verbatim. */
|
|
@@ -815,6 +815,7 @@ declare class Checkout {
|
|
|
815
815
|
* agent-supplied `payTo` to this set (anti funds-drain). Empty for pure per-order minting. */
|
|
816
816
|
private readonly x402StaticRecipients;
|
|
817
817
|
readonly zeroSettleCarveOut: boolean;
|
|
818
|
+
readonly credentialPreCheck: boolean;
|
|
818
819
|
readonly gate: CheckoutGateConfig | undefined;
|
|
819
820
|
readonly discoveryExtensions: Record<string, unknown> | undefined;
|
|
820
821
|
readonly resourceInfo: {
|
|
@@ -882,6 +883,14 @@ declare class Checkout {
|
|
|
882
883
|
* resolves to $0. Goods merchants offering free redemption codes set this
|
|
883
884
|
* to `true` so the credential parses without an on-chain settle. */
|
|
884
885
|
zeroSettleCarveOut?: boolean;
|
|
886
|
+
/** Reject payment credentials that fail the cheap wire-shape check (not
|
|
887
|
+
* base64 JSON, not a token-shaped value) BEFORE any merchant hook runs,
|
|
888
|
+
* so junk headers never trigger `preValidate` / pricing / recipient
|
|
889
|
+
* minting / the gate's assess call. Shape only — signature and payTo
|
|
890
|
+
* verification stay on the settle path. Default `true`; set `false` for
|
|
891
|
+
* custom `composeMppx` implementations that accept non-standard
|
|
892
|
+
* credential encodings. */
|
|
893
|
+
credentialPreCheck?: boolean;
|
|
885
894
|
/** Per-request gate config. When set, the gate runs after `preValidate`
|
|
886
895
|
* populates `ctx.state` and before pricing/settle. Denials short-circuit
|
|
887
896
|
* with the gate's body verbatim. */
|
package/dist/core.js
CHANGED
|
@@ -227,7 +227,7 @@ function createAgentScoreCore(options) {
|
|
|
227
227
|
} = options;
|
|
228
228
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
229
229
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
230
|
-
const defaultUa = `@agent-score/commerce@${"2.6.
|
|
230
|
+
const defaultUa = `@agent-score/commerce@${"2.6.4"}`;
|
|
231
231
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
232
232
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
233
233
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/core.mjs
CHANGED
|
@@ -209,7 +209,7 @@ function createAgentScoreCore(options) {
|
|
|
209
209
|
} = options;
|
|
210
210
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
211
211
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
212
|
-
const defaultUa = `@agent-score/commerce@${"2.6.
|
|
212
|
+
const defaultUa = `@agent-score/commerce@${"2.6.4"}`;
|
|
213
213
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
214
214
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
215
215
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { R as RailKey, C as CompatibleClients } from '../pricing-KHDqMLd7.mjs';
|
|
2
2
|
export { g as compatibleClientsByRails } from '../pricing-KHDqMLd7.mjs';
|
|
3
|
-
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-
|
|
3
|
+
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-BtdHSF_w.mjs';
|
|
4
4
|
import '../rail_spec-BFZmW9RN.mjs';
|
|
5
5
|
import '../core.mjs';
|
|
6
6
|
import '@agent-score/sdk';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { R as RailKey, C as CompatibleClients } from '../pricing-CytRwhC2.js';
|
|
2
2
|
export { g as compatibleClientsByRails } from '../pricing-CytRwhC2.js';
|
|
3
|
-
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-
|
|
3
|
+
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-B-Z5_EQP.js';
|
|
4
4
|
import '../rail_spec-BFZmW9RN.js';
|
|
5
5
|
import '../core.js';
|
|
6
6
|
import '@agent-score/sdk';
|
package/dist/identity/express.js
CHANGED
|
@@ -920,7 +920,7 @@ function createAgentScoreCore(options) {
|
|
|
920
920
|
} = options;
|
|
921
921
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
922
922
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
923
|
-
const defaultUa = `@agent-score/commerce@${"2.6.
|
|
923
|
+
const defaultUa = `@agent-score/commerce@${"2.6.4"}`;
|
|
924
924
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
925
925
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
926
926
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|