@agent-score/commerce 2.7.4 → 2.7.6

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 (57) hide show
  1. package/dist/challenge/index.d.mts +3 -3
  2. package/dist/challenge/index.d.ts +3 -3
  3. package/dist/{checkout-DKq9gV3G.d.mts → checkout-B0jIzAEo.d.mts} +5 -5
  4. package/dist/{checkout-DW7GgRrl.d.ts → checkout-BRdpPSnc.d.ts} +5 -5
  5. package/dist/core.js +1 -1
  6. package/dist/core.mjs +1 -1
  7. package/dist/discovery/index.d.mts +6 -6
  8. package/dist/discovery/index.d.ts +6 -6
  9. package/dist/{gate-GCXy4FHI.d.mts → gate-BMUMi-P0.d.mts} +2 -2
  10. package/dist/{gate-D2RP6bZg.d.ts → gate-Bhbi5zvG.d.ts} +2 -2
  11. package/dist/identity/express.d.mts +2 -2
  12. package/dist/identity/express.d.ts +2 -2
  13. package/dist/identity/express.js +1 -1
  14. package/dist/identity/express.mjs +1 -1
  15. package/dist/identity/fastify.d.mts +2 -2
  16. package/dist/identity/fastify.d.ts +2 -2
  17. package/dist/identity/fastify.js +1 -1
  18. package/dist/identity/fastify.mjs +1 -1
  19. package/dist/identity/hono.d.mts +2 -2
  20. package/dist/identity/hono.d.ts +2 -2
  21. package/dist/identity/hono.js +1 -1
  22. package/dist/identity/hono.mjs +1 -1
  23. package/dist/identity/nextjs.d.mts +2 -2
  24. package/dist/identity/nextjs.d.ts +2 -2
  25. package/dist/identity/nextjs.js +1 -1
  26. package/dist/identity/nextjs.mjs +1 -1
  27. package/dist/identity/web.d.mts +2 -2
  28. package/dist/identity/web.d.ts +2 -2
  29. package/dist/identity/web.js +1 -1
  30. package/dist/identity/web.mjs +1 -1
  31. package/dist/index.d.mts +11 -11
  32. package/dist/index.d.ts +11 -11
  33. package/dist/index.js +14 -18
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +14 -18
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/{network_kind-toxNABqw.d.ts → network_kind-C3NA2wX2.d.ts} +2 -2
  38. package/dist/{network_kind-CLdLbqU5.d.mts → network_kind-DmHbQbOb.d.mts} +2 -2
  39. package/dist/payment/index.d.mts +27 -27
  40. package/dist/payment/index.d.ts +27 -27
  41. package/dist/payment/index.js +13 -17
  42. package/dist/payment/index.js.map +1 -1
  43. package/dist/payment/index.mjs +12 -16
  44. package/dist/payment/index.mjs.map +1 -1
  45. package/dist/{pricing-Dx3F1VAv.d.ts → pricing-DUYE2hIy.d.ts} +1 -1
  46. package/dist/{pricing-sfv3CPiY.d.mts → pricing-Wqbq6xIR.d.mts} +1 -1
  47. package/dist/{rail_spec-DGdb4Gnd.d.mts → rail_spec-C-jTQ7g6.d.mts} +1 -1
  48. package/dist/{rail_spec-DGdb4Gnd.d.ts → rail_spec-C-jTQ7g6.d.ts} +1 -1
  49. package/dist/stripe-multichain/index.js +2 -2
  50. package/dist/stripe-multichain/index.js.map +1 -1
  51. package/dist/stripe-multichain/index.mjs +2 -2
  52. package/dist/stripe-multichain/index.mjs.map +1 -1
  53. package/dist/{types-D1slMt0H.d.mts → types-1Mr5ZDas.d.mts} +1 -1
  54. package/dist/{types-D1slMt0H.d.ts → types-1Mr5ZDas.d.ts} +1 -1
  55. package/dist/{x402_server-Ciz2mls2.d.mts → x402_server-hgQzWQwB.d.mts} +1 -1
  56. package/dist/{x402_server-Ciz2mls2.d.ts → x402_server-hgQzWQwB.d.ts} +1 -1
  57. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
- import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-DGdb4Gnd.mjs';
2
- import { A as AgentInstructions, P as PricingBlock } from '../pricing-sfv3CPiY.mjs';
3
- export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-sfv3CPiY.mjs';
1
+ import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-C-jTQ7g6.mjs';
2
+ import { A as AgentInstructions, P as PricingBlock } from '../pricing-Wqbq6xIR.mjs';
3
+ export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-Wqbq6xIR.mjs';
4
4
  import { AgentMemoryHint } from '../core.mjs';
5
5
  export { buildAgentMemoryHint } from '../core.mjs';
6
6
  import { p as paymentRequiredHeader } from '../wwwauthenticate-Dgm-_af9.mjs';
@@ -1,6 +1,6 @@
1
- import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-DGdb4Gnd.js';
2
- import { A as AgentInstructions, P as PricingBlock } from '../pricing-Dx3F1VAv.js';
3
- export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-Dx3F1VAv.js';
1
+ import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-C-jTQ7g6.js';
2
+ import { A as AgentInstructions, P as PricingBlock } from '../pricing-DUYE2hIy.js';
3
+ export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-DUYE2hIy.js';
4
4
  import { AgentMemoryHint } from '../core.js';
5
5
  export { buildAgentMemoryHint } from '../core.js';
6
6
  import { p as paymentRequiredHeader } from '../wwwauthenticate-Dgm-_af9.js';
