@astrasyncai/verification-gateway 2.3.4 → 2.3.8

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 +101 -22
  6. package/dist/adapters/express.js.map +1 -1
  7. package/dist/adapters/express.mjs +100 -19
  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 +619 -0
  12. package/dist/adapters/mcp.js.map +1 -0
  13. package/dist/adapters/mcp.mjs +585 -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 +76 -4
  18. package/dist/adapters/nextjs.js.map +1 -1
  19. package/dist/adapters/nextjs.mjs +76 -4
  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 +22 -2
  24. package/dist/adapters/sdk.js.map +1 -1
  25. package/dist/adapters/sdk.mjs +22 -2
  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 +28 -2
  30. package/dist/browser/background.js.map +1 -1
  31. package/dist/browser/background.mjs +28 -2
  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 +28 -2
  42. package/dist/cursor/extension.js.map +1 -1
  43. package/dist/cursor/extension.mjs +28 -2
  44. package/dist/cursor/extension.mjs.map +1 -1
  45. package/dist/{express-DtvJ6BGt.d.mts → express-BNWqDVIz.d.mts} +17 -14
  46. package/dist/{express-CraCA8_t.d.ts → express-BYup_4Jg.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 +28 -2
  50. package/dist/gateway/gateway.js.map +1 -1
  51. package/dist/gateway/gateway.mjs +28 -2
  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-SEgnWzkf.d.mts → index-BHXa2WTO.d.mts} +1 -1
  56. package/dist/{index-BZ85CeEr.d.mts → index-CK4lNLVn.d.mts} +1 -1
  57. package/dist/{index--KzVRa32.d.ts → index-CSMpOcxV.d.ts} +1 -1
  58. package/dist/{index-BzAFmemy.d.ts → index-DN3ztP2d.d.ts} +1 -1
  59. package/dist/index.d.mts +7 -7
  60. package/dist/index.d.ts +7 -7
  61. package/dist/index.js +135 -21
  62. package/dist/index.js.map +1 -1
  63. package/dist/index.mjs +135 -21
  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-DZHAn9j-.d.mts → nextjs-Bzdfu8Eg.d.mts} +8 -2
  68. package/dist/{nextjs-B8o9C0t6.d.ts → nextjs-C4h_MpgK.d.ts} +8 -2
  69. package/dist/{sdk-CRSUFQH2.d.mts → sdk-CDdD7EcJ.d.mts} +1 -1
  70. package/dist/{sdk-BQ3olp3v.d.ts → sdk-Tzsn6s-O.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-osMd_dpT.d.ts → types-Bzp1SMaD.d.ts} +1 -1
  74. package/dist/{types-JMgPake9.d.mts → types-D_tmbDA_.d.mts} +75 -7
  75. package/dist/{types-JMgPake9.d.ts → types-D_tmbDA_.d.ts} +75 -7
  76. package/dist/{types-aN1UHhyy.d.mts → types-z-QVnG4b.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-aN1UHhyy.mjs';
2
- import '../types-JMgPake9.mjs';
1
+ import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, a as LocalPurposeRule } from '../types-z-QVnG4b.mjs';
2
+ import '../types-D_tmbDA_.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-osMd_dpT.js';
2
- import '../types-JMgPake9.js';
1
+ import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, a as LocalPurposeRule } from '../types-Bzp1SMaD.js';
2
+ import '../types-D_tmbDA_.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-JMgPake9.mjs';
3
+ import { N as NextJsMiddlewareOptions } from './types-D_tmbDA_.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,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-JMgPake9.js';
3
+ import { N as NextJsMiddlewareOptions } from './types-D_tmbDA_.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,4 +1,4 @@
1
- import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-JMgPake9.mjs';
1
+ import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-D_tmbDA_.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-JMgPake9.js';
1
+ import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-D_tmbDA_.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Universal Verification Gateway - Access Level Definitions
@@ -1,3 +1,3 @@
1
- import '../types-JMgPake9.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-SEgnWzkf.mjs';
1
+ import '../types-D_tmbDA_.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-BHXa2WTO.mjs';
3
3
  import 'jose';
