@astrasyncai/verification-gateway 2.2.3 → 2.3.7

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 (79) hide show
  1. package/dist/adapter-interface/interface.d.mts +2 -2
  2. package/dist/adapter-interface/interface.d.ts +2 -2
  3. package/dist/adapters/express.d.mts +2 -2
  4. package/dist/adapters/express.d.ts +2 -2
  5. package/dist/adapters/express.js +62 -30
  6. package/dist/adapters/express.js.map +1 -1
  7. package/dist/adapters/express.mjs +61 -27
  8. package/dist/adapters/express.mjs.map +1 -1
  9. package/dist/adapters/mcp.d.mts +245 -0
  10. package/dist/adapters/mcp.d.ts +245 -0
  11. package/dist/adapters/mcp.js +589 -0
  12. package/dist/adapters/mcp.js.map +1 -0
  13. package/dist/adapters/mcp.mjs +555 -0
  14. package/dist/adapters/mcp.mjs.map +1 -0
  15. package/dist/adapters/nextjs.d.mts +2 -2
  16. package/dist/adapters/nextjs.d.ts +2 -2
  17. package/dist/adapters/nextjs.js +60 -12
  18. package/dist/adapters/nextjs.js.map +1 -1
  19. package/dist/adapters/nextjs.mjs +60 -12
  20. package/dist/adapters/nextjs.mjs.map +1 -1
  21. package/dist/adapters/sdk.d.mts +2 -2
  22. package/dist/adapters/sdk.d.ts +2 -2
  23. package/dist/adapters/sdk.js +6 -10
  24. package/dist/adapters/sdk.js.map +1 -1
  25. package/dist/adapters/sdk.mjs +6 -10
  26. package/dist/adapters/sdk.mjs.map +1 -1
  27. package/dist/agent/index.d.mts +2 -2
  28. package/dist/agent/index.d.ts +2 -2
  29. package/dist/browser/background.js +12 -10
  30. package/dist/browser/background.js.map +1 -1
  31. package/dist/browser/background.mjs +12 -10
  32. package/dist/browser/background.mjs.map +1 -1
  33. package/dist/browser/browser-adapter.d.mts +2 -2
  34. package/dist/browser/browser-adapter.d.ts +2 -2
  35. package/dist/cli/index.d.mts +2 -2
  36. package/dist/cli/index.d.ts +2 -2
  37. package/dist/cursor/cursor-adapter.d.mts +2 -2
  38. package/dist/cursor/cursor-adapter.d.ts +2 -2
  39. package/dist/cursor/extension.d.mts +2 -2
  40. package/dist/cursor/extension.d.ts +2 -2
  41. package/dist/cursor/extension.js +12 -10
  42. package/dist/cursor/extension.js.map +1 -1
  43. package/dist/cursor/extension.mjs +12 -10
  44. package/dist/cursor/extension.mjs.map +1 -1
  45. package/dist/{express-DgwpS8Ha.d.mts → express-D9oRsseg.d.mts} +17 -14
  46. package/dist/{express-BtKlLI8U.d.ts → express-DMSIl20m.d.ts} +17 -14
  47. package/dist/gateway/gateway.d.mts +2 -2
  48. package/dist/gateway/gateway.d.ts +2 -2
  49. package/dist/gateway/gateway.js +12 -10
  50. package/dist/gateway/gateway.js.map +1 -1
  51. package/dist/gateway/gateway.mjs +12 -10
  52. package/dist/gateway/gateway.mjs.map +1 -1
  53. package/dist/git-trigger/git-hooks.d.mts +2 -2
  54. package/dist/git-trigger/git-hooks.d.ts +2 -2
  55. package/dist/{index-AzhK20t0.d.mts → index-Bn_7eGjb.d.mts} +1 -1
  56. package/dist/{index-Ba0Lvsjo.d.ts → index-BtU9yFda.d.ts} +1 -1
  57. package/dist/{index-DpJS1JEI.d.ts → index-EwUWXC5T.d.ts} +1 -1
  58. package/dist/{index-BaxpmTGA.d.mts → index-YNPs800Z.d.mts} +1 -1
  59. package/dist/index.d.mts +7 -7
  60. package/dist/index.d.ts +7 -7
  61. package/dist/index.js +96 -29
  62. package/dist/index.js.map +1 -1
  63. package/dist/index.mjs +96 -29
  64. package/dist/index.mjs.map +1 -1
  65. package/dist/local-evaluator/evaluator.d.mts +2 -2
  66. package/dist/local-evaluator/evaluator.d.ts +2 -2
  67. package/dist/{nextjs-B2kg19c1.d.ts → nextjs-B5ZBpHra.d.ts} +8 -2
  68. package/dist/{nextjs-ZymQ8jDh.d.mts → nextjs-BLtjRbc-.d.mts} +8 -2
  69. package/dist/{sdk-B7id0VFS.d.mts → sdk-BhkxvqnK.d.mts} +1 -1
  70. package/dist/{sdk-Bso0FSI0.d.ts → sdk-YmE3RG8n.d.ts} +1 -1
  71. package/dist/transport/index.d.mts +2 -2
  72. package/dist/transport/index.d.ts +2 -2
  73. package/dist/{types-BYKAY6Cc.d.ts → types-BecRpozv.d.ts} +1 -1
  74. package/dist/{types-DOrqNMgy.d.mts → types-Bxqj1sKY.d.mts} +134 -24
  75. package/dist/{types-DOrqNMgy.d.ts → types-Bxqj1sKY.d.ts} +134 -24
  76. package/dist/{types-CgXPKUwi.d.mts → types-DxY5zt4z.d.mts} +1 -1
  77. package/dist/ui/index.d.mts +1 -1
  78. package/dist/ui/index.d.ts +1 -1
  79. package/package.json +6 -1
@@ -1,5 +1,5 @@
1
- import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, a as LocalPurposeRule } from '../types-CgXPKUwi.mjs';
2
- import '../types-DOrqNMgy.mjs';
1
+ import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, a as LocalPurposeRule } from '../types-DxY5zt4z.mjs';
2
+ import '../types-Bxqj1sKY.mjs';
3
3
 