@@ -1,8 +1,8 @@
1
- import { T as TempoRailSpec, S as SolanaMppRailSpec, c as TempoSessionRailSpec, b as StripeRailSpec, X as X402BaseRailSpec } from './rail_spec-DGdb4Gnd.mjs';
2
- import { P as PricingBlock, R as RailKey } from './pricing-sfv3CPiY.mjs';
1
+ import { T as TempoRailSpec, S as SolanaMppRailSpec, a as TempoSessionRailSpec, b as StripeRailSpec, X as X402BaseRailSpec } from './rail_spec-C-jTQ7g6.mjs';
2
+ import { P as PricingBlock, R as RailKey } from './pricing-Wqbq6xIR.mjs';
3
3
  import { CreateSessionOnMissing, AgentScoreCoreOptions, DenialReason } from './core.mjs';
4
- import { a as X402Server } from './x402_server-Ciz2mls2.mjs';
5
- import { T as TrustLevel } from './types-D1slMt0H.mjs';
4
+ import { X as X402Server } from './x402_server-hgQzWQwB.mjs';
5
+ import { T as TrustLevel } from './types-1Mr5ZDas.mjs';
6
6
 
7
7
  /**
8
8
  * UCP (Universal Commerce Protocol) profile builder.
@@ -1085,4 +1085,4 @@ interface MountUcpRoutesOptions {
1085
1085
  jwksPath?: string;
1086
1086
  }
1087
1087
 
1088
- export { AGENTSCORE_UCP_CAPABILITY as A, validationResponseFastify as B, Checkout as C, type DiscoveryProbeConfig as D, validationResponseHono as E, validationResponseNextjs as F, type GateDenial as G, validationResponseWeb as H, type IsCachedAddressFn as I, x402PaymentHandler as J, type MountUcpRoutesOptions as M, type OnSettledFn as O, type PreValidateFn as P, type RecipientsFn as R, type SettleOutcome as S, type UCPCapabilityBinding as U, type AgentScoreGatePolicy as a, type CheckoutContext as b, type CheckoutGateConfig as c, type CheckoutRailSpec as d, type CheckoutRequest as e, type CheckoutResult as f, type ComposeMppxFn as g, type MppxComposeOutcome as h, type PricingFn as i, type PricingResult as j, type ReferenceIdFn as k, type RunGateFn as l, type UCPPaymentHandlerBinding as m, type UCPProfile as n, type UCPProfileBody as o, type UCPServiceBinding as p, UCPSigningKey as q, buildAipTrustedIssuers as r, buildUCPProfile as s, getIdentityStatus as t, makeMppxComposeHook as u, mppPaymentHandler as v, pricingResult as w, stripeSptPaymentHandler as x, validationEnvelope as y, validationResponseExpress as z };
1088
+ export { type AgentScoreGatePolicy as A, validationResponseFastify as B, Checkout as C, type DiscoveryProbeConfig as D, validationResponseHono as E, validationResponseNextjs as F, type GateDenial as G, validationResponseWeb as H, type IsCachedAddressFn as I, x402PaymentHandler as J, type MountUcpRoutesOptions as M, type OnSettledFn as O, type PreValidateFn as P, type RecipientsFn as R, type SettleOutcome as S, type UCPServiceBinding as U, UCPSigningKey as a, type UCPProfile as b, AGENTSCORE_UCP_CAPABILITY as c, type CheckoutContext as d, type CheckoutGateConfig as e, type CheckoutRailSpec as f, type CheckoutRequest as g, type CheckoutResult as h, type ComposeMppxFn as i, type MppxComposeOutcome as j, type PricingFn as k, type PricingResult as l, type ReferenceIdFn as m, type RunGateFn as n, type UCPCapabilityBinding as o, type UCPPaymentHandlerBinding as p, type UCPProfileBody as q, buildAipTrustedIssuers as r, buildUCPProfile as s, getIdentityStatus as t, makeMppxComposeHook as u, mppPaymentHandler as v, pricingResult as w, stripeSptPaymentHandler as x, validationEnvelope as y, validationResponseExpress as z };
@@ -1,8 +1,8 @@
1
- import { T as TempoRailSpec, S as SolanaMppRailSpec, c as TempoSessionRailSpec, b as StripeRailSpec, X as X402BaseRailSpec } from './rail_spec-DGdb4Gnd.js';
2
- import { P as PricingBlock, R as RailKey } from './pricing-Dx3F1VAv.js';
1
+ import { T as TempoRailSpec, S as SolanaMppRailSpec, a as TempoSessionRailSpec, b as StripeRailSpec, X as X402BaseRailSpec } from './rail_spec-C-jTQ7g6.js';
2
+ import { P as PricingBlock, R as RailKey } from './pricing-DUYE2hIy.js';
3
3
  import { CreateSessionOnMissing, AgentScoreCoreOptions, DenialReason } from './core.js';
4
- import { a as X402Server } from './x402_server-Ciz2mls2.js';
5
- import { T as TrustLevel } from './types-D1slMt0H.js';
4
+ import { X as X402Server } from './x402_server-hgQzWQwB.js';
5
+ import { T as TrustLevel } from './types-1Mr5ZDas.js';
6
6
 
7
7
  /**
8
8
  * UCP (Universal Commerce Protocol) profile builder.
@@ -1085,4 +1085,4 @@ interface MountUcpRoutesOptions {
1085
1085
  jwksPath?: string;
1086
1086
  }
1087
1087
 
1088
- export { AGENTSCORE_UCP_CAPABILITY as A, validationResponseFastify as B, Checkout as C, type DiscoveryProbeConfig as D, validationResponseHono as E, validationResponseNextjs as F, type GateDenial as G, validationResponseWeb as H, type IsCachedAddressFn as I, x402PaymentHandler as J, type MountUcpRoutesOptions as M, type OnSettledFn as O, type PreValidateFn as P, type RecipientsFn as R, type SettleOutcome as S, type UCPCapabilityBinding as U, type AgentScoreGatePolicy as a, type CheckoutContext as b, type CheckoutGateConfig as c, type CheckoutRailSpec as d, type CheckoutRequest as e, type CheckoutResult as f, type ComposeMppxFn as g, type MppxComposeOutcome as h, type PricingFn as i, type PricingResult as j, type ReferenceIdFn as k, type RunGateFn as l, type UCPPaymentHandlerBinding as m, type UCPProfile as n, type UCPProfileBody as o, type UCPServiceBinding as p, UCPSigningKey as q, buildAipTrustedIssuers as r, buildUCPProfile as s, getIdentityStatus as t, makeMppxComposeHook as u, mppPaymentHandler as v, pricingResult as w, stripeSptPaymentHandler as x, validationEnvelope as y, validationResponseExpress as z };
1088
+ export { type AgentScoreGatePolicy as A, validationResponseFastify as B, Checkout as C, type DiscoveryProbeConfig as D, validationResponseHono as E, validationResponseNextjs as F, type GateDenial as G, validationResponseWeb as H, type IsCachedAddressFn as I, x402PaymentHandler as J, type MountUcpRoutesOptions as M, type OnSettledFn as O, type PreValidateFn as P, type RecipientsFn as R, type SettleOutcome as S, type UCPServiceBinding as U, UCPSigningKey as a, type UCPProfile as b, AGENTSCORE_UCP_CAPABILITY as c, type CheckoutContext as d, type CheckoutGateConfig as e, type CheckoutRailSpec as f, type CheckoutRequest as g, type CheckoutResult as h, type ComposeMppxFn as i, type MppxComposeOutcome as j, type PricingFn as k, type PricingResult as l, type ReferenceIdFn as m, type RunGateFn as n, type UCPCapabilityBinding as o, type UCPPaymentHandlerBinding as p, type UCPProfileBody as q, buildAipTrustedIssuers as r, buildUCPProfile as s, getIdentityStatus as t, makeMppxComposeHook as u, mppPaymentHandler as v, pricingResult as w, stripeSptPaymentHandler as x, validationEnvelope as y, validationResponseExpress as z };
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.7.4"}`;
230
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
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.7.4"}`;
212
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
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,12 +1,12 @@
1
- import { R as RailKey, C as CompatibleClients } from '../pricing-sfv3CPiY.mjs';
2
- export { g as compatibleClientsByRails } from '../pricing-sfv3CPiY.mjs';
3
- import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-DKq9gV3G.mjs';
4
- import '../rail_spec-DGdb4Gnd.mjs';
1
+ import { R as RailKey, C as CompatibleClients } from '../pricing-Wqbq6xIR.mjs';
2
+ export { g as compatibleClientsByRails } from '../pricing-Wqbq6xIR.mjs';
3
+ import { C as Checkout, U as UCPServiceBinding, A as AgentScoreGatePolicy } from '../checkout-B0jIzAEo.mjs';
4
+ import '../rail_spec-C-jTQ7g6.mjs';
5
5
  import '../core.mjs';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.mjs';
8
- import '../x402_server-Ciz2mls2.mjs';
9
- import '../types-D1slMt0H.mjs';
8
+ import '../x402_server-hgQzWQwB.mjs';
9
+ import '../types-1Mr5ZDas.mjs';
10
10
  import 'jose';
11
11
 
12
12
  /**
@@ -1,12 +1,12 @@
1
- import { R as RailKey, C as CompatibleClients } from '../pricing-Dx3F1VAv.js';
2
- export { g as compatibleClientsByRails } from '../pricing-Dx3F1VAv.js';
3
- import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-DW7GgRrl.js';
4
- import '../rail_spec-DGdb4Gnd.js';
1
+ import { R as RailKey, C as CompatibleClients } from '../pricing-DUYE2hIy.js';
2
+ export { g as compatibleClientsByRails } from '../pricing-DUYE2hIy.js';
3
+ import { C as Checkout, U as UCPServiceBinding, A as AgentScoreGatePolicy } from '../checkout-BRdpPSnc.js';
4
+ import '../rail_spec-C-jTQ7g6.js';
5
5
  import '../core.js';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.js';
8
- import '../x402_server-Ciz2mls2.js';
9
- import '../types-D1slMt0H.js';
8
+ import '../x402_server-hgQzWQwB.js';
9
+ import '../types-1Mr5ZDas.js';
10
10
  import 'jose';
11
11
 
12
12
  /**
@@ -1,4 +1,4 @@
1
- import { a as AitPayload, T as TrustLevel } from './types-D1slMt0H.mjs';
1
+ import { A as AitPayload, T as TrustLevel } from './types-1Mr5ZDas.mjs';
2
2
  import { JWK } from 'jose';
3
3
 
4
4
  /**
@@ -304,4 +304,4 @@ declare const evaluateAipParts: (parts: {
304
304
  authority?: string;
305
305
  }, opts: AipGateOptions) => Promise<AipGateEvaluation>;
306
306
 
307
- export { AGENTSCORE_CANONICAL_ISSUER as A, HARD_MAX_CACHE_SECONDS as H, JWKS_WELL_KNOWN_PATH as J, type VerifiedAit as V, AGENT_IDENTITY_HEADER as a, type AipErrorRequirements as b, type AipGateEvaluation as c, type AipGateOptions as d, type AipGateResult as e, JwksCache as f, type JwksCacheOptions as g, type JwksLookupResult as h, type VerifyAitFailure as i, type VerifyAitOptions as j, type VerifyAitResult as k, type VerifyRequestContext as l, aipErrorCode as m, aipErrorStatus as n, buildAipErrorBody as o, buildAipWeakAuthBody as p, canonicalizeIssuer as q, checkTrustRequirements as r, evaluateAipParts as s, evaluateAipRequest as t, verifyAitRequest as u, verifyAit as v };
307
+ export { type AipGateOptions as A, HARD_MAX_CACHE_SECONDS as H, JWKS_WELL_KNOWN_PATH as J, type VerifiedAit as V, type VerifyRequestContext as a, buildAipErrorBody as b, AGENTSCORE_CANONICAL_ISSUER as c, AGENT_IDENTITY_HEADER as d, type AipErrorRequirements as e, type AipGateEvaluation as f, type AipGateResult as g, JwksCache as h, type JwksCacheOptions as i, type JwksLookupResult as j, type VerifyAitFailure as k, type VerifyAitOptions as l, type VerifyAitResult as m, aipErrorCode as n, aipErrorStatus as o, buildAipWeakAuthBody as p, canonicalizeIssuer as q, checkTrustRequirements as r, evaluateAipParts as s, evaluateAipRequest as t, verifyAitRequest as u, verifyAit as v };
@@ -1,4 +1,4 @@
1
- import { a as AitPayload, T as TrustLevel } from './types-D1slMt0H.js';
1
+ import { A as AitPayload, T as TrustLevel } from './types-1Mr5ZDas.js';
2
2
  import { JWK } from 'jose';
3
3
 
4
4
  /**
@@ -304,4 +304,4 @@ declare const evaluateAipParts: (parts: {
304
304
  authority?: string;
305
305
  }, opts: AipGateOptions) => Promise<AipGateEvaluation>;
306
306
 
307
- export { AGENTSCORE_CANONICAL_ISSUER as A, HARD_MAX_CACHE_SECONDS as H, JWKS_WELL_KNOWN_PATH as J, type VerifiedAit as V, AGENT_IDENTITY_HEADER as a, type AipErrorRequirements as b, type AipGateEvaluation as c, type AipGateOptions as d, type AipGateResult as e, JwksCache as f, type JwksCacheOptions as g, type JwksLookupResult as h, type VerifyAitFailure as i, type VerifyAitOptions as j, type VerifyAitResult as k, type VerifyRequestContext as l, aipErrorCode as m, aipErrorStatus as n, buildAipErrorBody as o, buildAipWeakAuthBody as p, canonicalizeIssuer as q, checkTrustRequirements as r, evaluateAipParts as s, evaluateAipRequest as t, verifyAitRequest as u, verifyAit as v };
307
+ export { type AipGateOptions as A, HARD_MAX_CACHE_SECONDS as H, JWKS_WELL_KNOWN_PATH as J, type VerifiedAit as V, type VerifyRequestContext as a, buildAipErrorBody as b, AGENTSCORE_CANONICAL_ISSUER as c, AGENT_IDENTITY_HEADER as d, type AipErrorRequirements as e, type AipGateEvaluation as f, type AipGateResult as g, JwksCache as h, type JwksCacheOptions as i, type JwksLookupResult as j, type VerifyAitFailure as k, type VerifyAitOptions as l, type VerifyAitResult as m, aipErrorCode as n, aipErrorStatus as o, buildAipWeakAuthBody as p, canonicalizeIssuer as q, checkTrustRequirements as r, evaluateAipParts as s, evaluateAipRequest as t, verifyAitRequest as u, verifyAit as v };
@@ -1,7 +1,7 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-GCXy4FHI.mjs';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.mjs';
3
3
  import { Request, Response, NextFunction } from 'express';
4
- import '../types-D1slMt0H.mjs';
4
+ import '../types-1Mr5ZDas.mjs';
5
5
  import 'jose';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.mjs';
@@ -1,7 +1,7 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-D2RP6bZg.js';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.js';
3
3
  import { Request, Response, NextFunction } from 'express';
4
- import '../types-D1slMt0H.js';
4
+ import '../types-1Mr5ZDas.js';
5
5
  import 'jose';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.js';
@@ -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.7.4"}`;
923
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
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();
@@ -892,7 +892,7 @@ function createAgentScoreCore(options) {
892
892
  } = options;
893
893
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
894
894
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
895
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
895
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
896
896
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
897
897
  const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
898
898
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -1,7 +1,7 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-GCXy4FHI.mjs';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.mjs';
3
3
  import { FastifyRequest, FastifyReply, FastifyPluginAsync } from 'fastify';
4
- import '../types-D1slMt0H.mjs';
4
+ import '../types-1Mr5ZDas.mjs';
5
5
  import 'jose';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.mjs';
@@ -1,7 +1,7 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-D2RP6bZg.js';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.js';
3
3
  import { FastifyRequest, FastifyReply, FastifyPluginAsync } from 'fastify';
4
- import '../types-D1slMt0H.js';
4
+ import '../types-1Mr5ZDas.js';
5
5
  import 'jose';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.js';
@@ -921,7 +921,7 @@ function createAgentScoreCore(options) {
921
921
  } = options;
922
922
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
923
923
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
924
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
924
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
925
925
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
926
926
  const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
927
927
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -892,7 +892,7 @@ function createAgentScoreCore(options) {
892
892
  } = options;
893
893
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
894
894
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
895
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
895
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
896
896
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
897
897
  const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
898
898
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -1,7 +1,7 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-GCXy4FHI.mjs';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.mjs';
3
3
  import { Context, MiddlewareHandler } from 'hono';
4
- import '../types-D1slMt0H.mjs';
4
+ import '../types-1Mr5ZDas.mjs';
5
5
  import 'jose';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.mjs';
@@ -1,7 +1,7 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-D2RP6bZg.js';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.js';
3
3
  import { Context, MiddlewareHandler } from 'hono';
4
- import '../types-D1slMt0H.js';
4
+ import '../types-1Mr5ZDas.js';
5
5
  import 'jose';
6
6
  import '@agent-score/sdk';
7
7
  import '../signer-3FAit11j.js';
@@ -901,7 +901,7 @@ function createAgentScoreCore(options) {
901
901
  } = options;
902
902
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
903
903
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
904
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
904
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
905
905
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
906
906
  const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
907
907
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -873,7 +873,7 @@ function createAgentScoreCore(options) {
873
873
  } = options;
874
874
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
875
875
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
876
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
876
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
877
877
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
878
878
  const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
879
879
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -1,8 +1,8 @@
1
1
  import { createAgentScoreGate } from './web.mjs';
2
2
  export { AipGateWebOptions, AipGuardResult, createAipGate, withAipGate, withConditionalAipGate } from './web.mjs';
3
3
  import { AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.mjs';
4
- import '../gate-GCXy4FHI.mjs';
5
- import '../types-D1slMt0H.mjs';
4
+ import '../gate-BMUMi-P0.mjs';
5
+ import '../types-1Mr5ZDas.mjs';
6
6
  import 'jose';
7
7
  import '@agent-score/sdk';
8
8
  import '../signer-3FAit11j.mjs';
@@ -1,8 +1,8 @@
1
1
  import { createAgentScoreGate } from './web.js';
2
2
  export { AipGateWebOptions, AipGuardResult, createAipGate, withAipGate, withConditionalAipGate } from './web.js';
3
3
  import { AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.js';
4
- import '../gate-D2RP6bZg.js';
5
- import '../types-D1slMt0H.js';
4
+ import '../gate-Bhbi5zvG.js';
5
+ import '../types-1Mr5ZDas.js';
6
6
  import 'jose';
7
7
  import '@agent-score/sdk';
8
8
  import '../signer-3FAit11j.js';
@@ -922,7 +922,7 @@ function createAgentScoreCore(options) {
922
922
  } = options;
923
923
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
924
924
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
925
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
925
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
926
926
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
927
927
  const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
928
928
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -897,7 +897,7 @@ function createAgentScoreCore(options) {
897
897
  } = options;
898
898
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
899
899
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
900
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
900
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
901
901
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
902
902
  const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
903
903
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -1,6 +1,6 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-GCXy4FHI.mjs';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.mjs';
3
- import '../types-D1slMt0H.mjs';
3
+ import '../types-1Mr5ZDas.mjs';
4
4
  import 'jose';
5
5
  import '@agent-score/sdk';
6
6
  import '../signer-3FAit11j.mjs';
@@ -1,6 +1,6 @@
1
- import { d as AipGateOptions, o as buildAipErrorBody, V as VerifiedAit } from '../gate-D2RP6bZg.js';
1
+ import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
2
2
  import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.js';
3
- import '../types-D1slMt0H.js';
3
+ import '../types-1Mr5ZDas.js';
4
4
  import 'jose';
5
5
  import '@agent-score/sdk';
6
6
  import '../signer-3FAit11j.js';
@@ -898,7 +898,7 @@ function createAgentScoreCore(options) {
898
898
  } = options;
899
899
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
900
900
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
901
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
901
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
902
902
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
903
903
  const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
904
904
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -873,7 +873,7 @@ function createAgentScoreCore(options) {
873
873
  } = options;
874
874
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
875
875
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
876
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
876
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
877
877
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
878
878
  const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
879
879
  const sessionSdkCache = /* @__PURE__ */ new Map();