@@ -1,3 +1,3 @@
1
- import '../types-JMgPake9.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--KzVRa32.js';
1
+ import '../types-D_tmbDA_.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-CSMpOcxV.js';
3
3
  import 'jose';
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-JMgPake9.js';
1
+ import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-D_tmbDA_.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
@@ -97,6 +97,20 @@ interface GatewayConfig {
97
97
  * extra request is undesirable.
98
98
  */
99
99
  disableInitChecks?: boolean;
100
+ /**
101
+ * v2.3.8: emit `X-Astra-Gateway-Mode: pass-through` (with
102
+ * `X-Astra-Gateway-Reason: no-policy | no-match`) on responses where the
103
+ * middleware fell through without consulting verify-access. Lets integration
104
+ * tests assert "this endpoint should be gated; if it falls through, fail
105
+ * loudly". Default off; opt-in.
106
+ */
107
+ setPassThroughHeader?: boolean;
108
+ /**
109
+ * v2.3.8: dashboard origin used to construct configuration links in
110
+ * boot-time warnings (e.g. when no per-route policy is configured).
111
+ * Defaults to `https://app.astrasync.ai`.
112
+ */
113
+ dashboardUrl?: string;
100
114
  }
101
115
  /**
102
116
  * Verified agent information
@@ -237,6 +251,25 @@ interface GuidanceInfo {
237
251
  /**
238
252
  * Complete verification result
239
253
  */
