@astrasyncai/verification-gateway 2.3.4 → 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.
- package/dist/adapter-interface/interface.d.mts +2 -2
- package/dist/adapter-interface/interface.d.ts +2 -2
- package/dist/adapters/express.d.mts +2 -2
- package/dist/adapters/express.d.ts +2 -2
- package/dist/adapters/express.js +59 -21
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +58 -18
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +245 -0
- package/dist/adapters/mcp.d.ts +245 -0
- package/dist/adapters/mcp.js +589 -0
- package/dist/adapters/mcp.js.map +1 -0
- package/dist/adapters/mcp.mjs +555 -0
- package/dist/adapters/mcp.mjs.map +1 -0
- package/dist/adapters/nextjs.d.mts +2 -2
- package/dist/adapters/nextjs.d.ts +2 -2
- package/dist/adapters/nextjs.js +57 -3
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +57 -3
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.d.mts +2 -2
- package/dist/adapters/sdk.d.ts +2 -2
- package/dist/adapters/sdk.js +3 -1
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +3 -1
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/agent/index.d.mts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/browser/background.js +9 -1
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +9 -1
- package/dist/browser/background.mjs.map +1 -1
- package/dist/browser/browser-adapter.d.mts +2 -2
- package/dist/browser/browser-adapter.d.ts +2 -2
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cursor/cursor-adapter.d.mts +2 -2
- package/dist/cursor/cursor-adapter.d.ts +2 -2
- package/dist/cursor/extension.d.mts +2 -2
- package/dist/cursor/extension.d.ts +2 -2
- package/dist/cursor/extension.js +9 -1
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +9 -1
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/{express-DtvJ6BGt.d.mts → express-D9oRsseg.d.mts} +17 -14
- package/dist/{express-CraCA8_t.d.ts → express-DMSIl20m.d.ts} +17 -14
- package/dist/gateway/gateway.d.mts +2 -2
- package/dist/gateway/gateway.d.ts +2 -2
- package/dist/gateway/gateway.js +9 -1
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +9 -1
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/git-trigger/git-hooks.d.mts +2 -2
- package/dist/git-trigger/git-hooks.d.ts +2 -2
- package/dist/{index-BZ85CeEr.d.mts → index-Bn_7eGjb.d.mts} +1 -1
- package/dist/{index--KzVRa32.d.ts → index-BtU9yFda.d.ts} +1 -1
- package/dist/{index-BzAFmemy.d.ts → index-EwUWXC5T.d.ts} +1 -1
- package/dist/{index-SEgnWzkf.d.mts → index-YNPs800Z.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +93 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -20
- package/dist/index.mjs.map +1 -1
- package/dist/local-evaluator/evaluator.d.mts +2 -2
- package/dist/local-evaluator/evaluator.d.ts +2 -2
- package/dist/{nextjs-B8o9C0t6.d.ts → nextjs-B5ZBpHra.d.ts} +8 -2
- package/dist/{nextjs-DZHAn9j-.d.mts → nextjs-BLtjRbc-.d.mts} +8 -2
- package/dist/{sdk-CRSUFQH2.d.mts → sdk-BhkxvqnK.d.mts} +1 -1
- package/dist/{sdk-BQ3olp3v.d.ts → sdk-YmE3RG8n.d.ts} +1 -1
- package/dist/transport/index.d.mts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-osMd_dpT.d.ts → types-BecRpozv.d.ts} +1 -1
- package/dist/{types-JMgPake9.d.mts → types-Bxqj1sKY.d.mts} +48 -6
- package/dist/{types-JMgPake9.d.ts → types-Bxqj1sKY.d.ts} +48 -6
- package/dist/{types-aN1UHhyy.d.mts → types-DxY5zt4z.d.mts} +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- 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-
|
|
2
|
-
import '../types-
|
|
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-
|
|
2
|
-
import '../types-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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.
|
|
@@ -237,6 +237,25 @@ interface GuidanceInfo {
|
|
|
237
237
|
/**
|
|
238
238
|
* Complete verification result
|
|
239
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
|
+
}
|
|
240
259
|
interface VerificationResult {
|
|
241
260
|
/** Whether the agent is verified */
|
|
242
261
|
verified: boolean;
|
|
@@ -254,6 +273,13 @@ interface VerificationResult {
|
|
|
254
273
|
guidance?: GuidanceInfo;
|
|
255
274
|
/** Reasons for denial (if not allowed) */
|
|
256
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[];
|
|
257
283
|
/** Whether step-up authentication is required */
|
|
258
284
|
requiresStepUp?: boolean;
|
|
259
285
|
/** Whether approval is required */
|
|
@@ -360,11 +386,18 @@ interface RouteAccessConfig {
|
|
|
360
386
|
maxTransactionValue?: number;
|
|
361
387
|
}
|
|
362
388
|
/**
|
|
363
|
-
* 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.
|
|
364
399
|
*/
|
|
365
400
|
interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
366
|
-
/** Route access configurations */
|
|
367
|
-
routes?: RouteAccessConfig[];
|
|
368
401
|
/** Function to extract credentials from request */
|
|
369
402
|
extractCredentials?: (req: unknown) => AgentCredentials;
|
|
370
403
|
/** Function to extract purpose from request */
|
|
@@ -377,15 +410,24 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
377
410
|
recordDecisions?: boolean;
|
|
378
411
|
/** Enable runtime challenge for all verify-access calls (default: true) */
|
|
379
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;
|
|
380
419
|
}
|
|
381
420
|
/**
|
|
382
|
-
* 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.
|
|
383
425
|
*/
|
|
384
426
|
interface NextJsMiddlewareOptions extends GatewayConfig {
|
|
385
|
-
/** Route access configurations */
|
|
386
|
-
routes?: RouteAccessConfig[];
|
|
387
427
|
/** Paths to skip verification */
|
|
388
428
|
skipPaths?: string[];
|
|
429
|
+
/** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
|
|
430
|
+
routesRefreshMs?: number;
|
|
389
431
|
/** Whether to show Commerce Shield overlay for unverified */
|
|
390
432
|
showCommerceShield?: boolean;
|
|
391
433
|
/** Commerce Shield configuration */
|
|
@@ -237,6 +237,25 @@ interface GuidanceInfo {
|
|
|
237
237
|
/**
|
|
238
238
|
* Complete verification result
|
|
239
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
|
+
}
|
|
240
259
|
interface VerificationResult {
|
|
241
260
|
/** Whether the agent is verified */
|
|
242
261
|
verified: boolean;
|
|
@@ -254,6 +273,13 @@ interface VerificationResult {
|
|
|
254
273
|
guidance?: GuidanceInfo;
|
|
255
274
|
/** Reasons for denial (if not allowed) */
|
|
256
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[];
|
|
257
283
|
/** Whether step-up authentication is required */
|
|
258
284
|
requiresStepUp?: boolean;
|
|
259
285
|
/** Whether approval is required */
|
|
@@ -360,11 +386,18 @@ interface RouteAccessConfig {
|
|
|
360
386
|
maxTransactionValue?: number;
|
|
361
387
|
}
|
|
362
388
|
/**
|
|
363
|
-
* 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.
|
|
364
399
|
*/
|
|
365
400
|
interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
366
|
-
/** Route access configurations */
|
|
367
|
-
routes?: RouteAccessConfig[];
|
|
368
401
|
/** Function to extract credentials from request */
|
|
369
402
|
extractCredentials?: (req: unknown) => AgentCredentials;
|
|
370
403
|
/** Function to extract purpose from request */
|
|
@@ -377,15 +410,24 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
377
410
|
recordDecisions?: boolean;
|
|
378
411
|
/** Enable runtime challenge for all verify-access calls (default: true) */
|
|
379
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;
|
|
380
419
|
}
|
|
381
420
|
/**
|
|
382
|
-
* 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.
|
|
383
425
|
*/
|
|
384
426
|
interface NextJsMiddlewareOptions extends GatewayConfig {
|
|
385
|
-
/** Route access configurations */
|
|
386
|
-
routes?: RouteAccessConfig[];
|
|
387
427
|
/** Paths to skip verification */
|
|
388
428
|
skipPaths?: string[];
|
|
429
|
+
/** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
|
|
430
|
+
routesRefreshMs?: number;
|
|
389
431
|
/** Whether to show Commerce Shield overlay for unverified */
|
|
390
432
|
showCommerceShield?: boolean;
|
|
391
433
|
/** Commerce Shield configuration */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AccessLevel, C as CounterpartyType, T as TokenGuidance } from './types-
|
|
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.
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-
|
|
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
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CommerceShieldProps, V as VerificationResult, b as AgentCredentials, f as GuidanceInfo, i as TrustLevel } from '../types-
|
|
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.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",
|