package/dist/index.d.mts CHANGED
@@ -1,21 +1,21 @@
1
1
  import { VerifyWalletSignerResult, DenialReason } from './core.mjs';
2
2
  export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AssessResult, CreateSessionOnMissing, DenialCode, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, buildAgentMemoryHint } from './core.mjs';
3
3
  export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, a as extractPaymentSignerFromAuth, b as extractSignerForPrecheck, r as readX402PaymentHeader } from './signer-3FAit11j.mjs';
4
- import { q as UCPSigningKey, n as UCPProfile } from './checkout-DKq9gV3G.mjs';
5
- export { A as AGENTSCORE_UCP_CAPABILITY, a as AgentScoreGatePolicy, C as Checkout, b as CheckoutContext, c as CheckoutGateConfig, d as CheckoutRailSpec, e as CheckoutRequest, f as CheckoutResult, g as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, h as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, i as PricingFn, j as PricingResult, R as RecipientsFn, k as ReferenceIdFn, l as RunGateFn, S as SettleOutcome, U as UCPCapabilityBinding, m as UCPPaymentHandlerBinding, o as UCPProfileBody, p as UCPServiceBinding, r as buildAipTrustedIssuers, s as buildUCPProfile, t as getIdentityStatus, u as makeMppxComposeHook, v as mppPaymentHandler, w as pricingResult, x as stripeSptPaymentHandler, y as validationEnvelope, z as validationResponseExpress, B as validationResponseFastify, E as validationResponseHono, F as validationResponseNextjs, H as validationResponseWeb, J as x402PaymentHandler } from './checkout-DKq9gV3G.mjs';
4
+ import { a as UCPSigningKey, b as UCPProfile } from './checkout-B0jIzAEo.mjs';
5
+ export { c as AGENTSCORE_UCP_CAPABILITY, A as AgentScoreGatePolicy, C as Checkout, d as CheckoutContext, e as CheckoutGateConfig, f as CheckoutRailSpec, g as CheckoutRequest, h as CheckoutResult, i as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, j as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, k as PricingFn, l as PricingResult, R as RecipientsFn, m as ReferenceIdFn, n as RunGateFn, S as SettleOutcome, o as UCPCapabilityBinding, p as UCPPaymentHandlerBinding, q as UCPProfileBody, U as UCPServiceBinding, r as buildAipTrustedIssuers, s as buildUCPProfile, t as getIdentityStatus, u as makeMppxComposeHook, v as mppPaymentHandler, w as pricingResult, x as stripeSptPaymentHandler, y as validationEnvelope, z as validationResponseExpress, B as validationResponseFastify, E as validationResponseHono, F as validationResponseNextjs, H as validationResponseWeb, J as x402PaymentHandler } from './checkout-B0jIzAEo.mjs';
6
6
  export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed, validateShippingAgainstPolicy } from './identity/policy.mjs';