4
4
  /**
5
5
  * Local PDLSS Evaluator
@@ -1,5 +1,5 @@
1
- import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, a as LocalPurposeRule } from '../types-BYKAY6Cc.js';
2
- import '../types-DOrqNMgy.js';
1
+ import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, a as LocalPurposeRule } from '../types-BecRpozv.js';
2
+ import '../types-Bxqj1sKY.js';
3
3
 
4
4
  /**
5
5
  * Local PDLSS Evaluator
@@ -1,9 +1,15 @@
1
1
  import * as next_server from 'next/server';
2
2
  import { NextRequest } from 'next/server';
3
- import { N as NextJsMiddlewareOptions } from './types-DOrqNMgy.js';
3
+ import { N as NextJsMiddlewareOptions } from './types-Bxqj1sKY.js';
4
4
 
5
5
  /**
6
- * Create Next.js middleware for agent verification
6
+ * Create Next.js middleware for agent verification.
7
+ *
8
+ * v2.9.7 moved per-route policy out of merchant-side source code into the
9
+ * AstraSync dashboard. The middleware fetches its routes from the backend
10
+ * via `GET /endpoints/:counterpartyId/routes` on init and refreshes
11
+ * periodically — see `ExpressMiddlewareOptions` for the rationale (defect
12
+ * 24, dual-config silent-conflict).
7
13
  */
8
14
  declare function createMiddleware(options: NextJsMiddlewareOptions): (request: NextRequest) => Promise<next_server.NextResponse<unknown>>;
9
15
  /**
@@ -1,9 +1,15 @@
1
1
  import * as next_server from 'next/server';
2
2
  import { NextRequest } from 'next/server';
3
- import { N as NextJsMiddlewareOptions } from './types-DOrqNMgy.mjs';
3
+ import { N as NextJsMiddlewareOptions } from './types-Bxqj1sKY.mjs';
4
4
 
5
5
  /**
6
- * Create Next.js middleware for agent verification
6
+ * Create Next.js middleware for agent verification.
7
+ *
8
+ * v2.9.7 moved per-route policy out of merchant-side source code into the
9
+ * AstraSync dashboard. The middleware fetches its routes from the backend
10
+ * via `GET /endpoints/:counterpartyId/routes` on init and refreshes
11
+ * periodically — see `ExpressMiddlewareOptions` for the rationale (defect
12
+ * 24, dual-config silent-conflict).
7
13
  */
8
14
  declare function createMiddleware(options: NextJsMiddlewareOptions): (request: NextRequest) => Promise<next_server.NextResponse<unknown>>;
