@astrasyncai/verification-gateway 2.2.3 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) 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 +3 -9
  6. package/dist/adapters/express.js.map +1 -1
  7. package/dist/adapters/express.mjs +3 -9
  8. package/dist/adapters/express.mjs.map +1 -1
  9. package/dist/adapters/nextjs.d.mts +2 -2
  10. package/dist/adapters/nextjs.d.ts +2 -2
  11. package/dist/adapters/nextjs.js +3 -9
  12. package/dist/adapters/nextjs.js.map +1 -1
  13. package/dist/adapters/nextjs.mjs +3 -9
  14. package/dist/adapters/nextjs.mjs.map +1 -1
  15. package/dist/adapters/sdk.d.mts +2 -2
  16. package/dist/adapters/sdk.d.ts +2 -2
  17. package/dist/adapters/sdk.js +3 -9
  18. package/dist/adapters/sdk.js.map +1 -1
  19. package/dist/adapters/sdk.mjs +3 -9
  20. package/dist/adapters/sdk.mjs.map +1 -1
  21. package/dist/agent/index.d.mts +2 -2
  22. package/dist/agent/index.d.ts +2 -2
  23. package/dist/browser/background.js +3 -9
  24. package/dist/browser/background.js.map +1 -1
  25. package/dist/browser/background.mjs +3 -9
  26. package/dist/browser/background.mjs.map +1 -1
  27. package/dist/browser/browser-adapter.d.mts +2 -2
  28. package/dist/browser/browser-adapter.d.ts +2 -2
  29. package/dist/cli/index.d.mts +2 -2
  30. package/dist/cli/index.d.ts +2 -2
  31. package/dist/cursor/cursor-adapter.d.mts +2 -2
  32. package/dist/cursor/cursor-adapter.d.ts +2 -2
  33. package/dist/cursor/extension.d.mts +2 -2
  34. package/dist/cursor/extension.d.ts +2 -2
  35. package/dist/cursor/extension.js +3 -9
  36. package/dist/cursor/extension.js.map +1 -1
  37. package/dist/cursor/extension.mjs +3 -9
  38. package/dist/cursor/extension.mjs.map +1 -1
  39. package/dist/{express-BtKlLI8U.d.ts → express-CraCA8_t.d.ts} +1 -1
  40. package/dist/{express-DgwpS8Ha.d.mts → express-DtvJ6BGt.d.mts} +1 -1
  41. package/dist/gateway/gateway.d.mts +2 -2
  42. package/dist/gateway/gateway.d.ts +2 -2
  43. package/dist/gateway/gateway.js +3 -9
  44. package/dist/gateway/gateway.js.map +1 -1
  45. package/dist/gateway/gateway.mjs +3 -9
  46. package/dist/gateway/gateway.mjs.map +1 -1
  47. package/dist/git-trigger/git-hooks.d.mts +2 -2
  48. package/dist/git-trigger/git-hooks.d.ts +2 -2
  49. package/dist/{index-Ba0Lvsjo.d.ts → index--KzVRa32.d.ts} +1 -1
  50. package/dist/{index-AzhK20t0.d.mts → index-BZ85CeEr.d.mts} +1 -1
  51. package/dist/{index-DpJS1JEI.d.ts → index-BzAFmemy.d.ts} +1 -1
  52. package/dist/{index-BaxpmTGA.d.mts → index-SEgnWzkf.d.mts} +1 -1
  53. package/dist/index.d.mts +7 -7
  54. package/dist/index.d.ts +7 -7
  55. package/dist/index.js +3 -9
  56. package/dist/index.js.map +1 -1
  57. package/dist/index.mjs +3 -9
  58. package/dist/index.mjs.map +1 -1
  59. package/dist/local-evaluator/evaluator.d.mts +2 -2
  60. package/dist/local-evaluator/evaluator.d.ts +2 -2
  61. package/dist/{nextjs-B2kg19c1.d.ts → nextjs-B8o9C0t6.d.ts} +1 -1
  62. package/dist/{nextjs-ZymQ8jDh.d.mts → nextjs-DZHAn9j-.d.mts} +1 -1
  63. package/dist/{sdk-Bso0FSI0.d.ts → sdk-BQ3olp3v.d.ts} +1 -1
  64. package/dist/{sdk-B7id0VFS.d.mts → sdk-CRSUFQH2.d.mts} +1 -1
  65. package/dist/transport/index.d.mts +2 -2
  66. package/dist/transport/index.d.ts +2 -2
  67. package/dist/{types-DOrqNMgy.d.mts → types-JMgPake9.d.mts} +86 -18
  68. package/dist/{types-DOrqNMgy.d.ts → types-JMgPake9.d.ts} +86 -18
  69. package/dist/{types-CgXPKUwi.d.mts → types-aN1UHhyy.d.mts} +1 -1
  70. package/dist/{types-BYKAY6Cc.d.ts → types-osMd_dpT.d.ts} +1 -1
  71. package/dist/ui/index.d.mts +1 -1
  72. package/dist/ui/index.d.ts +1 -1
  73. package/package.json +1 -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-aN1UHhyy.mjs';
2
+ import '../types-JMgPake9.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-osMd_dpT.js';
2
+ import '../types-JMgPake9.js';
3
3
 