7
- import { H as HeadersLike } from './network_kind-CLdLbqU5.mjs';
8
- export { M as MalformedPaymentCredential, c as buildDefaultCheckoutRails, d as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, e as hasPaymentHeader, g as hasX402Header, i as isEvmNetwork, j as isSolanaNetwork, l as loadSolanaFeePayer, m as malformedPaymentCredential } from './network_kind-CLdLbqU5.mjs';
9
- import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-DGdb4Gnd.mjs';
10
- export { c as TempoSessionRailSpec } from './rail_spec-DGdb4Gnd.mjs';
7
+ import { H as HeadersLike } from './network_kind-DmHbQbOb.mjs';
8
+ export { M as MalformedPaymentCredential, b as buildDefaultCheckoutRails, a as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, c as hasPaymentHeader, d as hasX402Header, i as isEvmNetwork, e as isSolanaNetwork, l as loadSolanaFeePayer, m as malformedPaymentCredential } from './network_kind-DmHbQbOb.mjs';
9
+ import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-C-jTQ7g6.mjs';
10
+ export { a as TempoSessionRailSpec } from './rail_spec-C-jTQ7g6.mjs';
11
11
  import { Context } from 'hono';
12
- import { l as VerifyRequestContext } from './gate-GCXy4FHI.mjs';
13
- export { A as AGENTSCORE_CANONICAL_ISSUER, a as AGENT_IDENTITY_HEADER, b as AipErrorRequirements, c as AipGateEvaluation, d as AipGateOptions, e as AipGateResult, H as HARD_MAX_CACHE_SECONDS, J as JWKS_WELL_KNOWN_PATH, f as JwksCache, g as JwksCacheOptions, h as JwksLookupResult, V as VerifiedAit, i as VerifyAitFailure, j as VerifyAitOptions, k as VerifyAitResult, m as aipErrorCode, n as aipErrorStatus, o as buildAipErrorBody, p as buildAipWeakAuthBody, q as canonicalizeIssuer, r as checkTrustRequirements, s as evaluateAipParts, t as evaluateAipRequest, v as verifyAit, u as verifyAitRequest } from './gate-GCXy4FHI.mjs';
12
+ import { a as VerifyRequestContext } from './gate-BMUMi-P0.mjs';
13
+ export { c as AGENTSCORE_CANONICAL_ISSUER, d as AGENT_IDENTITY_HEADER, e as AipErrorRequirements, f as AipGateEvaluation, A as AipGateOptions, g as AipGateResult, H as HARD_MAX_CACHE_SECONDS, J as JWKS_WELL_KNOWN_PATH, h as JwksCache, i as JwksCacheOptions, j as JwksLookupResult, V as VerifiedAit, k as VerifyAitFailure, l as VerifyAitOptions, m as VerifyAitResult, n as aipErrorCode, o as aipErrorStatus, b as buildAipErrorBody, p as buildAipWeakAuthBody, q as canonicalizeIssuer, r as checkTrustRequirements, s as evaluateAipParts, t as evaluateAipRequest, v as verifyAit, u as verifyAitRequest } from './gate-BMUMi-P0.mjs';
14
14
  import { JWK } from 'jose';