9
15
  /**
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-DOrqNMgy.mjs';
1
+ import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-Bxqj1sKY.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Universal Verification Gateway - Access Level Definitions
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-DOrqNMgy.js';
1
+ import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-Bxqj1sKY.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Universal Verification Gateway - Access Level Definitions
@@ -1,3 +1,3 @@
1
- import '../types-DOrqNMgy.mjs';
2
- export { A as ACPEndpoint, a as ACPPaymentTokenType, b as ACPRequestContext, c as ACPRequestLike, d as ACPSignatureAlgorithm, e as ACPTotal, f as ACPVerifyInput, g as ACPVerifyResult, h as AP2CartMandateClaims, j as AP2ChainResult, k as AP2IntentMandateClaims, l as AP2MandateClaims, m as AP2MandateTriple, n as AP2MandateTripleInput, o as AP2MandateType, p as AP2PaymentDetailsTotal, q as AP2PaymentMandateClaims, r as AP2PaymentMandateForValue, s as AP2VerifyInput, C as CommerceContext, t as CommercePipelineInput, u as CommerceProtocol, v as CommercePurpose, w as CommerceSignatureStack, x as ConstraintEvalResult, y as ConstraintKey, z as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, B as IdentityClaim, D as IdentityResolver, M as MPPChallengeForValue, F as MPPChallengeSummary, G as MPPCredentialSummary, H as MPPIntent, J as MPPKind, K as MPPReceiptSummary, L as MPPRequestContext, N as MPPRequestLike, O as MPPResponseLike, P as MPPVerifyInput, Q as MPPVerifyResult, R as ParsedRFC9421, S as PaymentMethodAllowlistInput, T as RFC9421SignatureParams, U as RFC9421Tag, V as RFC9421VerifyOptions, W as RFC9421VerifyRequest, X as RFC9421VerifyResult, Y as RegistryName, Z as RegistryResolver, _ as ResolveContext, $ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, a0 as SpendingLimitInput, a1 as StripeWebhookInformationalEvent, a2 as TransactionContext, a3 as TransactionValueContext, a4 as TransportExtractor, a5 as UCPCheckoutContext, a6 as UCPManifestValidationResult, a7 as UCPRequestLike, a8 as UCPTotal, a9 as VIAllowedParty, aa as VIBudgetLimit, ab as VIClaimsForValue, ac as VIConstraintEvalInput, ad as VIConstraints, ae as VIExecutionMode, af as VIExtractedClaims, ag as VILayer, ah as VILineItem, ai as VIMandateType, aj as VIPaymentAmount, ak as VIRecurrence, al as VIVerifyInput, am as VIVerifyResult, an as VerifyStripeWebhookOptions, ao as VerifyStripeWebhookResult, ap as X402Kind, aq as X402RequestContext, ar as X402RequestForValue, as as X402RequestLike, at as X402RequirementsSummary, au as X402ResponseLike, av as applyCredentials, aw as bindIdentity, ax as claim, ay as clearTransportExtractors, az as createMastercardRegistry, aA as createVisaRegistry, aB as createWebBotAuthRegistry, aC as detectProtocol, aD as evaluatePaymentMethodAllowlist, aE as evaluateSpendingLimit, aF as evaluateVIConstraints, aG as extractA2ACredentials, aH as extractACPContext, aI as extractACPTransactionValue, aJ as extractAP2Mandate, aK as extractAP2Mandates, aL as extractAP2TransactionValue, aM as extractCredentialsFromProtocol, aN as extractHttpCredentials, aO as extractMPPContext, aP as extractMPPFromRequest, aQ as extractMPPFromResponse, aR as extractMPPTransactionValue, aS as extractMcpCredentials, aT as extractUCPContext, aU as extractUCPTransactionValue, aV as extractVIClaims, aW as extractVITransactionValue, aX as extractX402Context, aY as extractX402FromRequest, aZ as extractX402FromResponse, a_ as extractX402TransactionValue, a$ as fetchUCPManifest, b0 as getTransportExtractor, b1 as getTransportExtractors, b2 as isStripeWebhookInformational, b3 as mapACPRequestToPurpose, b4 as mapAP2MandateToPurpose, b5 as mapMPPRequestToPurpose, b6 as mapRFC9421TagToPurpose, b7 as mapUCPRequestToPurpose, b8 as mapVIMandateToPurpose, b9 as mapX402RequestToPurpose, ba as parseRFC9421, bb as registerTransportExtractor, bc as runCommercePipeline, bd as runMatchingExtractors, be as setA2AMetadata, bf as setHttpHeaders, bg as setMcpMeta, bh as validateUCPManifest, bi as verifyACPSignature, bj as verifyAP2Chain, bk as verifyMPP, bl as verifyRFC9421, bm as verifyStripeWebhook, bn as verifyVIChain } from '../index-BaxpmTGA.mjs';
1
+ import '../types-Bxqj1sKY.mjs';
2
+ export { A as ACPEndpoint, a as ACPPaymentTokenType, b as ACPRequestContext, c as ACPRequestLike, d as ACPSignatureAlgorithm, e as ACPTotal, f as ACPVerifyInput, g as ACPVerifyResult, h as AP2CartMandateClaims, j as AP2ChainResult, k as AP2IntentMandateClaims, l as AP2MandateClaims, m as AP2MandateTriple, n as AP2MandateTripleInput, o as AP2MandateType, p as AP2PaymentDetailsTotal, q as AP2PaymentMandateClaims, r as AP2PaymentMandateForValue, s as AP2VerifyInput, C as CommerceContext, t as CommercePipelineInput, u as CommerceProtocol, v as CommercePurpose, w as CommerceSignatureStack, x as ConstraintEvalResult, y as ConstraintKey, z as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, B as IdentityClaim, D as IdentityResolver, M as MPPChallengeForValue, F as MPPChallengeSummary, G as MPPCredentialSummary, H as MPPIntent, J as MPPKind, K as MPPReceiptSummary, L as MPPRequestContext, N as MPPRequestLike, O as MPPResponseLike, P as MPPVerifyInput, Q as MPPVerifyResult, R as ParsedRFC9421, S as PaymentMethodAllowlistInput, T as RFC9421SignatureParams, U as RFC9421Tag, V as RFC9421VerifyOptions, W as RFC9421VerifyRequest, X as RFC9421VerifyResult, Y as RegistryName, Z as RegistryResolver, _ as ResolveContext, $ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, a0 as SpendingLimitInput, a1 as StripeWebhookInformationalEvent, a2 as TransactionContext, a3 as TransactionValueContext, a4 as TransportExtractor, a5 as UCPCheckoutContext, a6 as UCPManifestValidationResult, a7 as UCPRequestLike, a8 as UCPTotal, a9 as VIAllowedParty, aa as VIBudgetLimit, ab as VIClaimsForValue, ac as VIConstraintEvalInput, ad as VIConstraints, ae as VIExecutionMode, af as VIExtractedClaims, ag as VILayer, ah as VILineItem, ai as VIMandateType, aj as VIPaymentAmount, ak as VIRecurrence, al as VIVerifyInput, am as VIVerifyResult, an as VerifyStripeWebhookOptions, ao as VerifyStripeWebhookResult, ap as X402Kind, aq as X402RequestContext, ar as X402RequestForValue, as as X402RequestLike, at as X402RequirementsSummary, au as X402ResponseLike, av as applyCredentials, aw as bindIdentity, ax as claim, ay as clearTransportExtractors, az as createMastercardRegistry, aA as createVisaRegistry, aB as createWebBotAuthRegistry, aC as detectProtocol, aD as evaluatePaymentMethodAllowlist, aE as evaluateSpendingLimit, aF as evaluateVIConstraints, aG as extractA2ACredentials, aH as extractACPContext, aI as extractACPTransactionValue, aJ as extractAP2Mandate, aK as extractAP2Mandates, aL as extractAP2TransactionValue, aM as extractCredentialsFromProtocol, aN as extractHttpCredentials, aO as extractMPPContext, aP as extractMPPFromRequest, aQ as extractMPPFromResponse, aR as extractMPPTransactionValue, aS as extractMcpCredentials, aT as extractUCPContext, aU as extractUCPTransactionValue, aV as extractVIClaims, aW as extractVITransactionValue, aX as extractX402Context, aY as extractX402FromRequest, aZ as extractX402FromResponse, a_ as extractX402TransactionValue, a$ as fetchUCPManifest, b0 as getTransportExtractor, b1 as getTransportExtractors, b2 as isStripeWebhookInformational, b3 as mapACPRequestToPurpose, b4 as mapAP2MandateToPurpose, b5 as mapMPPRequestToPurpose, b6 as mapRFC9421TagToPurpose, b7 as mapUCPRequestToPurpose, b8 as mapVIMandateToPurpose, b9 as mapX402RequestToPurpose, ba as parseRFC9421, bb as registerTransportExtractor, bc as runCommercePipeline, bd as runMatchingExtractors, be as setA2AMetadata, bf as setHttpHeaders, bg as setMcpMeta, bh as validateUCPManifest, bi as verifyACPSignature, bj as verifyAP2Chain, bk as verifyMPP, bl as verifyRFC9421, bm as verifyStripeWebhook, bn as verifyVIChain } from '../index-YNPs800Z.mjs';
3
3
  import 'jose';
@@ -1,3 +1,3 @@
1
- import '../types-DOrqNMgy.js';
2
- export { A as ACPEndpoint, a as ACPPaymentTokenType, b as ACPRequestContext, c as ACPRequestLike, d as ACPSignatureAlgorithm, e as ACPTotal, f as ACPVerifyInput, g as ACPVerifyResult, h as AP2CartMandateClaims, j as AP2ChainResult, k as AP2IntentMandateClaims, l as AP2MandateClaims, m as AP2MandateTriple, n as AP2MandateTripleInput, o as AP2MandateType, p as AP2PaymentDetailsTotal, q as AP2PaymentMandateClaims, r as AP2PaymentMandateForValue, s as AP2VerifyInput, C as CommerceContext, t as CommercePipelineInput, u as CommerceProtocol, v as CommercePurpose, w as CommerceSignatureStack, x as ConstraintEvalResult, y as ConstraintKey, z as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, B as IdentityClaim, D as IdentityResolver, M as MPPChallengeForValue, F as MPPChallengeSummary, G as MPPCredentialSummary, H as MPPIntent, J as MPPKind, K as MPPReceiptSummary, L as MPPRequestContext, N as MPPRequestLike, O as MPPResponseLike, P as MPPVerifyInput, Q as MPPVerifyResult, R as ParsedRFC9421, S as PaymentMethodAllowlistInput, T as RFC9421SignatureParams, U as RFC9421Tag, V as RFC9421VerifyOptions, W as RFC9421VerifyRequest, X as RFC9421VerifyResult, Y as RegistryName, Z as RegistryResolver, _ as ResolveContext, $ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, a0 as SpendingLimitInput, a1 as StripeWebhookInformationalEvent, a2 as TransactionContext, a3 as TransactionValueContext, a4 as TransportExtractor, a5 as UCPCheckoutContext, a6 as UCPManifestValidationResult, a7 as UCPRequestLike, a8 as UCPTotal, a9 as VIAllowedParty, aa as VIBudgetLimit, ab as VIClaimsForValue, ac as VIConstraintEvalInput, ad as VIConstraints, ae as VIExecutionMode, af as VIExtractedClaims, ag as VILayer, ah as VILineItem, ai as VIMandateType, aj as VIPaymentAmount, ak as VIRecurrence, al as VIVerifyInput, am as VIVerifyResult, an as VerifyStripeWebhookOptions, ao as VerifyStripeWebhookResult, ap as X402Kind, aq as X402RequestContext, ar as X402RequestForValue, as as X402RequestLike, at as X402RequirementsSummary, au as X402ResponseLike, av as applyCredentials, aw as bindIdentity, ax as claim, ay as clearTransportExtractors, az as createMastercardRegistry, aA as createVisaRegistry, aB as createWebBotAuthRegistry, aC as detectProtocol, aD as evaluatePaymentMethodAllowlist, aE as evaluateSpendingLimit, aF as evaluateVIConstraints, aG as extractA2ACredentials, aH as extractACPContext, aI as extractACPTransactionValue, aJ as extractAP2Mandate, aK as extractAP2Mandates, aL as extractAP2TransactionValue, aM as extractCredentialsFromProtocol, aN as extractHttpCredentials, aO as extractMPPContext, aP as extractMPPFromRequest, aQ as extractMPPFromResponse, aR as extractMPPTransactionValue, aS as extractMcpCredentials, aT as extractUCPContext, aU as extractUCPTransactionValue, aV as extractVIClaims, aW as extractVITransactionValue, aX as extractX402Context, aY as extractX402FromRequest, aZ as extractX402FromResponse, a_ as extractX402TransactionValue, a$ as fetchUCPManifest, b0 as getTransportExtractor, b1 as getTransportExtractors, b2 as isStripeWebhookInformational, b3 as mapACPRequestToPurpose, b4 as mapAP2MandateToPurpose, b5 as mapMPPRequestToPurpose, b6 as mapRFC9421TagToPurpose, b7 as mapUCPRequestToPurpose, b8 as mapVIMandateToPurpose, b9 as mapX402RequestToPurpose, ba as parseRFC9421, bb as registerTransportExtractor, bc as runCommercePipeline, bd as runMatchingExtractors, be as setA2AMetadata, bf as setHttpHeaders, bg as setMcpMeta, bh as validateUCPManifest, bi as verifyACPSignature, bj as verifyAP2Chain, bk as verifyMPP, bl as verifyRFC9421, bm as verifyStripeWebhook, bn as verifyVIChain } from '../index-Ba0Lvsjo.js';
1
+ import '../types-Bxqj1sKY.js';
2
+ export { A as ACPEndpoint, a as ACPPaymentTokenType, b as ACPRequestContext, c as ACPRequestLike, d as ACPSignatureAlgorithm, e as ACPTotal, f as ACPVerifyInput, g as ACPVerifyResult, h as AP2CartMandateClaims, j as AP2ChainResult, k as AP2IntentMandateClaims, l as AP2MandateClaims, m as AP2MandateTriple, n as AP2MandateTripleInput, o as AP2MandateType, p as AP2PaymentDetailsTotal, q as AP2PaymentMandateClaims, r as AP2PaymentMandateForValue, s as AP2VerifyInput, C as CommerceContext, t as CommercePipelineInput, u as CommerceProtocol, v as CommercePurpose, w as CommerceSignatureStack, x as ConstraintEvalResult, y as ConstraintKey, z as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, B as IdentityClaim, D as IdentityResolver, M as MPPChallengeForValue, F as MPPChallengeSummary, G as MPPCredentialSummary, H as MPPIntent, J as MPPKind, K as MPPReceiptSummary, L as MPPRequestContext, N as MPPRequestLike, O as MPPResponseLike, P as MPPVerifyInput, Q as MPPVerifyResult, R as ParsedRFC9421, S as PaymentMethodAllowlistInput, T as RFC9421SignatureParams, U as RFC9421Tag, V as RFC9421VerifyOptions, W as RFC9421VerifyRequest, X as RFC9421VerifyResult, Y as RegistryName, Z as RegistryResolver, _ as ResolveContext, $ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, a0 as SpendingLimitInput, a1 as StripeWebhookInformationalEvent, a2 as TransactionContext, a3 as TransactionValueContext, a4 as TransportExtractor, a5 as UCPCheckoutContext, a6 as UCPManifestValidationResult, a7 as UCPRequestLike, a8 as UCPTotal, a9 as VIAllowedParty, aa as VIBudgetLimit, ab as VIClaimsForValue, ac as VIConstraintEvalInput, ad as VIConstraints, ae as VIExecutionMode, af as VIExtractedClaims, ag as VILayer, ah as VILineItem, ai as VIMandateType, aj as VIPaymentAmount, ak as VIRecurrence, al as VIVerifyInput, am as VIVerifyResult, an as VerifyStripeWebhookOptions, ao as VerifyStripeWebhookResult, ap as X402Kind, aq as X402RequestContext, ar as X402RequestForValue, as as X402RequestLike, at as X402RequirementsSummary, au as X402ResponseLike, av as applyCredentials, aw as bindIdentity, ax as claim, ay as clearTransportExtractors, az as createMastercardRegistry, aA as createVisaRegistry, aB as createWebBotAuthRegistry, aC as detectProtocol, aD as evaluatePaymentMethodAllowlist, aE as evaluateSpendingLimit, aF as evaluateVIConstraints, aG as extractA2ACredentials, aH as extractACPContext, aI as extractACPTransactionValue, aJ as extractAP2Mandate, aK as extractAP2Mandates, aL as extractAP2TransactionValue, aM as extractCredentialsFromProtocol, aN as extractHttpCredentials, aO as extractMPPContext, aP as extractMPPFromRequest, aQ as extractMPPFromResponse, aR as extractMPPTransactionValue, aS as extractMcpCredentials, aT as extractUCPContext, aU as extractUCPTransactionValue, aV as extractVIClaims, aW as extractVITransactionValue, aX as extractX402Context, aY as extractX402FromRequest, aZ as extractX402FromResponse, a_ as extractX402TransactionValue, a$ as fetchUCPManifest, b0 as getTransportExtractor, b1 as getTransportExtractors, b2 as isStripeWebhookInformational, b3 as mapACPRequestToPurpose, b4 as mapAP2MandateToPurpose, b5 as mapMPPRequestToPurpose, b6 as mapRFC9421TagToPurpose, b7 as mapUCPRequestToPurpose, b8 as mapVIMandateToPurpose, b9 as mapX402RequestToPurpose, ba as parseRFC9421, bb as registerTransportExtractor, bc as runCommercePipeline, bd as runMatchingExtractors, be as setA2AMetadata, bf as setHttpHeaders, bg as setMcpMeta, bh as validateUCPManifest, bi as verifyACPSignature, bj as verifyAP2Chain, bk as verifyMPP, bl as verifyRFC9421, bm as verifyStripeWebhook, bn as verifyVIChain } from '../index-BtU9yFda.js';
3
3
  import 'jose';
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-DOrqNMgy.js';
1
+ import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-Bxqj1sKY.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
@@ -140,32 +140,86 @@ interface VerifiedOrganization {
140
140
  trustScore: number;
141
141
  }
142
142
  /**
143
- * PDLSS policy information returned with verification
143
+ * PDLSS policy information returned with verification.
144
+ *
145
+ * @deprecated v2.2.4 — verify-access no longer returns the full PDLSS to the
146
+ * merchant. Read `EnhancedVerificationResult.verificationContext.pdlssCheck`
147
+ * instead for the merchant-facing summary, and `appliedPolicy` (top-level on
148
+ * the verification result) for the boundary name + policy version. The full
149
+ * PDLSS is owner-side only (queryable via `/api/agents/:id` when
150
+ * authenticated as the agent owner).
144
151
  */