4
4
  /**
5
5
  * Local PDLSS Evaluator
@@ -1,6 +1,6 @@
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-JMgPake9.js';
4
4
 
5
5
  /**
6
6
  * Create Next.js middleware for agent verification
@@ -1,6 +1,6 @@
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-JMgPake9.mjs';
4
4
 
5
5
  /**
6
6
  * Create Next.js middleware for agent verification
@@ -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-JMgPake9.js';
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.mjs';
1
+ import { a as AccessLevel, i as TrustLevel, S as SDKOptions, V as VerificationResult } from './types-JMgPake9.mjs';
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-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';
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-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';
3
3
  import 'jose';
@@ -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
@@ -357,14 +411,21 @@ interface SDKOptions extends GatewayConfig {
357
411
  };
358
412
  }
359
413
  /**
360
- * Token guidance returned from verify-access
414
+ * Token guidance returned from verify-access.
415
+ *
416
+ * `recommendedRateLimit` carries `requestsPerMinute` and `currency` only.
417
+ * `maxTransactionValue` was removed in v2.2.4 — it leaked the agent's
418
+ * spending headroom to the merchant, which is a price-discrimination signal
419
+ * (a merchant could see the agent's autonomous threshold and price the
420
+ * transaction just under it to capture surplus). The agent's SDK receives
421
+ * its own limits separately for client-side budgeting; the merchant's
422
+ * decision doesn't need amount info.
361
423
  */
362
424
  interface TokenGuidance {
363
425
  recommendedScopes: string[];
364
426
  recommendedTtlSeconds: number;
365
427
  recommendedRateLimit?: {
366
428
  requestsPerMinute: number;
367
- maxTransactionValue?: number;
368
429
  currency?: string;
369
430
  };
370
431
  jurisdictionConstraints?: string[];
@@ -388,12 +449,19 @@ interface RuntimeChallengeResult {
388
449
  reason?: string;
389
450
  }
390
451
  /**
391
- * Enhanced verification result (extends existing VerificationResult)
452
+ * Enhanced verification result (extends existing VerificationResult).
453
+ *
454
+ * - `appliedPolicy`: surfaces the boundary name + policy version that drove
455
+ * the decision (no UUIDs).
456
+ * - `verificationContext`: structured "why" for the merchant — see
457
+ * `VerificationContext` for the full shape.
392
458
  */
393
459
  interface EnhancedVerificationResult extends VerificationResult {
394
460
  sessionId?: string;
395
461
  runtimeChallenge?: RuntimeChallengeResult;
396
462
  tokenGuidance?: TokenGuidance;
463
+ appliedPolicy?: AppliedPolicy;
464
+ verificationContext?: VerificationContext;
397
465
  recommendation?: 'grant' | 'deny' | 'step_up_required';
398
466
  recommendationReasons?: string[];
399
467
  }
@@ -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
@@ -357,14 +411,21 @@ interface SDKOptions extends GatewayConfig {
357
411
  };
358
412
  }
359
413
  /**
360
- * Token guidance returned from verify-access
414
+ * Token guidance returned from verify-access.
415
+ *
416
+ * `recommendedRateLimit` carries `requestsPerMinute` and `currency` only.
417
+ * `maxTransactionValue` was removed in v2.2.4 — it leaked the agent's
418
+ * spending headroom to the merchant, which is a price-discrimination signal
419
+ * (a merchant could see the agent's autonomous threshold and price the
420
+ * transaction just under it to capture surplus). The agent's SDK receives
421
+ * its own limits separately for client-side budgeting; the merchant's
422
+ * decision doesn't need amount info.
361
423
  */
362
424
  interface TokenGuidance {
363
425
  recommendedScopes: string[];
364
426
  recommendedTtlSeconds: number;
365
427
  recommendedRateLimit?: {
366
428
  requestsPerMinute: number;
367
- maxTransactionValue?: number;
368
429
  currency?: string;
369
430
  };
370
431
  jurisdictionConstraints?: string[];
@@ -388,12 +449,19 @@ interface RuntimeChallengeResult {
388
449
  reason?: string;
389
450
  }
390
451
  /**
391
- * Enhanced verification result (extends existing VerificationResult)
452
+ * Enhanced verification result (extends existing VerificationResult).
453
+ *
454
+ * - `appliedPolicy`: surfaces the boundary name + policy version that drove
455
+ * the decision (no UUIDs).
456
+ * - `verificationContext`: structured "why" for the merchant — see
457
+ * `VerificationContext` for the full shape.
392
458
  */
393
459
  interface EnhancedVerificationResult extends VerificationResult {
394
460
  sessionId?: string;
395
461
  runtimeChallenge?: RuntimeChallengeResult;
396
462
  tokenGuidance?: TokenGuidance;
463
+ appliedPolicy?: AppliedPolicy;
464
+ verificationContext?: VerificationContext;
397
465
  recommendation?: 'grant' | 'deny' | 'step_up_required';
398
466
  recommendationReasons?: string[];
399
467
  }
@@ -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-JMgPake9.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
@@ -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-JMgPake9.js';
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-JMgPake9.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-JMgPake9.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.4",
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",