15
- export { A as AitHeader, a as AitPayload, b as AitValidationResult, c as AmrValue, I as IdentityClaim, d as IntentClaim, T as TrustLevel, i as isAitShape, v as validateAitPayload } from './types-D1slMt0H.mjs';
15
+ export { a as AitHeader, A as AitPayload, b as AitValidationResult, c as AmrValue, I as IdentityClaim, d as IntentClaim, T as TrustLevel, i as isAitShape, v as validateAitPayload } from './types-1Mr5ZDas.mjs';
16
16
  import '@agent-score/sdk';
17
- import './pricing-sfv3CPiY.mjs';
18
- import './x402_server-Ciz2mls2.mjs';
17
+ import './pricing-Wqbq6xIR.mjs';
18
+ import './x402_server-hgQzWQwB.mjs';
19
19
 
20
20
  /**
21
21
  * Universal denial helpers shared across every adapter.
package/dist/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
1
  import { VerifyWalletSignerResult, DenialReason } from './core.js';
2
2
  export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AssessResult, CreateSessionOnMissing, DenialCode, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, buildAgentMemoryHint } from './core.js';
3
3
  export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, a as extractPaymentSignerFromAuth, b as extractSignerForPrecheck, r as readX402PaymentHeader } from './signer-3FAit11j.js';
4
- import { q as UCPSigningKey, n as UCPProfile } from './checkout-DW7GgRrl.js';
5
- export { A as AGENTSCORE_UCP_CAPABILITY, a as AgentScoreGatePolicy, C as Checkout, b as CheckoutContext, c as CheckoutGateConfig, d as CheckoutRailSpec, e as CheckoutRequest, f as CheckoutResult, g as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, h as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, i as PricingFn, j as PricingResult, R as RecipientsFn, k as ReferenceIdFn, l as RunGateFn, S as SettleOutcome, U as UCPCapabilityBinding, m as UCPPaymentHandlerBinding, o as UCPProfileBody, p as UCPServiceBinding, r as buildAipTrustedIssuers, s as buildUCPProfile, t as getIdentityStatus, u as makeMppxComposeHook, v as mppPaymentHandler, w as pricingResult, x as stripeSptPaymentHandler, y as validationEnvelope, z as validationResponseExpress, B as validationResponseFastify, E as validationResponseHono, F as validationResponseNextjs, H as validationResponseWeb, J as x402PaymentHandler } from './checkout-DW7GgRrl.js';
4
+ import { a as UCPSigningKey, b as UCPProfile } from './checkout-BRdpPSnc.js';
5
+ export { c as AGENTSCORE_UCP_CAPABILITY, A as AgentScoreGatePolicy, C as Checkout, d as CheckoutContext, e as CheckoutGateConfig, f as CheckoutRailSpec, g as CheckoutRequest, h as CheckoutResult, i as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, j as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, k as PricingFn, l as PricingResult, R as RecipientsFn, m as ReferenceIdFn, n as RunGateFn, S as SettleOutcome, o as UCPCapabilityBinding, p as UCPPaymentHandlerBinding, q as UCPProfileBody, U as UCPServiceBinding, r as buildAipTrustedIssuers, s as buildUCPProfile, t as getIdentityStatus, u as makeMppxComposeHook, v as mppPaymentHandler, w as pricingResult, x as stripeSptPaymentHandler, y as validationEnvelope, z as validationResponseExpress, B as validationResponseFastify, E as validationResponseHono, F as validationResponseNextjs, H as validationResponseWeb, J as x402PaymentHandler } from './checkout-BRdpPSnc.js';
6
6
  export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed, validateShippingAgainstPolicy } from './identity/policy.js';
7
- import { H as HeadersLike } from './network_kind-toxNABqw.js';
8
- export { M as MalformedPaymentCredential, c as buildDefaultCheckoutRails, d as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, e as hasPaymentHeader, g as hasX402Header, i as isEvmNetwork, j as isSolanaNetwork, l as loadSolanaFeePayer, m as malformedPaymentCredential } from './network_kind-toxNABqw.js';
9
- import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-DGdb4Gnd.js';
10
- export { c as TempoSessionRailSpec } from './rail_spec-DGdb4Gnd.js';
7
+ import { H as HeadersLike } from './network_kind-C3NA2wX2.js';
8
+ export { M as MalformedPaymentCredential, b as buildDefaultCheckoutRails, a as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, c as hasPaymentHeader, d as hasX402Header, i as isEvmNetwork, e as isSolanaNetwork, l as loadSolanaFeePayer, m as malformedPaymentCredential } from './network_kind-C3NA2wX2.js';
9
+ import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-C-jTQ7g6.js';
10
+ export { a as TempoSessionRailSpec } from './rail_spec-C-jTQ7g6.js';
11
11
  import { Context } from 'hono';
12
- import { l as VerifyRequestContext } from './gate-D2RP6bZg.js';
13
- export { A as AGENTSCORE_CANONICAL_ISSUER, a as AGENT_IDENTITY_HEADER, b as AipErrorRequirements, c as AipGateEvaluation, d as AipGateOptions, e as AipGateResult, H as HARD_MAX_CACHE_SECONDS, J as JWKS_WELL_KNOWN_PATH, f as JwksCache, g as JwksCacheOptions, h as JwksLookupResult, V as VerifiedAit, i as VerifyAitFailure, j as VerifyAitOptions, k as VerifyAitResult, m as aipErrorCode, n as aipErrorStatus, o as buildAipErrorBody, p as buildAipWeakAuthBody, q as canonicalizeIssuer, r as checkTrustRequirements, s as evaluateAipParts, t as evaluateAipRequest, v as verifyAit, u as verifyAitRequest } from './gate-D2RP6bZg.js';
12
+ import { a as VerifyRequestContext } from './gate-Bhbi5zvG.js';
13
+ export { c as AGENTSCORE_CANONICAL_ISSUER, d as AGENT_IDENTITY_HEADER, e as AipErrorRequirements, f as AipGateEvaluation, A as AipGateOptions, g as AipGateResult, H as HARD_MAX_CACHE_SECONDS, J as JWKS_WELL_KNOWN_PATH, h as JwksCache, i as JwksCacheOptions, j as JwksLookupResult, V as VerifiedAit, k as VerifyAitFailure, l as VerifyAitOptions, m as VerifyAitResult, n as aipErrorCode, o as aipErrorStatus, b as buildAipErrorBody, p as buildAipWeakAuthBody, q as canonicalizeIssuer, r as checkTrustRequirements, s as evaluateAipParts, t as evaluateAipRequest, v as verifyAit, u as verifyAitRequest } from './gate-Bhbi5zvG.js';
14
14
  import { JWK } from 'jose';
15
- export { A as AitHeader, a as AitPayload, b as AitValidationResult, c as AmrValue, I as IdentityClaim, d as IntentClaim, T as TrustLevel, i as isAitShape, v as validateAitPayload } from './types-D1slMt0H.js';
15
+ export { a as AitHeader, A as AitPayload, b as AitValidationResult, c as AmrValue, I as IdentityClaim, d as IntentClaim, T as TrustLevel, i as isAitShape, v as validateAitPayload } from './types-1Mr5ZDas.js';
16
16
  import '@agent-score/sdk';
17
- import './pricing-Dx3F1VAv.js';
18
- import './x402_server-Ciz2mls2.js';
17
+ import './pricing-DUYE2hIy.js';
18
+ import './x402_server-hgQzWQwB.js';
19
19
 
20
20
  /**
21
21
  * Universal denial helpers shared across every adapter.
package/dist/index.js CHANGED
@@ -1635,7 +1635,7 @@ var init_sha256 = __esm({
1635
1635
  }
1636
1636
  });
1637
1637
 
1638
- // node_modules/@noble/curves/esm/abstract/utils.js
1638
+ // node_modules/ox/node_modules/@noble/curves/esm/abstract/utils.js
1639
1639
  function equalBytes(a, b) {
1640
1640
  if (a.length !== b.length)
1641
1641
  return false;
@@ -1646,7 +1646,7 @@ function equalBytes(a, b) {
1646
1646
  }
1647
1647
  var hasHexBuiltin;
1648
1648
  var init_utils2 = __esm({
1649
- "node_modules/@noble/curves/esm/abstract/utils.js"() {
1649
+ "node_modules/ox/node_modules/@noble/curves/esm/abstract/utils.js"() {
1650
1650
  "use strict";
1651
1651
  hasHexBuiltin = // @ts-ignore
1652
1652
  typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
@@ -22710,7 +22710,7 @@ function createAgentScoreCore(options) {
22710
22710
  } = options;
22711
22711
  const baseUrl = stripTrailingSlashes(rawBaseUrl);
22712
22712
  const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
22713
- const defaultUa = `@agent-score/commerce@${"2.7.4"}`;
22713
+ const defaultUa = `@agent-score/commerce@${"2.7.6"}`;
22714
22714
  const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
22715
22715
  const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
22716
22716
  const sessionSdkCache = /* @__PURE__ */ new Map();