145
152
  interface PDLSSInfo {
146
- /** Whether purpose was allowed */
147
153
  purposeAllowed: boolean;
148
- /** Whether within duration constraints */
149
154
  withinDuration: boolean;
150
- /** Whether within limits */
151
155
  withinLimits: boolean;
152
- /** Whether scope is allowed */
153
156
  scopeAllowed: boolean;
154
- /** Whether self-instantiation is allowed (if applicable) */
155
157
  selfInstantiationAllowed: boolean;
156
- /** Allowed purpose categories */
157
158
  allowedPurposes?: string[];
158
- /** Transaction limits */
159
159
  limits?: Record<string, number>;
160
- /** Allowed scope/resources */
161
160
  scope?: string[];
162
- /** Applied policy details */
163
- appliedPolicy?: {
164
- boundaryId: string;
165
- boundaryName: string;
166
- policyId: string;
167
- policyVersion: string;
161
+ /** Applied policy details. Boundary/policy UUIDs deliberately not included. */
162
+ appliedPolicy?: AppliedPolicy;
163
+ }
164
+ /**
165
+ * Applied policy — merchant-facing identifiers only.
166
+ *
167
+ * Boundary and policy UUIDs are deliberately not surfaced; merchants and
168
+ * agent owners are different tenants and internal join keys are a
169
+ * cross-tenant correlation primitive. Internal callers that need UUIDs
170
+ * query the boundary/policy tables directly.
171
+ */
172
+ interface AppliedPolicy {
173
+ boundaryName: string;
174
+ policyVersion: string;
175
+ }
176
+ /**
177
+ * Structured "why" of a verification decision the merchant receives.
178
+ *
179
+ * Tells the merchant whether the agent ID was verified, whether the runtime
180
+ * challenge succeeded, whether the request was within PDLSS, and the agent's
181
+ * actual dynamic trust score — without exposing thresholds, scope lists, or
182
+ * other-tenant counterparty membership.
183
+ *
184
+ * `attestations` is empty unless the calling endpoint's access policy
185
+ * declared `required_attestations`. Each attestation carries a blockchain
186
+ * proof reference (or, in the future, a full ZKP) so the merchant can verify
187
+ * the underlying claim without seeing the raw underlying data (e.g. the
188
+ * Persona/ConnectID transaction).
189
+ */
190
+ interface VerificationContext {
191
+ idVerified: boolean;
192
+ runtimeChallenge: {
193
+ status: 'passed' | 'skipped' | 'failed' | 'timeout' | 'not_supported';
194
+ checkedAt: string | null;
195
+ };
196
+ pdlssCheck: {
197
+ /** Outcome only — no thresholds disclosed. */
198
+ result: 'within' | 'exceeded' | 'denied' | 'not_evaluated';
199
+ /** Category-level only. */
200
+ purpose: 'approved' | 'denied';
201
+ scope: 'approved' | 'denied';
168
202
  };
203
+ /** Live composite score at decision time (not the stale snapshot column). */
204
+ dynamicTrustScore: number;
205
+ attestations: Attestation[];
206
+ }
207
+ /**
208
+ * Attestation returned in `VerificationContext.attestations`.
209
+ *
210
+ * `proofType: 'reference'` (interim) means `proof` is a blockchain txn hash
211
+ * the merchant CAN verify against on-chain records but doesn't HAVE to.
212
+ * `proofType: 'zkp'` (future) means `proof` is a zero-knowledge proof.
213
+ * Wire shape is forward-compatible — clients reading 'reference' today won't
214
+ * break when it becomes 'zkp'.
215
+ */
216
+ interface Attestation {
217
+ /** Attestation kind (e.g. `verified_human_party`). */
218
+ type: string;
219
+ status: 'passed' | 'failed';
220
+ validUntil?: string;
221
+ proofType: 'reference' | 'zkp';
222
+ proof: string;
169
223
  }
170
224
  /**
171
225
  * Guidance information for unverified agents
@@ -183,6 +237,25 @@ interface GuidanceInfo {
183
237
  /**
184
238
  * Complete verification result
185
239
  */
240
+ /**
241
+ * Single failed gate on a verify-access denial. Aggregated into
242
+ * `VerificationResult.failures[]` so partners can see every blocker in one
243
+ * response. v2.9.8 (defect M1) — pre-fix the response was fail-fast on the
244
+ * first failed gate, forcing a fix-and-retry cascade through PDLSS
245
+ * dimensions, counterparty allowlist, trust score, and attestations.
246
+ *
247
+ * `dimension` is namespaced so receivers can group by gate family:
248
+ * - `agent.<lookup|status>` (hard prereqs)
249
+ * - `pdlss.<purpose|duration|limits|scope|selfInstantiation>`
250
+ * - `counterparty.<allowlist|trust>`
251
+ * - `attestation.<type>` (e.g. `attestation.verified_human_party`)
252
+ * - `endpoint.<deactivated|trust|policy>`
253
+ */
254
+ interface AccessFailure {
255
+ dimension: string;
256
+ message: string;
257
+ guidance?: string;
258
+ }
186
259
  interface VerificationResult {
187
260
  /** Whether the agent is verified */
188
261
  verified: boolean;
@@ -200,6 +273,13 @@ interface VerificationResult {
200
273
  guidance?: GuidanceInfo;
201
274
  /** Reasons for denial (if not allowed) */
202
275
  denialReasons?: string[];
276
+ /**
277
+ * All policy / gate failures detected on this verify-access call.
278
+ * v2.9.8+ — empty when allowed. Iterate this for the full debug picture
279
+ * instead of consuming `denialReasons` (which only carries the headline
280
+ * message of each failure).
281
+ */
282
+ failures?: AccessFailure[];
203
283
  /** Whether step-up authentication is required */
204
284
  requiresStepUp?: boolean;
205
285
  /** Whether approval is required */
@@ -306,11 +386,18 @@ interface RouteAccessConfig {
306
386
  maxTransactionValue?: number;
307
387
  }
308
388
  /**
309
- * Express middleware options
389
+ * Express middleware options.
390
+ *
391
+ * v2.9.7 removed the `routes` field — per-route policy now lives in the
392
+ * AstraSync dashboard (gated by team.role admin auth + audit + alerts).
393
+ * The middleware fetches routes from the backend via
394
+ * `GET /endpoints/:counterpartyId/routes` on init and refreshes
395
+ * periodically (override interval via `routesRefreshMs`). Set
396
+ * `counterpartyId` on `GatewayConfig` so the middleware knows which
397
+ * endpoint to fetch policy for; without it, the middleware logs a warning
398
+ * and falls through (allows all) — useful for local dev only.
310
399
  */
311
400
  interface ExpressMiddlewareOptions extends GatewayConfig {
312
- /** Route access configurations */
313
- routes?: RouteAccessConfig[];
314
401
  /** Function to extract credentials from request */
315
402
  extractCredentials?: (req: unknown) => AgentCredentials;
316
403
  /** Function to extract purpose from request */
@@ -323,15 +410,24 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
323
410
  recordDecisions?: boolean;
324
411
  /** Enable runtime challenge for all verify-access calls (default: true) */
325
412
  enableRuntimeChallenge?: boolean;
413
+ /**
414
+ * Refresh interval (ms) for the remote-fetched route policy. Default:
415
+ * 5 minutes. Operators can shorten this to test policy edits faster, or
416
+ * lengthen it to reduce network chatter.
417
+ */
418
+ routesRefreshMs?: number;
326
419
  }
327
420
  /**
328
- * Next.js middleware options
421
+ * Next.js middleware options.
422
+ *
423
+ * v2.9.7 removed the `routes` field — see `ExpressMiddlewareOptions` for
424
+ * the rationale. Same fetch-from-backend model applies here.
329
425
  */
330
426
  interface NextJsMiddlewareOptions extends GatewayConfig {
331
- /** Route access configurations */
332
- routes?: RouteAccessConfig[];
333
427
  /** Paths to skip verification */
334
428
  skipPaths?: string[];
429
+ /** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
430
+ routesRefreshMs?: number;
335
431
  /** Whether to show Commerce Shield overlay for unverified */
336
432
  showCommerceShield?: boolean;
337
433
  /** Commerce Shield configuration */
@@ -357,14 +453,21 @@ interface SDKOptions extends GatewayConfig {
357
453
  };
358
454
  }
359
455
  /**
360
- * Token guidance returned from verify-access
456
+ * Token guidance returned from verify-access.
457
+ *
458
+ * `recommendedRateLimit` carries `requestsPerMinute` and `currency` only.
459
+ * `maxTransactionValue` was removed in v2.2.4 — it leaked the agent's
460
+ * spending headroom to the merchant, which is a price-discrimination signal
461
+ * (a merchant could see the agent's autonomous threshold and price the
462
+ * transaction just under it to capture surplus). The agent's SDK receives
463
+ * its own limits separately for client-side budgeting; the merchant's
464
+ * decision doesn't need amount info.
361
465
  */
362
466
  interface TokenGuidance {
363
467
  recommendedScopes: string[];
364
468
  recommendedTtlSeconds: number;
365
469
  recommendedRateLimit?: {
366
470
  requestsPerMinute: number;
367
- maxTransactionValue?: number;
368
471
  currency?: string;
369
472
  };
370
473
  jurisdictionConstraints?: string[];
@@ -388,12 +491,19 @@ interface RuntimeChallengeResult {
388
491
  reason?: string;
389
492
  }
390
493
  /**
391
- * Enhanced verification result (extends existing VerificationResult)
494
+ * Enhanced verification result (extends existing VerificationResult).
495
+ *
496
+ * - `appliedPolicy`: surfaces the boundary name + policy version that drove
497
+ * the decision (no UUIDs).
498
+ * - `verificationContext`: structured "why" for the merchant — see
499
+ * `VerificationContext` for the full shape.
392
500
  */
393
501
  interface EnhancedVerificationResult extends VerificationResult {
394
502
  sessionId?: string;
395
503
  runtimeChallenge?: RuntimeChallengeResult;
396
504
  tokenGuidance?: TokenGuidance;
505
+ appliedPolicy?: AppliedPolicy;
506
+ verificationContext?: VerificationContext;
397
507
  recommendation?: 'grant' | 'deny' | 'step_up_required';
398
508
  recommendationReasons?: string[];
399
509
  }
@@ -140,32 +140,86 @@ interface VerifiedOrganization {
140
140
  trustScore: number;
141
141
  }
142
142
  /**
143
- * PDLSS policy information returned with verification
143
+ * PDLSS policy information returned with verification.
144
+ *
145
+ * @deprecated v2.2.4 — verify-access no longer returns the full PDLSS to the
146
+ * merchant. Read `EnhancedVerificationResult.verificationContext.pdlssCheck`
147
+ * instead for the merchant-facing summary, and `appliedPolicy` (top-level on
148
+ * the verification result) for the boundary name + policy version. The full
149
+ * PDLSS is owner-side only (queryable via `/api/agents/:id` when
150
+ * authenticated as the agent owner).
144
151
  */
145
152
  interface PDLSSInfo {
146
- /** Whether purpose was allowed */
147
153
  purposeAllowed: boolean;
148
- /** Whether within duration constraints */
149
154
  withinDuration: boolean;
150
- /** Whether within limits */
151
155
  withinLimits: boolean;
152
- /** Whether scope is allowed */
153
156
  scopeAllowed: boolean;
154
- /** Whether self-instantiation is allowed (if applicable) */
155
157
  selfInstantiationAllowed: boolean;
156
- /** Allowed purpose categories */
157
158
  allowedPurposes?: string[];
158
- /** Transaction limits */
159
159
  limits?: Record<string, number>;
160
- /** Allowed scope/resources */
161
160
  scope?: string[];
162
- /** Applied policy details */
163
- appliedPolicy?: {
164
- boundaryId: string;
165
- boundaryName: string;
166
- policyId: string;
167
- policyVersion: string;
161
+ /** Applied policy details. Boundary/policy UUIDs deliberately not included. */
162
+ appliedPolicy?: AppliedPolicy;
163
+ }
164
+ /**
165
+ * Applied policy — merchant-facing identifiers only.
166
+ *
167
+ * Boundary and policy UUIDs are deliberately not surfaced; merchants and
168
+ * agent owners are different tenants and internal join keys are a
169
+ * cross-tenant correlation primitive. Internal callers that need UUIDs
170
+ * query the boundary/policy tables directly.
171
+ */
172
+ interface AppliedPolicy {
173
+ boundaryName: string;
174
+ policyVersion: string;
175
+ }
176
+ /**
177
+ * Structured "why" of a verification decision the merchant receives.
178
+ *
179
+ * Tells the merchant whether the agent ID was verified, whether the runtime
180
+ * challenge succeeded, whether the request was within PDLSS, and the agent's
181
+ * actual dynamic trust score — without exposing thresholds, scope lists, or
182
+ * other-tenant counterparty membership.
183
+ *
184
+ * `attestations` is empty unless the calling endpoint's access policy
185
+ * declared `required_attestations`. Each attestation carries a blockchain
186
+ * proof reference (or, in the future, a full ZKP) so the merchant can verify
187
+ * the underlying claim without seeing the raw underlying data (e.g. the
188
+ * Persona/ConnectID transaction).
189
+ */
190
+ interface VerificationContext {
191
+ idVerified: boolean;
192
+ runtimeChallenge: {
193
+ status: 'passed' | 'skipped' | 'failed' | 'timeout' | 'not_supported';
194
+ checkedAt: string | null;
195
+ };
196
+ pdlssCheck: {
197
+ /** Outcome only — no thresholds disclosed. */
198
+ result: 'within' | 'exceeded' | 'denied' | 'not_evaluated';
199
+ /** Category-level only. */
200
+ purpose: 'approved' | 'denied';
201
+ scope: 'approved' | 'denied';
168
202
  };
203
+ /** Live composite score at decision time (not the stale snapshot column). */
204
+ dynamicTrustScore: number;
205
+ attestations: Attestation[];
206
+ }
207
+ /**
208
+ * Attestation returned in `VerificationContext.attestations`.
209
+ *
210
+ * `proofType: 'reference'` (interim) means `proof` is a blockchain txn hash
211
+ * the merchant CAN verify against on-chain records but doesn't HAVE to.
212
+ * `proofType: 'zkp'` (future) means `proof` is a zero-knowledge proof.
213
+ * Wire shape is forward-compatible — clients reading 'reference' today won't
214
+ * break when it becomes 'zkp'.
215
+ */
216
+ interface Attestation {
217
+ /** Attestation kind (e.g. `verified_human_party`). */
218
+ type: string;
219
+ status: 'passed' | 'failed';
220
+ validUntil?: string;
221
+ proofType: 'reference' | 'zkp';
222
+ proof: string;
169
223
  }
170
224
  /**
171
225
  * Guidance information for unverified agents
@@ -183,6 +237,25 @@ interface GuidanceInfo {
183
237
  /**
184
238
  * Complete verification result
185
239
  */
240
+ /**
241
+ * Single failed gate on a verify-access denial. Aggregated into
242
+ * `VerificationResult.failures[]` so partners can see every blocker in one
243
+ * response. v2.9.8 (defect M1) — pre-fix the response was fail-fast on the
244
+ * first failed gate, forcing a fix-and-retry cascade through PDLSS
245
+ * dimensions, counterparty allowlist, trust score, and attestations.
246
+ *
247
+ * `dimension` is namespaced so receivers can group by gate family:
248
+ * - `agent.<lookup|status>` (hard prereqs)
249
+ * - `pdlss.<purpose|duration|limits|scope|selfInstantiation>`
250
+ * - `counterparty.<allowlist|trust>`
251
+ * - `attestation.<type>` (e.g. `attestation.verified_human_party`)
252
+ * - `endpoint.<deactivated|trust|policy>`
253
+ */
254
+ interface AccessFailure {
255
+ dimension: string;
256
+ message: string;
257
+ guidance?: string;
258
+ }
186
259
  interface VerificationResult {
187
260
  /** Whether the agent is verified */
188
261
  verified: boolean;
@@ -200,6 +273,13 @@ interface VerificationResult {
200
273
  guidance?: GuidanceInfo;
201
274
  /** Reasons for denial (if not allowed) */
202
275
  denialReasons?: string[];
276
+ /**
277
+ * All policy / gate failures detected on this verify-access call.
278
+ * v2.9.8+ — empty when allowed. Iterate this for the full debug picture
279
+ * instead of consuming `denialReasons` (which only carries the headline
280
+ * message of each failure).
281
+ */
282
+ failures?: AccessFailure[];
203
283
  /** Whether step-up authentication is required */
204
284
  requiresStepUp?: boolean;
205
285
  /** Whether approval is required */
@@ -306,11 +386,18 @@ interface RouteAccessConfig {
306
386
  maxTransactionValue?: number;
307
387
  }
308
388
  /**
309
- * Express middleware options
389
+ * Express middleware options.
390
+ *
391
+ * v2.9.7 removed the `routes` field — per-route policy now lives in the
392
+ * AstraSync dashboard (gated by team.role admin auth + audit + alerts).
393
+ * The middleware fetches routes from the backend via
394
+ * `GET /endpoints/:counterpartyId/routes` on init and refreshes
395
+ * periodically (override interval via `routesRefreshMs`). Set
396
+ * `counterpartyId` on `GatewayConfig` so the middleware knows which
397
+ * endpoint to fetch policy for; without it, the middleware logs a warning
398
+ * and falls through (allows all) — useful for local dev only.
310
399
  */
311
400
  interface ExpressMiddlewareOptions extends GatewayConfig {
312
- /** Route access configurations */
313
- routes?: RouteAccessConfig[];
314
401
  /** Function to extract credentials from request */
315
402
  extractCredentials?: (req: unknown) => AgentCredentials;
316
403
  /** Function to extract purpose from request */
@@ -323,15 +410,24 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
323
410
  recordDecisions?: boolean;
324
411
  /** Enable runtime challenge for all verify-access calls (default: true) */
325
412
  enableRuntimeChallenge?: boolean;
413
+ /**
414
+ * Refresh interval (ms) for the remote-fetched route policy. Default:
415
+ * 5 minutes. Operators can shorten this to test policy edits faster, or
416
+ * lengthen it to reduce network chatter.
417
+ */
418
+ routesRefreshMs?: number;
326
419
  }
327
420
  /**
328
- * Next.js middleware options
421
+ * Next.js middleware options.
422
+ *
423
+ * v2.9.7 removed the `routes` field — see `ExpressMiddlewareOptions` for
424
+ * the rationale. Same fetch-from-backend model applies here.
329
425
  */
330
426
  interface NextJsMiddlewareOptions extends GatewayConfig {
331
- /** Route access configurations */
332
- routes?: RouteAccessConfig[];
333
427
  /** Paths to skip verification */
334
428
  skipPaths?: string[];
429
+ /** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
430
+ routesRefreshMs?: number;
335
431
  /** Whether to show Commerce Shield overlay for unverified */
336
432
  showCommerceShield?: boolean;
337
433
  /** Commerce Shield configuration */
@@ -357,14 +453,21 @@ interface SDKOptions extends GatewayConfig {
357
453
  };
358
454
  }
359
455
  /**
360
- * Token guidance returned from verify-access
456
+ * Token guidance returned from verify-access.
457
+ *
458
+ * `recommendedRateLimit` carries `requestsPerMinute` and `currency` only.
459
+ * `maxTransactionValue` was removed in v2.2.4 — it leaked the agent's
460
+ * spending headroom to the merchant, which is a price-discrimination signal
461
+ * (a merchant could see the agent's autonomous threshold and price the
462
+ * transaction just under it to capture surplus). The agent's SDK receives
463
+ * its own limits separately for client-side budgeting; the merchant's
464
+ * decision doesn't need amount info.
361
465
  */
362
466
  interface TokenGuidance {
363
467
  recommendedScopes: string[];
364
468
  recommendedTtlSeconds: number;
365
469
  recommendedRateLimit?: {
366
470
  requestsPerMinute: number;
367
- maxTransactionValue?: number;
368
471
  currency?: string;
369
472
  };
370
473
  jurisdictionConstraints?: string[];
@@ -388,12 +491,19 @@ interface RuntimeChallengeResult {
388
491
  reason?: string;
389
492
  }
390
493
  /**
391
- * Enhanced verification result (extends existing VerificationResult)
494
+ * Enhanced verification result (extends existing VerificationResult).
495
+ *
496
+ * - `appliedPolicy`: surfaces the boundary name + policy version that drove
497
+ * the decision (no UUIDs).
498
+ * - `verificationContext`: structured "why" for the merchant — see
499
+ * `VerificationContext` for the full shape.
392
500
  */
393
501
  interface EnhancedVerificationResult extends VerificationResult {
394
502
  sessionId?: string;
395
503
  runtimeChallenge?: RuntimeChallengeResult;
396
504
  tokenGuidance?: TokenGuidance;
505
+ appliedPolicy?: AppliedPolicy;
506
+ verificationContext?: VerificationContext;
397
507
  recommendation?: 'grant' | 'deny' | 'step_up_required';
398
508
  recommendationReasons?: string[];
399
509
  }
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-DOrqNMgy.mjs';
1
+ import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-Bxqj1sKY.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
@@ -1,4 +1,4 @@
1
- import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-DOrqNMgy.mjs';
1
+ import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-Bxqj1sKY.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Commerce Shield Component
@@ -1,4 +1,4 @@
1
- import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-DOrqNMgy.js';
1
+ import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-Bxqj1sKY.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Commerce Shield Component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrasyncai/verification-gateway",
3
- "version": "2.2.3",
3
+ "version": "2.3.7",
4
4
  "description": "Universal Verification Gateway for AstraSync KYA Platform - verify AI agents across any counterparty type",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -16,6 +16,11 @@
16
16
  "import": "./dist/adapters/express.mjs",
17
17
  "require": "./dist/adapters/express.js"
18
18
  },
19
+ "./mcp": {
20
+ "types": "./dist/adapters/mcp.d.ts",
21
+ "import": "./dist/adapters/mcp.mjs",
22
+ "require": "./dist/adapters/mcp.js"
23
+ },
19
24
  "./nextjs": {
20
25
  "types": "./dist/adapters/nextjs.d.ts",
21
26
  "import": "./dist/adapters/nextjs.mjs",