254
+ /**
255
+ * Single failed gate on a verify-access denial. Aggregated into
256
+ * `VerificationResult.failures[]` so partners can see every blocker in one
257
+ * response. v2.9.8 (defect M1) — pre-fix the response was fail-fast on the
258
+ * first failed gate, forcing a fix-and-retry cascade through PDLSS
259
+ * dimensions, counterparty allowlist, trust score, and attestations.
260
+ *
261
+ * `dimension` is namespaced so receivers can group by gate family:
262
+ * - `agent.<lookup|status>` (hard prereqs)
263
+ * - `pdlss.<purpose|duration|limits|scope|selfInstantiation>`
264
+ * - `counterparty.<allowlist|trust>`
265
+ * - `attestation.<type>` (e.g. `attestation.verified_human_party`)
266
+ * - `endpoint.<deactivated|trust|policy>`
267
+ */
268
+ interface AccessFailure {
269
+ dimension: string;
270
+ message: string;
271
+ guidance?: string;
272
+ }
240
273
  interface VerificationResult {
241
274
  /** Whether the agent is verified */
242
275
  verified: boolean;
@@ -254,6 +287,13 @@ interface VerificationResult {
254
287
  guidance?: GuidanceInfo;
255
288
  /** Reasons for denial (if not allowed) */
256
289
  denialReasons?: string[];
290
+ /**
291
+ * All policy / gate failures detected on this verify-access call.
292
+ * v2.9.8+ — empty when allowed. Iterate this for the full debug picture
293
+ * instead of consuming `denialReasons` (which only carries the headline
294
+ * message of each failure).
295
+ */
296
+ failures?: AccessFailure[];
257
297
  /** Whether step-up authentication is required */
258
298
  requiresStepUp?: boolean;
259
299
  /** Whether approval is required */
@@ -360,11 +400,18 @@ interface RouteAccessConfig {
360
400
  maxTransactionValue?: number;
361
401
  }
362
402
  /**
363
- * Express middleware options
403
+ * Express middleware options.
404
+ *
405
+ * v2.9.7 removed the `routes` field — per-route policy now lives in the
406
+ * AstraSync dashboard (gated by team.role admin auth + audit + alerts).
407
+ * The middleware fetches routes from the backend via
408
+ * `GET /endpoints/:counterpartyId/routes` on init and refreshes
409
+ * periodically (override interval via `routesRefreshMs`). Set
410
+ * `counterpartyId` on `GatewayConfig` so the middleware knows which
411
+ * endpoint to fetch policy for; without it, the middleware logs a warning
412
+ * and falls through (allows all) — useful for local dev only.
364
413
  */
365
414
  interface ExpressMiddlewareOptions extends GatewayConfig {
366
- /** Route access configurations */
367
- routes?: RouteAccessConfig[];
368
415
  /** Function to extract credentials from request */
369
416
  extractCredentials?: (req: unknown) => AgentCredentials;
370
417
  /** Function to extract purpose from request */
@@ -377,15 +424,24 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
377
424
  recordDecisions?: boolean;
378
425
  /** Enable runtime challenge for all verify-access calls (default: true) */
379
426
  enableRuntimeChallenge?: boolean;
427
+ /**
428
+ * Refresh interval (ms) for the remote-fetched route policy. Default:
429
+ * 5 minutes. Operators can shorten this to test policy edits faster, or
430
+ * lengthen it to reduce network chatter.
431
+ */
432
+ routesRefreshMs?: number;
380
433
  }
381
434
  /**
382
- * Next.js middleware options
435
+ * Next.js middleware options.
436
+ *
437
+ * v2.9.7 removed the `routes` field — see `ExpressMiddlewareOptions` for
438
+ * the rationale. Same fetch-from-backend model applies here.
383
439
  */
384
440
  interface NextJsMiddlewareOptions extends GatewayConfig {
385
- /** Route access configurations */
386
- routes?: RouteAccessConfig[];
387
441
  /** Paths to skip verification */
388
442
  skipPaths?: string[];
443
+ /** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
444
+ routesRefreshMs?: number;
389
445
  /** Whether to show Commerce Shield overlay for unverified */
390
446
  showCommerceShield?: boolean;
391
447
  /** Commerce Shield configuration */
@@ -462,8 +518,20 @@ interface EnhancedVerificationResult extends VerificationResult {
462
518
  tokenGuidance?: TokenGuidance;
463
519
  appliedPolicy?: AppliedPolicy;
464
520
  verificationContext?: VerificationContext;
465
- recommendation?: 'grant' | 'deny' | 'step_up_required';
521
+ recommendation?: 'grant' | 'deny' | 'step_up_required' | 'audit';
466
522
  recommendationReasons?: string[];
523
+ /**
524
+ * v2.3.8: when an endpoint's `unverifiedAgentPolicy` is `'audit'`, the
525
+ * server returns the warning header to relay to the merchant's response.
526
+ * The Express + MCP middleware lift this into `res.setHeader(name, value)`
527
+ * before calling `next()`. Distinct vocabulary from the PDLSS-scope
528
+ * outbound `unverifiedCounterpartyPolicy: 'warn'` so raw JSON config can't
529
+ * conflate the two.
530
+ */
531
+ warningHeader?: {
532
+ name: string;
533
+ value: string;
534
+ };
467
535
  }
468
536
  /**
469
537
  * Cross-protocol credential config
@@ -97,6 +97,20 @@ interface GatewayConfig {
97
97
  * extra request is undesirable.
98
98
  */
99
99
  disableInitChecks?: boolean;
100
+ /**
101
+ * v2.3.8: emit `X-Astra-Gateway-Mode: pass-through` (with
102
+ * `X-Astra-Gateway-Reason: no-policy | no-match`) on responses where the
103
+ * middleware fell through without consulting verify-access. Lets integration
104
+ * tests assert "this endpoint should be gated; if it falls through, fail
105
+ * loudly". Default off; opt-in.
106
+ */
107
+ setPassThroughHeader?: boolean;
108
+ /**
109
+ * v2.3.8: dashboard origin used to construct configuration links in
110
+ * boot-time warnings (e.g. when no per-route policy is configured).
111
+ * Defaults to `https://app.astrasync.ai`.
112
+ */
113
+ dashboardUrl?: string;
100
114
  }
101
115
  /**
102
116
  * Verified agent information
@@ -237,6 +251,25 @@ interface GuidanceInfo {
237
251
  /**
238
252
  * Complete verification result
239
253
  */
254
+ /**
255
+ * Single failed gate on a verify-access denial. Aggregated into
256
+ * `VerificationResult.failures[]` so partners can see every blocker in one
257
+ * response. v2.9.8 (defect M1) — pre-fix the response was fail-fast on the
258
+ * first failed gate, forcing a fix-and-retry cascade through PDLSS
259
+ * dimensions, counterparty allowlist, trust score, and attestations.
260
+ *
261
+ * `dimension` is namespaced so receivers can group by gate family:
262
+ * - `agent.<lookup|status>` (hard prereqs)
263
+ * - `pdlss.<purpose|duration|limits|scope|selfInstantiation>`
264
+ * - `counterparty.<allowlist|trust>`
265
+ * - `attestation.<type>` (e.g. `attestation.verified_human_party`)
266
+ * - `endpoint.<deactivated|trust|policy>`
267
+ */
268
+ interface AccessFailure {
269
+ dimension: string;
270
+ message: string;
271
+ guidance?: string;
272
+ }
240
273
  interface VerificationResult {
241
274
  /** Whether the agent is verified */
242
275
  verified: boolean;
@@ -254,6 +287,13 @@ interface VerificationResult {
254
287
  guidance?: GuidanceInfo;
255
288
  /** Reasons for denial (if not allowed) */
256
289
  denialReasons?: string[];
290
+ /**
291
+ * All policy / gate failures detected on this verify-access call.
292
+ * v2.9.8+ — empty when allowed. Iterate this for the full debug picture
293
+ * instead of consuming `denialReasons` (which only carries the headline
294
+ * message of each failure).
295
+ */
296
+ failures?: AccessFailure[];
257
297
  /** Whether step-up authentication is required */
258
298
  requiresStepUp?: boolean;
259
299
  /** Whether approval is required */
@@ -360,11 +400,18 @@ interface RouteAccessConfig {
360
400
  maxTransactionValue?: number;
361
401
  }
362
402
  /**
363
- * Express middleware options
403
+ * Express middleware options.
404
+ *
405
+ * v2.9.7 removed the `routes` field — per-route policy now lives in the
406
+ * AstraSync dashboard (gated by team.role admin auth + audit + alerts).
407
+ * The middleware fetches routes from the backend via
408
+ * `GET /endpoints/:counterpartyId/routes` on init and refreshes
409
+ * periodically (override interval via `routesRefreshMs`). Set
410
+ * `counterpartyId` on `GatewayConfig` so the middleware knows which
411
+ * endpoint to fetch policy for; without it, the middleware logs a warning
412
+ * and falls through (allows all) — useful for local dev only.
364
413
  */
365
414
  interface ExpressMiddlewareOptions extends GatewayConfig {
366
- /** Route access configurations */
367
- routes?: RouteAccessConfig[];
368
415
  /** Function to extract credentials from request */
369
416
  extractCredentials?: (req: unknown) => AgentCredentials;
370
417
  /** Function to extract purpose from request */
@@ -377,15 +424,24 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
377
424
  recordDecisions?: boolean;
378
425
  /** Enable runtime challenge for all verify-access calls (default: true) */
379
426
  enableRuntimeChallenge?: boolean;
427
+ /**
428
+ * Refresh interval (ms) for the remote-fetched route policy. Default:
429
+ * 5 minutes. Operators can shorten this to test policy edits faster, or
430
+ * lengthen it to reduce network chatter.
431
+ */
432
+ routesRefreshMs?: number;
380
433
  }
381
434
  /**
382
- * Next.js middleware options
435
+ * Next.js middleware options.
436
+ *
437
+ * v2.9.7 removed the `routes` field — see `ExpressMiddlewareOptions` for
438
+ * the rationale. Same fetch-from-backend model applies here.
383
439
  */
384
440
  interface NextJsMiddlewareOptions extends GatewayConfig {
385
- /** Route access configurations */
386
- routes?: RouteAccessConfig[];
387
441
  /** Paths to skip verification */
388
442
  skipPaths?: string[];
443
+ /** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
444
+ routesRefreshMs?: number;
389
445
  /** Whether to show Commerce Shield overlay for unverified */
390
446
  showCommerceShield?: boolean;
391
447
  /** Commerce Shield configuration */
@@ -462,8 +518,20 @@ interface EnhancedVerificationResult extends VerificationResult {
462
518
  tokenGuidance?: TokenGuidance;
463
519
  appliedPolicy?: AppliedPolicy;
464
520
  verificationContext?: VerificationContext;
465
- recommendation?: 'grant' | 'deny' | 'step_up_required';
521
+ recommendation?: 'grant' | 'deny' | 'step_up_required' | 'audit';
466
522
  recommendationReasons?: string[];
523
+ /**
524
+ * v2.3.8: when an endpoint's `unverifiedAgentPolicy` is `'audit'`, the
525
+ * server returns the warning header to relay to the merchant's response.
526
+ * The Express + MCP middleware lift this into `res.setHeader(name, value)`
527
+ * before calling `next()`. Distinct vocabulary from the PDLSS-scope
528
+ * outbound `unverifiedCounterpartyPolicy: 'warn'` so raw JSON config can't
529
+ * conflate the two.
530
+ */
531
+ warningHeader?: {
532
+ name: string;
533
+ value: string;
534
+ };
467
535
  }
468
536
  /**
469
537
  * Cross-protocol credential config
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-JMgPake9.mjs';
1
+ import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-D_tmbDA_.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-JMgPake9.mjs';
1
+ import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-D_tmbDA_.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-JMgPake9.js';
1
+ import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-D_tmbDA_.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.3.4",
3
+ "version": "2.3.8",
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",