@@ -25160,20 +25160,16 @@ function classifyX402SettleResult(result) {
25160
25160
  };
25161
25161
  }
25162
25162
  }
25163
- function toCanonicalX402PaymentPayload(payload) {
25163
+ function stripUnsignedX402PayloadFields(payload) {
25164
25164
  if (typeof payload !== "object" || payload === null) return payload;
25165
25165
  const p = payload;
25166
- const accepted = typeof p.accepted === "object" && p.accepted !== null ? p.accepted : void 0;
25167
- const scheme = p.scheme ?? accepted?.scheme;
25168
- const network = p.network ?? accepted?.network;
25169
- const inner = p.payload;
25170
- if (scheme === void 0 || network === void 0 || inner === void 0) return payload;
25171
- return {
25172
- x402Version: p.x402Version ?? 2,
25173
- scheme,
25174
- network,
25175
- payload: inner
25176
- };
25166
+ if (!("extensions" in p) && !("resource" in p)) return payload;
25167
+ const rest = {};
25168
+ for (const [k, v] of Object.entries(p)) {
25169
+ if (k === "extensions" || k === "resource") continue;
25170
+ rest[k] = v;
25171
+ }
25172
+ return rest;
25177
25173
  }
25178
25174
  async function processX402Settle({
25179
25175
  x402Server,
@@ -25195,7 +25191,7 @@ async function processX402Settle({
25195
25191
  if (!matchedRequirement) {
25196
25192
  return { success: false, phase: "no_requirements", reason: "x402Server.buildPaymentRequirements returned empty" };
25197
25193
  }
25198
- const canonicalPayload = toCanonicalX402PaymentPayload(payload);
25194
+ const facilitatorPayload = stripUnsignedX402PayloadFields(payload);
25199
25195
  const resolvedTransportContext = transportContext ?? (() => {
25200
25196
  const path = new URL(resourceMeta.url).pathname;
25201
25197
  return { method: "POST", adapter: { getPath: () => path }, routePattern: path };
@@ -25210,7 +25206,7 @@ async function processX402Settle({
25210
25206
  let verifyResult;
25211
25207
  try {
25212
25208
  verifyResult = await server.verifyPayment(
25213
- canonicalPayload,
25209
+ facilitatorPayload,
25214
25210
  matchedRequirement,
25215
25211
  enrichedExt,
25216
25212
  resolvedTransportContext
@@ -25225,7 +25221,7 @@ async function processX402Settle({
25225
25221
  }
25226
25222
  try {
25227
25223
  const settleResult = await server.settlePayment(
25228
- canonicalPayload,
25224
+ facilitatorPayload,
25229
25225
  matchedRequirement,
25230
25226
  enrichedExt,
25231
25227
  resolvedTransportContext