@astrasyncai/verification-gateway 2.4.7 → 2.4.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 (58) 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/mcp.d.mts +1 -1
  6. package/dist/adapters/mcp.d.ts +1 -1
  7. package/dist/adapters/nextjs.d.mts +2 -2
  8. package/dist/adapters/nextjs.d.ts +2 -2
  9. package/dist/adapters/sdk.d.mts +2 -2
  10. package/dist/adapters/sdk.d.ts +2 -2
  11. package/dist/agent/index.d.mts +2 -2
  12. package/dist/agent/index.d.ts +2 -2
  13. package/dist/bin/astrasync.js +6 -1
  14. package/dist/browser/browser-adapter.d.mts +2 -2
  15. package/dist/browser/browser-adapter.d.ts +2 -2
  16. package/dist/cli/index.d.mts +2 -2
  17. package/dist/cli/index.d.ts +2 -2
  18. package/dist/cursor/cursor-adapter.d.mts +2 -2
  19. package/dist/cursor/cursor-adapter.d.ts +2 -2
  20. package/dist/cursor/extension.d.mts +2 -2
  21. package/dist/cursor/extension.d.ts +2 -2
  22. package/dist/{express-XCkk7BsJ.d.ts → express-714gJbaW.d.ts} +1 -1
  23. package/dist/{express-D5hAJ2Gv.d.mts → express-DvVjR2H4.d.mts} +1 -1
  24. package/dist/gateway/gateway.d.mts +2 -2
  25. package/dist/gateway/gateway.d.ts +2 -2
  26. package/dist/git-trigger/git-hooks.d.mts +2 -2
  27. package/dist/git-trigger/git-hooks.d.ts +2 -2
  28. package/dist/{index-WL4d9e9_.d.ts → index-2WAlxs2G.d.ts} +2 -2
  29. package/dist/{index-CH4TfcbL.d.ts → index-DO0oG8ED.d.ts} +1 -1
  30. package/dist/{index-u08qcXq9.d.mts → index-DYFS9QVb.d.mts} +1 -1
  31. package/dist/{index-ZkHvXsMo.d.mts → index-P9t7M_dJ.d.mts} +2 -2
  32. package/dist/index.d.mts +7 -7
  33. package/dist/index.d.ts +7 -7
  34. package/dist/index.js +6 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +6 -1
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/local-evaluator/evaluator.d.mts +2 -2
  39. package/dist/local-evaluator/evaluator.d.ts +2 -2
  40. package/dist/{nextjs-CFA0J_4x.d.mts → nextjs-BCoH7EqF.d.mts} +1 -1
  41. package/dist/{nextjs-DP2EpI-4.d.ts → nextjs-CZ-MwSOT.d.ts} +1 -1
  42. package/dist/registration/index.d.mts +14 -0
  43. package/dist/registration/index.d.ts +14 -0
  44. package/dist/registration/index.js +6 -1
  45. package/dist/registration/index.js.map +1 -1
  46. package/dist/registration/index.mjs +6 -1
  47. package/dist/registration/index.mjs.map +1 -1
  48. package/dist/{sdk-CwwCGDzK.d.ts → sdk-kiA49vqJ.d.ts} +2 -2
  49. package/dist/{sdk-C8W54WZS.d.mts → sdk-wwhFDXWX.d.mts} +2 -2
  50. package/dist/transport/index.d.mts +2 -2
  51. package/dist/transport/index.d.ts +2 -2
  52. package/dist/{types-CbZOkIr-.d.mts → types-BwDmjIdr.d.mts} +1 -1
  53. package/dist/{types-CbZOkIr-.d.ts → types-BwDmjIdr.d.ts} +1 -1
  54. package/dist/{types-tBNFSbw_.d.mts → types-DOAb89cm.d.mts} +2 -2
  55. package/dist/{types-DXNkr61h.d.ts → types-aucqzfUa.d.ts} +2 -2
  56. package/dist/ui/index.d.mts +1 -1
  57. package/dist/ui/index.d.ts +1 -1
  58. package/package.json +4 -2
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.mjs';
2
- import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-tBNFSbw_.mjs';
3
- import '../types-CbZOkIr-.mjs';
2
+ import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-DOAb89cm.mjs';
3
+ import '../types-BwDmjIdr.mjs';
4
4
 
5
5
  /**
6
6
  * PlatformAdapter Interface
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.js';
2
- import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-DXNkr61h.js';
3
- import '../types-CbZOkIr-.js';
2
+ import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-aucqzfUa.js';
3
+ import '../types-BwDmjIdr.js';
4
4
 
5
5
  /**
6
6
  * PlatformAdapter Interface
@@ -1,3 +1,3 @@
1
1
  import 'express';
2
- import '../types-CbZOkIr-.mjs';
3
- export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-D5hAJ2Gv.mjs';
2
+ import '../types-BwDmjIdr.mjs';
3
+ export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-DvVjR2H4.mjs';
@@ -1,3 +1,3 @@
1
1
  import 'express';
2
- import '../types-CbZOkIr-.js';
3
- export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-XCkk7BsJ.js';
2
+ import '../types-BwDmjIdr.js';
3
+ export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-714gJbaW.js';
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, RequestHandler } from 'express';
2
- import { a as AccessLevel, G as GatewayConfig, V as VerificationResult } from '../types-CbZOkIr-.mjs';
2
+ import { A as AccessLevel, G as GatewayConfig, i as VerificationResult } from '../types-BwDmjIdr.mjs';
3
3
 
4
4
  /**
5
5
  * MCP server-side helpers — companion to `transport/mcp.ts` (which handles the
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, RequestHandler } from 'express';
2
- import { a as AccessLevel, G as GatewayConfig, V as VerificationResult } from '../types-CbZOkIr-.js';
2
+ import { A as AccessLevel, G as GatewayConfig, i as VerificationResult } from '../types-BwDmjIdr.js';
3
3
 
4
4
  /**
5
5
  * MCP server-side helpers — companion to `transport/mcp.ts` (which handles the
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- import '../types-CbZOkIr-.mjs';
3
- export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-CFA0J_4x.mjs';
2
+ import '../types-BwDmjIdr.mjs';
3
+ export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-BCoH7EqF.mjs';
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- import '../types-CbZOkIr-.js';
3
- export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-DP2EpI-4.js';
2
+ import '../types-BwDmjIdr.js';
3
+ export { c as createMatcherConfig, a as createMiddleware } from '../nextjs-CZ-MwSOT.js';
@@ -1,2 +1,2 @@
1
- import '../types-CbZOkIr-.mjs';
2
- export { V as VerificationGatewayClient, f as createClient, c as getCapabilities, e as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-C8W54WZS.mjs';
1
+ import '../types-BwDmjIdr.mjs';
2
+ export { V as VerificationGatewayClient, c as createClient, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-wwhFDXWX.mjs';
@@ -1,2 +1,2 @@
1
- import '../types-CbZOkIr-.js';
2
- export { V as VerificationGatewayClient, f as createClient, c as getCapabilities, e as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-CwwCGDzK.js';
1
+ import '../types-BwDmjIdr.js';
2
+ export { V as VerificationGatewayClient, c as createClient, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, v as verifyOnce } from '../sdk-kiA49vqJ.js';
@@ -1,2 +1,2 @@
1
- export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-u08qcXq9.mjs';
2
- import '../types-CbZOkIr-.mjs';
1
+ export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-DYFS9QVb.mjs';
2
+ import '../types-BwDmjIdr.mjs';
@@ -1,2 +1,2 @@
1
- export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-CH4TfcbL.js';
2
- import '../types-CbZOkIr-.js';
1
+ export { A as AgentClient, a as AstraSyncSdkError, C as ChallengeHandler, O as OwnershipMismatchError, P as PDLSSConfig, T as TransportPDLSS, f as formatPDLSSForTransport, p as parsePDLSSFromTransport, r as recordDecision } from '../index-DO0oG8ED.js';
2
+ import '../types-BwDmjIdr.js';
@@ -105,10 +105,15 @@ var AstraSync = class {
105
105
  }
106
106
  }
107
107
  this.baseUrl = raw;
108
- this.apiKey = config.apiKey || process.env.ASTRASYNC_API_KEY;
108
+ this.apiKey = config.disableEnvFallback ? config.apiKey : config.apiKey || process.env.ASTRASYNC_API_KEY;
109
109
  this.email = config.email;
110
110
  this.password = config.password;
111
111
  this.privateKey = config.privateKey;
112
+ if (!config.apiKey && !config.disableEnvFallback && process.env.ASTRASYNC_API_KEY && !config.silent) {
113
+ console.warn(
114
+ "[AstraSync] No apiKey passed to constructor; using process.env.ASTRASYNC_API_KEY. If this code wraps user-facing flows (e.g. MCP tool handlers), pass disableEnvFallback: true to prevent ambient credentials from impersonating callers. See https://astrasync.ai/docs/agent-access#disableenvfallback for details."
115
+ );
116
+ }
112
117
  if (!this.apiKey && !this.email) {
113
118
  throw new AuthenticationError(
114
119
  "Authentication required. Provide apiKey, or email+password. Set ASTRASYNC_API_KEY env var or pass config to constructor."
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-tBNFSbw_.mjs';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-DOAb89cm.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-CbZOkIr-.mjs';
4
+ import '../types-BwDmjIdr.mjs';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-openclaw-browser
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-DXNkr61h.js';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-aucqzfUa.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-CbZOkIr-.js';
4
+ import '../types-BwDmjIdr.js';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-openclaw-browser
@@ -1,6 +1,6 @@
1
- import { a as LocalPurposeRule, c as LocalScope, d as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-tBNFSbw_.mjs';
1
+ import { b as LocalPurposeRule, d as LocalScope, c as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-DOAb89cm.mjs';
2
2
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
3
- import '../types-CbZOkIr-.mjs';
3
+ import '../types-BwDmjIdr.mjs';
4
4
  import '../gateway/gateway.mjs';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { a as LocalPurposeRule, c as LocalScope, d as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-DXNkr61h.js';
1
+ import { b as LocalPurposeRule, d as LocalScope, c as LocalRiskThresholds, L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-aucqzfUa.js';
2
2
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
3
- import '../types-CbZOkIr-.js';
3
+ import '../types-BwDmjIdr.js';
4
4
  import '../gateway/gateway.js';
5
5
 
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.mjs';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-tBNFSbw_.mjs';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-DOAb89cm.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-CbZOkIr-.mjs';
4
+ import '../types-BwDmjIdr.mjs';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-cursor
@@ -1,7 +1,7 @@
1
1
  import { PlatformAdapter, AdapterConfig } from '../adapter-interface/interface.js';
2
- import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-DXNkr61h.js';
2
+ import { P as PDLSSContext, V as VerificationDecision, A as AgentAction, I as InterceptResult } from '../types-aucqzfUa.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-CbZOkIr-.js';
4
+ import '../types-BwDmjIdr.js';
5
5
 
6
6
  /**
7
7
  * @astrasyncai/adapter-cursor
@@ -1,8 +1,8 @@
1
1
  import { VSCodeAPI } from './cursor-adapter.mjs';
2
2
  import '../adapter-interface/interface.mjs';
3
3
  import '../gateway/gateway.mjs';
4
- import '../types-tBNFSbw_.mjs';
5
- import '../types-CbZOkIr-.mjs';
4
+ import '../types-DOAb89cm.mjs';
5
+ import '../types-BwDmjIdr.mjs';
6
6
 
7
7
  /**
8
8
  * VS Code Extension entry point for AstraSync Local Guard (Cursor/VS Code).
@@ -1,8 +1,8 @@
1
1
  import { VSCodeAPI } from './cursor-adapter.js';
2
2
  import '../adapter-interface/interface.js';
3
3
  import '../gateway/gateway.js';
4
- import '../types-DXNkr61h.js';
5
- import '../types-CbZOkIr-.js';
4
+ import '../types-aucqzfUa.js';
5
+ import '../types-BwDmjIdr.js';
6
6
 
7
7
  /**
8
8
  * VS Code Extension entry point for AstraSync Local Guard (Cursor/VS Code).
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler, Request } from 'express';
2
- import { V as VerificationResult, E as ExpressMiddlewareOptions, A as AstraSyncCredentials } from './types-CbZOkIr-.js';
2
+ import { i as VerificationResult, d as ExpressMiddlewareOptions, b as AstraSyncCredentials } from './types-BwDmjIdr.js';
3
3
 
4
4
  /**
5
5
  * AstraSync Universal Verification Gateway - Express Middleware
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler, Request } from 'express';
2
- import { V as VerificationResult, E as ExpressMiddlewareOptions, A as AstraSyncCredentials } from './types-CbZOkIr-.mjs';
2
+ import { i as VerificationResult, d as ExpressMiddlewareOptions, b as AstraSyncCredentials } from './types-BwDmjIdr.mjs';
3
3
 
4
4
  /**
5
5
  * AstraSync Universal Verification Gateway - Express Middleware
@@ -1,5 +1,5 @@
1
- import { b as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-tBNFSbw_.mjs';
2
- import '../types-CbZOkIr-.mjs';
1
+ import { a as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-DOAb89cm.mjs';
2
+ import '../types-BwDmjIdr.mjs';
3
3
 
4
4
  /**
5
5
  * AstraSyncGateway — Primary API surface for agent verification.
@@ -1,5 +1,5 @@
1
- import { b as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-DXNkr61h.js';
2
- import '../types-CbZOkIr-.js';
1
+ import { a as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-aucqzfUa.js';
2
+ import '../types-BwDmjIdr.js';
3
3
 
4
4
  /**
5
5
  * AstraSyncGateway — Primary API surface for agent verification.
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.mjs';
2
- import { V as VerificationDecision, P as PDLSSContext } from '../types-tBNFSbw_.mjs';
3
- import '../types-CbZOkIr-.mjs';
2
+ import { V as VerificationDecision, P as PDLSSContext } from '../types-DOAb89cm.mjs';
3
+ import '../types-BwDmjIdr.mjs';
4
4
 
5
5
  /**
6
6
  * Git Trigger — Enterprise git push / PR verification
@@ -1,6 +1,6 @@
1
1
  import { AstraSyncGateway } from '../gateway/gateway.js';
2
- import { V as VerificationDecision, P as PDLSSContext } from '../types-DXNkr61h.js';
3
- import '../types-CbZOkIr-.js';
2
+ import { V as VerificationDecision, P as PDLSSContext } from '../types-aucqzfUa.js';
3
+ import '../types-BwDmjIdr.js';
4
4
 
5
5
  /**
6
6
  * Git Trigger — Enterprise git push / PR verification
@@ -1,4 +1,4 @@
1
- import { A as AstraSyncCredentials, g as ProtocolTransport } from './types-CbZOkIr-.js';
1
+ import { b as AstraSyncCredentials, f as ProtocolTransport } from './types-BwDmjIdr.js';
2
2
  import { JWK } from 'jose';
3
3
 
4
4
  /**
@@ -1394,4 +1394,4 @@ declare namespace index {
1394
1394
  export { type index_ACPEndpoint as ACPEndpoint, type index_ACPPaymentTokenType as ACPPaymentTokenType, type index_ACPRequestContext as ACPRequestContext, type index_ACPRequestLike as ACPRequestLike, type index_ACPSignatureAlgorithm as ACPSignatureAlgorithm, type index_ACPTotal as ACPTotal, type index_ACPVerifyInput as ACPVerifyInput, type index_ACPVerifyResult as ACPVerifyResult, type index_AP2CartMandateClaims as AP2CartMandateClaims, type index_AP2ChainResult as AP2ChainResult, type index_AP2IntentMandateClaims as AP2IntentMandateClaims, type index_AP2MandateClaims as AP2MandateClaims, type index_AP2MandateTriple as AP2MandateTriple, type index_AP2MandateTripleInput as AP2MandateTripleInput, type index_AP2MandateType as AP2MandateType, type index_AP2PaymentDetailsTotal as AP2PaymentDetailsTotal, type index_AP2PaymentMandateClaims as AP2PaymentMandateClaims, type index_AP2PaymentMandateForValue as AP2PaymentMandateForValue, type index_AP2VerifyInput as AP2VerifyInput, type index_CommerceContext as CommerceContext, type index_CommercePipelineInput as CommercePipelineInput, type index_CommerceProtocol as CommerceProtocol, type index_CommercePurpose as CommercePurpose, type index_CommerceSignatureStack as CommerceSignatureStack, type index_ConstraintEvalResult as ConstraintEvalResult, type index_ConstraintKey as ConstraintKey, type index_ConstraintResult as ConstraintResult, type index_ExtractorRequestLike as ExtractorRequestLike, type index_IdentityBindingResult as IdentityBindingResult, type index_IdentityClaim as IdentityClaim, type index_IdentityResolver as IdentityResolver, type index_MPPChallengeForValue as MPPChallengeForValue, type index_MPPChallengeSummary as MPPChallengeSummary, type index_MPPCredentialSummary as MPPCredentialSummary, type index_MPPIntent as MPPIntent, type index_MPPKind as MPPKind, type index_MPPReceiptSummary as MPPReceiptSummary, type index_MPPRequestContext as MPPRequestContext, type index_MPPRequestLike as MPPRequestLike, type index_MPPResponseLike as MPPResponseLike, type index_MPPVerifyInput as MPPVerifyInput, type index_MPPVerifyResult as MPPVerifyResult, type index_ParsedRFC9421 as ParsedRFC9421, type index_PaymentMethodAllowlistInput as PaymentMethodAllowlistInput, type index_RFC9421SignatureParams as RFC9421SignatureParams, type index_RFC9421Tag as RFC9421Tag, type index_RFC9421VerifyOptions as RFC9421VerifyOptions, type index_RFC9421VerifyRequest as RFC9421VerifyRequest, type index_RFC9421VerifyResult as RFC9421VerifyResult, type index_RegistryName as RegistryName, type index_RegistryResolver as RegistryResolver, type index_ResolveContext as ResolveContext, index_STRIPE_WEBHOOK_INFORMATIONAL_EVENTS as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, type index_SpendingLimitInput as SpendingLimitInput, type index_StripeWebhookInformationalEvent as StripeWebhookInformationalEvent, type index_TransactionContext as TransactionContext, type index_TransactionValueContext as TransactionValueContext, type index_TransportExtractor as TransportExtractor, type index_UCPCheckoutContext as UCPCheckoutContext, type index_UCPManifestValidationResult as UCPManifestValidationResult, type index_UCPRequestLike as UCPRequestLike, type index_UCPTotal as UCPTotal, type index_VIAllowedParty as VIAllowedParty, type index_VIBudgetLimit as VIBudgetLimit, type index_VIClaimsForValue as VIClaimsForValue, type index_VIConstraintEvalInput as VIConstraintEvalInput, type index_VIConstraints as VIConstraints, type index_VIExecutionMode as VIExecutionMode, type index_VIExtractedClaims as VIExtractedClaims, type index_VILayer as VILayer, type index_VILineItem as VILineItem, type index_VIMandateType as VIMandateType, type index_VIPaymentAmount as VIPaymentAmount, type index_VIRecurrence as VIRecurrence, type index_VIVerifyInput as VIVerifyInput, type index_VIVerifyResult as VIVerifyResult, type index_VerifyStripeWebhookOptions as VerifyStripeWebhookOptions, type index_VerifyStripeWebhookResult as VerifyStripeWebhookResult, type index_X402Kind as X402Kind, type index_X402RequestContext as X402RequestContext, type index_X402RequestForValue as X402RequestForValue, type index_X402RequestLike as X402RequestLike, type index_X402RequirementsSummary as X402RequirementsSummary, type index_X402ResponseLike as X402ResponseLike, index_applyCredentials as applyCredentials, index_bindIdentity as bindIdentity, index_claim as claim, index_clearTransportExtractors as clearTransportExtractors, index_createMastercardRegistry as createMastercardRegistry, index_createVisaRegistry as createVisaRegistry, index_createWebBotAuthRegistry as createWebBotAuthRegistry, index_detectProtocol as detectProtocol, index_evaluatePaymentMethodAllowlist as evaluatePaymentMethodAllowlist, index_evaluateSpendingLimit as evaluateSpendingLimit, index_evaluateVIConstraints as evaluateVIConstraints, index_extractA2ACredentials as extractA2ACredentials, index_extractACPContext as extractACPContext, index_extractACPTransactionValue as extractACPTransactionValue, index_extractAP2Mandate as extractAP2Mandate, index_extractAP2Mandates as extractAP2Mandates, index_extractAP2TransactionValue as extractAP2TransactionValue, index_extractCredentialsFromProtocol as extractCredentialsFromProtocol, index_extractHttpCredentials as extractHttpCredentials, index_extractMPPContext as extractMPPContext, index_extractMPPFromRequest as extractMPPFromRequest, index_extractMPPFromResponse as extractMPPFromResponse, index_extractMPPTransactionValue as extractMPPTransactionValue, index_extractMcpCredentials as extractMcpCredentials, index_extractUCPContext as extractUCPContext, index_extractUCPTransactionValue as extractUCPTransactionValue, index_extractVIClaims as extractVIClaims, index_extractVITransactionValue as extractVITransactionValue, index_extractX402Context as extractX402Context, index_extractX402FromRequest as extractX402FromRequest, index_extractX402FromResponse as extractX402FromResponse, index_extractX402TransactionValue as extractX402TransactionValue, index_fetchUCPManifest as fetchUCPManifest, index_getTransportExtractor as getTransportExtractor, index_getTransportExtractors as getTransportExtractors, index_isStripeWebhookInformational as isStripeWebhookInformational, index_mapACPRequestToPurpose as mapACPRequestToPurpose, index_mapAP2MandateToPurpose as mapAP2MandateToPurpose, index_mapMPPRequestToPurpose as mapMPPRequestToPurpose, index_mapRFC9421TagToPurpose as mapRFC9421TagToPurpose, index_mapUCPRequestToPurpose as mapUCPRequestToPurpose, index_mapVIMandateToPurpose as mapVIMandateToPurpose, index_mapX402RequestToPurpose as mapX402RequestToPurpose, index_parseRFC9421 as parseRFC9421, index_registerTransportExtractor as registerTransportExtractor, index_runCommercePipeline as runCommercePipeline, index_runMatchingExtractors as runMatchingExtractors, index_setA2AMetadata as setA2AMetadata, index_setHttpHeaders as setHttpHeaders, index_setMcpMeta as setMcpMeta, index_validateUCPManifest as validateUCPManifest, index_verifyACPSignature as verifyACPSignature, index_verifyAP2Chain as verifyAP2Chain, index_verifyMPP as verifyMPP, index_verifyRFC9421 as verifyRFC9421, index_verifyStripeWebhook as verifyStripeWebhook, index_verifyVIChain as verifyVIChain };
1395
1395
  }
1396
1396
 
1397
- export { type RegistryResolver as $, type ACPEndpoint as A, type ConstraintKey as B, type CommerceContext as C, type ConstraintResult as D, type ExtractorRequestLike as E, type IdentityClaim as F, type IdentityResolver as G, type MPPChallengeSummary as H, type IdentityBindingResult as I, type MPPCredentialSummary as J, type MPPIntent as K, type MPPKind as L, type MPPChallengeForValue as M, type MPPReceiptSummary as N, type MPPRequestContext as O, type MPPRequestLike as P, type MPPResponseLike as Q, type MPPVerifyInput as R, type MPPVerifyResult as S, type ParsedRFC9421 as T, type PaymentMethodAllowlistInput as U, type RFC9421SignatureParams as V, type RFC9421Tag as W, type RFC9421VerifyOptions as X, type RFC9421VerifyRequest as Y, type RFC9421VerifyResult as Z, type RegistryName as _, type ACPPaymentTokenType as a, extractX402TransactionValue as a$, type ResolveContext as a0, STRIPE_WEBHOOK_INFORMATIONAL_EVENTS as a1, type SpendingLimitInput as a2, type StripeWebhookInformationalEvent as a3, type TransactionContext as a4, type TransactionValueContext as a5, type TransportExtractor as a6, type UCPCheckoutContext as a7, type UCPManifestValidationResult as a8, type UCPRequestLike as a9, clearTransportExtractors as aA, createMastercardRegistry as aB, createVisaRegistry as aC, createWebBotAuthRegistry as aD, detectProtocol as aE, evaluatePaymentMethodAllowlist as aF, evaluateSpendingLimit as aG, evaluateVIConstraints as aH, extractA2ACredentials as aI, extractACPContext as aJ, extractACPTransactionValue as aK, extractAP2Mandate as aL, extractAP2Mandates as aM, extractAP2TransactionValue as aN, extractCredentialsFromProtocol as aO, extractHttpCredentials as aP, extractMPPContext as aQ, extractMPPFromRequest as aR, extractMPPFromResponse as aS, extractMPPTransactionValue as aT, extractUCPContext as aU, extractUCPTransactionValue as aV, extractVIClaims as aW, extractVITransactionValue as aX, extractX402Context as aY, extractX402FromRequest as aZ, extractX402FromResponse as a_, type UCPTotal as aa, type VIAllowedParty as ab, type VIBudgetLimit as ac, type VIClaimsForValue as ad, type VIConstraintEvalInput as ae, type VIConstraints as af, type VIExecutionMode as ag, type VIExtractedClaims as ah, type VILayer as ai, type VILineItem as aj, type VIMandateType as ak, type VIPaymentAmount as al, type VIRecurrence as am, type VIVerifyInput as an, type VIVerifyResult as ao, type VerifyStripeWebhookOptions as ap, type VerifyStripeWebhookResult as aq, type X402Kind as ar, type X402RequestContext as as, type X402RequestForValue as at, type X402RequestLike as au, type X402RequirementsSummary as av, type X402ResponseLike as aw, applyCredentials as ax, bindIdentity as ay, claim as az, type ACPRequestContext as b, fetchUCPManifest as b0, getTransportExtractor as b1, getTransportExtractors as b2, isStripeWebhookInformational as b3, mapACPRequestToPurpose as b4, mapAP2MandateToPurpose as b5, mapMPPRequestToPurpose as b6, mapRFC9421TagToPurpose as b7, mapUCPRequestToPurpose as b8, mapVIMandateToPurpose as b9, mapX402RequestToPurpose as ba, parseRFC9421 as bb, registerTransportExtractor as bc, runCommercePipeline as bd, runMatchingExtractors as be, setA2AMetadata as bf, setHttpHeaders as bg, validateUCPManifest as bh, verifyACPSignature as bi, verifyAP2Chain as bj, verifyMPP as bk, verifyRFC9421 as bl, verifyStripeWebhook as bm, verifyVIChain as bn, type ACPRequestLike as c, type ACPSignatureAlgorithm as d, extractMcpCredentials as e, type ACPTotal as f, type ACPVerifyInput as g, type ACPVerifyResult as h, index as i, type AP2CartMandateClaims as j, type AP2ChainResult as k, type AP2IntentMandateClaims as l, type AP2MandateClaims as m, type AP2MandateTriple as n, type AP2MandateTripleInput as o, type AP2MandateType as p, type AP2PaymentDetailsTotal as q, type AP2PaymentMandateClaims as r, setMcpMeta as s, type AP2PaymentMandateForValue as t, type AP2VerifyInput as u, type CommercePipelineInput as v, type CommerceProtocol as w, type CommercePurpose as x, type CommerceSignatureStack as y, type ConstraintEvalResult as z };
1397
+ export { type SpendingLimitInput as $, type ACPEndpoint as A, type IdentityResolver as B, type CommerceContext as C, type MPPChallengeSummary as D, type ExtractorRequestLike as E, type MPPCredentialSummary as F, type MPPIntent as G, type MPPKind as H, type IdentityBindingResult as I, type MPPReceiptSummary as J, type MPPRequestContext as K, type MPPRequestLike as L, type MPPChallengeForValue as M, type MPPResponseLike as N, type MPPVerifyInput as O, type MPPVerifyResult as P, type ParsedRFC9421 as Q, type PaymentMethodAllowlistInput as R, type RFC9421SignatureParams as S, type RFC9421Tag as T, type RFC9421VerifyOptions as U, type RFC9421VerifyRequest as V, type RFC9421VerifyResult as W, type RegistryName as X, type RegistryResolver as Y, type ResolveContext as Z, STRIPE_WEBHOOK_INFORMATIONAL_EVENTS as _, type ACPPaymentTokenType as a, getTransportExtractor as a$, type StripeWebhookInformationalEvent as a0, type TransactionContext as a1, type TransactionValueContext as a2, type TransportExtractor as a3, type UCPCheckoutContext as a4, type UCPManifestValidationResult as a5, type UCPRequestLike as a6, type UCPTotal as a7, type VIAllowedParty as a8, type VIBudgetLimit as a9, createWebBotAuthRegistry as aA, detectProtocol as aB, evaluatePaymentMethodAllowlist as aC, evaluateSpendingLimit as aD, evaluateVIConstraints as aE, extractA2ACredentials as aF, extractACPContext as aG, extractACPTransactionValue as aH, extractAP2Mandate as aI, extractAP2Mandates as aJ, extractAP2TransactionValue as aK, extractCredentialsFromProtocol as aL, extractHttpCredentials as aM, extractMPPContext as aN, extractMPPFromRequest as aO, extractMPPFromResponse as aP, extractMPPTransactionValue as aQ, extractMcpCredentials as aR, extractUCPContext as aS, extractUCPTransactionValue as aT, extractVIClaims as aU, extractVITransactionValue as aV, extractX402Context as aW, extractX402FromRequest as aX, extractX402FromResponse as aY, extractX402TransactionValue as aZ, fetchUCPManifest as a_, type VIClaimsForValue as aa, type VIConstraintEvalInput as ab, type VIConstraints as ac, type VIExecutionMode as ad, type VIExtractedClaims as ae, type VILayer as af, type VILineItem as ag, type VIMandateType as ah, type VIPaymentAmount as ai, type VIRecurrence as aj, type VIVerifyInput as ak, type VIVerifyResult as al, type VerifyStripeWebhookOptions as am, type VerifyStripeWebhookResult as an, type X402Kind as ao, type X402RequestContext as ap, type X402RequestForValue as aq, type X402RequestLike as ar, type X402RequirementsSummary as as, type X402ResponseLike as at, applyCredentials as au, bindIdentity as av, claim as aw, clearTransportExtractors as ax, createMastercardRegistry as ay, createVisaRegistry as az, type ACPRequestContext as b, getTransportExtractors as b0, index as b1, isStripeWebhookInformational as b2, mapACPRequestToPurpose as b3, mapAP2MandateToPurpose as b4, mapMPPRequestToPurpose as b5, mapRFC9421TagToPurpose as b6, mapUCPRequestToPurpose as b7, mapVIMandateToPurpose as b8, mapX402RequestToPurpose as b9, parseRFC9421 as ba, registerTransportExtractor as bb, runCommercePipeline as bc, runMatchingExtractors as bd, setA2AMetadata as be, setHttpHeaders as bf, setMcpMeta as bg, validateUCPManifest as bh, verifyACPSignature as bi, verifyAP2Chain as bj, verifyMPP as bk, verifyRFC9421 as bl, verifyStripeWebhook as bm, verifyVIChain as bn, type ACPRequestLike as c, type ACPSignatureAlgorithm as d, type ACPTotal as e, type ACPVerifyInput as f, type ACPVerifyResult as g, type AP2CartMandateClaims as h, type AP2ChainResult as i, type AP2IntentMandateClaims as j, type AP2MandateClaims as k, type AP2MandateTriple as l, type AP2MandateTripleInput as m, type AP2MandateType as n, type AP2PaymentDetailsTotal as o, type AP2PaymentMandateClaims as p, type AP2PaymentMandateForValue as q, type AP2VerifyInput as r, type CommercePipelineInput as s, type CommerceProtocol as t, type CommercePurpose as u, type CommerceSignatureStack as v, type ConstraintEvalResult as w, type ConstraintKey as x, type ConstraintResult as y, type IdentityClaim as z };
@@ -1,4 +1,4 @@
1
- import { A as AstraSyncCredentials, g as ProtocolTransport, G as GatewayConfig } from './types-CbZOkIr-.js';
1
+ import { b as AstraSyncCredentials, f as ProtocolTransport, G as GatewayConfig } from './types-BwDmjIdr.js';
2
2
 
3
3
  /**
4
4
  * AgentClient — Credential Presentation
@@ -1,4 +1,4 @@
1
- import { A as AstraSyncCredentials, g as ProtocolTransport, G as GatewayConfig } from './types-CbZOkIr-.mjs';
1
+ import { b as AstraSyncCredentials, f as ProtocolTransport, G as GatewayConfig } from './types-BwDmjIdr.mjs';
2
2
 
3
3
  /**
4
4
  * AgentClient — Credential Presentation
@@ -1,4 +1,4 @@
1
- import { A as AstraSyncCredentials, g as ProtocolTransport } from './types-CbZOkIr-.mjs';
1
+ import { b as AstraSyncCredentials, f as ProtocolTransport } from './types-BwDmjIdr.mjs';
2
2
  import { JWK } from 'jose';
3
3
 
4
4
  /**
@@ -1394,4 +1394,4 @@ declare namespace index {
1394
1394
  export { type index_ACPEndpoint as ACPEndpoint, type index_ACPPaymentTokenType as ACPPaymentTokenType, type index_ACPRequestContext as ACPRequestContext, type index_ACPRequestLike as ACPRequestLike, type index_ACPSignatureAlgorithm as ACPSignatureAlgorithm, type index_ACPTotal as ACPTotal, type index_ACPVerifyInput as ACPVerifyInput, type index_ACPVerifyResult as ACPVerifyResult, type index_AP2CartMandateClaims as AP2CartMandateClaims, type index_AP2ChainResult as AP2ChainResult, type index_AP2IntentMandateClaims as AP2IntentMandateClaims, type index_AP2MandateClaims as AP2MandateClaims, type index_AP2MandateTriple as AP2MandateTriple, type index_AP2MandateTripleInput as AP2MandateTripleInput, type index_AP2MandateType as AP2MandateType, type index_AP2PaymentDetailsTotal as AP2PaymentDetailsTotal, type index_AP2PaymentMandateClaims as AP2PaymentMandateClaims, type index_AP2PaymentMandateForValue as AP2PaymentMandateForValue, type index_AP2VerifyInput as AP2VerifyInput, type index_CommerceContext as CommerceContext, type index_CommercePipelineInput as CommercePipelineInput, type index_CommerceProtocol as CommerceProtocol, type index_CommercePurpose as CommercePurpose, type index_CommerceSignatureStack as CommerceSignatureStack, type index_ConstraintEvalResult as ConstraintEvalResult, type index_ConstraintKey as ConstraintKey, type index_ConstraintResult as ConstraintResult, type index_ExtractorRequestLike as ExtractorRequestLike, type index_IdentityBindingResult as IdentityBindingResult, type index_IdentityClaim as IdentityClaim, type index_IdentityResolver as IdentityResolver, type index_MPPChallengeForValue as MPPChallengeForValue, type index_MPPChallengeSummary as MPPChallengeSummary, type index_MPPCredentialSummary as MPPCredentialSummary, type index_MPPIntent as MPPIntent, type index_MPPKind as MPPKind, type index_MPPReceiptSummary as MPPReceiptSummary, type index_MPPRequestContext as MPPRequestContext, type index_MPPRequestLike as MPPRequestLike, type index_MPPResponseLike as MPPResponseLike, type index_MPPVerifyInput as MPPVerifyInput, type index_MPPVerifyResult as MPPVerifyResult, type index_ParsedRFC9421 as ParsedRFC9421, type index_PaymentMethodAllowlistInput as PaymentMethodAllowlistInput, type index_RFC9421SignatureParams as RFC9421SignatureParams, type index_RFC9421Tag as RFC9421Tag, type index_RFC9421VerifyOptions as RFC9421VerifyOptions, type index_RFC9421VerifyRequest as RFC9421VerifyRequest, type index_RFC9421VerifyResult as RFC9421VerifyResult, type index_RegistryName as RegistryName, type index_RegistryResolver as RegistryResolver, type index_ResolveContext as ResolveContext, index_STRIPE_WEBHOOK_INFORMATIONAL_EVENTS as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, type index_SpendingLimitInput as SpendingLimitInput, type index_StripeWebhookInformationalEvent as StripeWebhookInformationalEvent, type index_TransactionContext as TransactionContext, type index_TransactionValueContext as TransactionValueContext, type index_TransportExtractor as TransportExtractor, type index_UCPCheckoutContext as UCPCheckoutContext, type index_UCPManifestValidationResult as UCPManifestValidationResult, type index_UCPRequestLike as UCPRequestLike, type index_UCPTotal as UCPTotal, type index_VIAllowedParty as VIAllowedParty, type index_VIBudgetLimit as VIBudgetLimit, type index_VIClaimsForValue as VIClaimsForValue, type index_VIConstraintEvalInput as VIConstraintEvalInput, type index_VIConstraints as VIConstraints, type index_VIExecutionMode as VIExecutionMode, type index_VIExtractedClaims as VIExtractedClaims, type index_VILayer as VILayer, type index_VILineItem as VILineItem, type index_VIMandateType as VIMandateType, type index_VIPaymentAmount as VIPaymentAmount, type index_VIRecurrence as VIRecurrence, type index_VIVerifyInput as VIVerifyInput, type index_VIVerifyResult as VIVerifyResult, type index_VerifyStripeWebhookOptions as VerifyStripeWebhookOptions, type index_VerifyStripeWebhookResult as VerifyStripeWebhookResult, type index_X402Kind as X402Kind, type index_X402RequestContext as X402RequestContext, type index_X402RequestForValue as X402RequestForValue, type index_X402RequestLike as X402RequestLike, type index_X402RequirementsSummary as X402RequirementsSummary, type index_X402ResponseLike as X402ResponseLike, index_applyCredentials as applyCredentials, index_bindIdentity as bindIdentity, index_claim as claim, index_clearTransportExtractors as clearTransportExtractors, index_createMastercardRegistry as createMastercardRegistry, index_createVisaRegistry as createVisaRegistry, index_createWebBotAuthRegistry as createWebBotAuthRegistry, index_detectProtocol as detectProtocol, index_evaluatePaymentMethodAllowlist as evaluatePaymentMethodAllowlist, index_evaluateSpendingLimit as evaluateSpendingLimit, index_evaluateVIConstraints as evaluateVIConstraints, index_extractA2ACredentials as extractA2ACredentials, index_extractACPContext as extractACPContext, index_extractACPTransactionValue as extractACPTransactionValue, index_extractAP2Mandate as extractAP2Mandate, index_extractAP2Mandates as extractAP2Mandates, index_extractAP2TransactionValue as extractAP2TransactionValue, index_extractCredentialsFromProtocol as extractCredentialsFromProtocol, index_extractHttpCredentials as extractHttpCredentials, index_extractMPPContext as extractMPPContext, index_extractMPPFromRequest as extractMPPFromRequest, index_extractMPPFromResponse as extractMPPFromResponse, index_extractMPPTransactionValue as extractMPPTransactionValue, index_extractMcpCredentials as extractMcpCredentials, index_extractUCPContext as extractUCPContext, index_extractUCPTransactionValue as extractUCPTransactionValue, index_extractVIClaims as extractVIClaims, index_extractVITransactionValue as extractVITransactionValue, index_extractX402Context as extractX402Context, index_extractX402FromRequest as extractX402FromRequest, index_extractX402FromResponse as extractX402FromResponse, index_extractX402TransactionValue as extractX402TransactionValue, index_fetchUCPManifest as fetchUCPManifest, index_getTransportExtractor as getTransportExtractor, index_getTransportExtractors as getTransportExtractors, index_isStripeWebhookInformational as isStripeWebhookInformational, index_mapACPRequestToPurpose as mapACPRequestToPurpose, index_mapAP2MandateToPurpose as mapAP2MandateToPurpose, index_mapMPPRequestToPurpose as mapMPPRequestToPurpose, index_mapRFC9421TagToPurpose as mapRFC9421TagToPurpose, index_mapUCPRequestToPurpose as mapUCPRequestToPurpose, index_mapVIMandateToPurpose as mapVIMandateToPurpose, index_mapX402RequestToPurpose as mapX402RequestToPurpose, index_parseRFC9421 as parseRFC9421, index_registerTransportExtractor as registerTransportExtractor, index_runCommercePipeline as runCommercePipeline, index_runMatchingExtractors as runMatchingExtractors, index_setA2AMetadata as setA2AMetadata, index_setHttpHeaders as setHttpHeaders, index_setMcpMeta as setMcpMeta, index_validateUCPManifest as validateUCPManifest, index_verifyACPSignature as verifyACPSignature, index_verifyAP2Chain as verifyAP2Chain, index_verifyMPP as verifyMPP, index_verifyRFC9421 as verifyRFC9421, index_verifyStripeWebhook as verifyStripeWebhook, index_verifyVIChain as verifyVIChain };
1395
1395
  }
1396
1396
 
1397
- export { type RegistryResolver as $, type ACPEndpoint as A, type ConstraintKey as B, type CommerceContext as C, type ConstraintResult as D, type ExtractorRequestLike as E, type IdentityClaim as F, type IdentityResolver as G, type MPPChallengeSummary as H, type IdentityBindingResult as I, type MPPCredentialSummary as J, type MPPIntent as K, type MPPKind as L, type MPPChallengeForValue as M, type MPPReceiptSummary as N, type MPPRequestContext as O, type MPPRequestLike as P, type MPPResponseLike as Q, type MPPVerifyInput as R, type MPPVerifyResult as S, type ParsedRFC9421 as T, type PaymentMethodAllowlistInput as U, type RFC9421SignatureParams as V, type RFC9421Tag as W, type RFC9421VerifyOptions as X, type RFC9421VerifyRequest as Y, type RFC9421VerifyResult as Z, type RegistryName as _, type ACPPaymentTokenType as a, extractX402TransactionValue as a$, type ResolveContext as a0, STRIPE_WEBHOOK_INFORMATIONAL_EVENTS as a1, type SpendingLimitInput as a2, type StripeWebhookInformationalEvent as a3, type TransactionContext as a4, type TransactionValueContext as a5, type TransportExtractor as a6, type UCPCheckoutContext as a7, type UCPManifestValidationResult as a8, type UCPRequestLike as a9, clearTransportExtractors as aA, createMastercardRegistry as aB, createVisaRegistry as aC, createWebBotAuthRegistry as aD, detectProtocol as aE, evaluatePaymentMethodAllowlist as aF, evaluateSpendingLimit as aG, evaluateVIConstraints as aH, extractA2ACredentials as aI, extractACPContext as aJ, extractACPTransactionValue as aK, extractAP2Mandate as aL, extractAP2Mandates as aM, extractAP2TransactionValue as aN, extractCredentialsFromProtocol as aO, extractHttpCredentials as aP, extractMPPContext as aQ, extractMPPFromRequest as aR, extractMPPFromResponse as aS, extractMPPTransactionValue as aT, extractUCPContext as aU, extractUCPTransactionValue as aV, extractVIClaims as aW, extractVITransactionValue as aX, extractX402Context as aY, extractX402FromRequest as aZ, extractX402FromResponse as a_, type UCPTotal as aa, type VIAllowedParty as ab, type VIBudgetLimit as ac, type VIClaimsForValue as ad, type VIConstraintEvalInput as ae, type VIConstraints as af, type VIExecutionMode as ag, type VIExtractedClaims as ah, type VILayer as ai, type VILineItem as aj, type VIMandateType as ak, type VIPaymentAmount as al, type VIRecurrence as am, type VIVerifyInput as an, type VIVerifyResult as ao, type VerifyStripeWebhookOptions as ap, type VerifyStripeWebhookResult as aq, type X402Kind as ar, type X402RequestContext as as, type X402RequestForValue as at, type X402RequestLike as au, type X402RequirementsSummary as av, type X402ResponseLike as aw, applyCredentials as ax, bindIdentity as ay, claim as az, type ACPRequestContext as b, fetchUCPManifest as b0, getTransportExtractor as b1, getTransportExtractors as b2, isStripeWebhookInformational as b3, mapACPRequestToPurpose as b4, mapAP2MandateToPurpose as b5, mapMPPRequestToPurpose as b6, mapRFC9421TagToPurpose as b7, mapUCPRequestToPurpose as b8, mapVIMandateToPurpose as b9, mapX402RequestToPurpose as ba, parseRFC9421 as bb, registerTransportExtractor as bc, runCommercePipeline as bd, runMatchingExtractors as be, setA2AMetadata as bf, setHttpHeaders as bg, validateUCPManifest as bh, verifyACPSignature as bi, verifyAP2Chain as bj, verifyMPP as bk, verifyRFC9421 as bl, verifyStripeWebhook as bm, verifyVIChain as bn, type ACPRequestLike as c, type ACPSignatureAlgorithm as d, extractMcpCredentials as e, type ACPTotal as f, type ACPVerifyInput as g, type ACPVerifyResult as h, index as i, type AP2CartMandateClaims as j, type AP2ChainResult as k, type AP2IntentMandateClaims as l, type AP2MandateClaims as m, type AP2MandateTriple as n, type AP2MandateTripleInput as o, type AP2MandateType as p, type AP2PaymentDetailsTotal as q, type AP2PaymentMandateClaims as r, setMcpMeta as s, type AP2PaymentMandateForValue as t, type AP2VerifyInput as u, type CommercePipelineInput as v, type CommerceProtocol as w, type CommercePurpose as x, type CommerceSignatureStack as y, type ConstraintEvalResult as z };
1397
+ export { type SpendingLimitInput as $, type ACPEndpoint as A, type IdentityResolver as B, type CommerceContext as C, type MPPChallengeSummary as D, type ExtractorRequestLike as E, type MPPCredentialSummary as F, type MPPIntent as G, type MPPKind as H, type IdentityBindingResult as I, type MPPReceiptSummary as J, type MPPRequestContext as K, type MPPRequestLike as L, type MPPChallengeForValue as M, type MPPResponseLike as N, type MPPVerifyInput as O, type MPPVerifyResult as P, type ParsedRFC9421 as Q, type PaymentMethodAllowlistInput as R, type RFC9421SignatureParams as S, type RFC9421Tag as T, type RFC9421VerifyOptions as U, type RFC9421VerifyRequest as V, type RFC9421VerifyResult as W, type RegistryName as X, type RegistryResolver as Y, type ResolveContext as Z, STRIPE_WEBHOOK_INFORMATIONAL_EVENTS as _, type ACPPaymentTokenType as a, getTransportExtractor as a$, type StripeWebhookInformationalEvent as a0, type TransactionContext as a1, type TransactionValueContext as a2, type TransportExtractor as a3, type UCPCheckoutContext as a4, type UCPManifestValidationResult as a5, type UCPRequestLike as a6, type UCPTotal as a7, type VIAllowedParty as a8, type VIBudgetLimit as a9, createWebBotAuthRegistry as aA, detectProtocol as aB, evaluatePaymentMethodAllowlist as aC, evaluateSpendingLimit as aD, evaluateVIConstraints as aE, extractA2ACredentials as aF, extractACPContext as aG, extractACPTransactionValue as aH, extractAP2Mandate as aI, extractAP2Mandates as aJ, extractAP2TransactionValue as aK, extractCredentialsFromProtocol as aL, extractHttpCredentials as aM, extractMPPContext as aN, extractMPPFromRequest as aO, extractMPPFromResponse as aP, extractMPPTransactionValue as aQ, extractMcpCredentials as aR, extractUCPContext as aS, extractUCPTransactionValue as aT, extractVIClaims as aU, extractVITransactionValue as aV, extractX402Context as aW, extractX402FromRequest as aX, extractX402FromResponse as aY, extractX402TransactionValue as aZ, fetchUCPManifest as a_, type VIClaimsForValue as aa, type VIConstraintEvalInput as ab, type VIConstraints as ac, type VIExecutionMode as ad, type VIExtractedClaims as ae, type VILayer as af, type VILineItem as ag, type VIMandateType as ah, type VIPaymentAmount as ai, type VIRecurrence as aj, type VIVerifyInput as ak, type VIVerifyResult as al, type VerifyStripeWebhookOptions as am, type VerifyStripeWebhookResult as an, type X402Kind as ao, type X402RequestContext as ap, type X402RequestForValue as aq, type X402RequestLike as ar, type X402RequirementsSummary as as, type X402ResponseLike as at, applyCredentials as au, bindIdentity as av, claim as aw, clearTransportExtractors as ax, createMastercardRegistry as ay, createVisaRegistry as az, type ACPRequestContext as b, getTransportExtractors as b0, index as b1, isStripeWebhookInformational as b2, mapACPRequestToPurpose as b3, mapAP2MandateToPurpose as b4, mapMPPRequestToPurpose as b5, mapRFC9421TagToPurpose as b6, mapUCPRequestToPurpose as b7, mapVIMandateToPurpose as b8, mapX402RequestToPurpose as b9, parseRFC9421 as ba, registerTransportExtractor as bb, runCommercePipeline as bc, runMatchingExtractors as bd, setA2AMetadata as be, setHttpHeaders as bf, setMcpMeta as bg, validateUCPManifest as bh, verifyACPSignature as bi, verifyAP2Chain as bj, verifyMPP as bk, verifyRFC9421 as bl, verifyStripeWebhook as bm, verifyVIChain as bn, type ACPRequestLike as c, type ACPSignatureAlgorithm as d, type ACPTotal as e, type ACPVerifyInput as f, type ACPVerifyResult as g, type AP2CartMandateClaims as h, type AP2ChainResult as i, type AP2IntentMandateClaims as j, type AP2MandateClaims as k, type AP2MandateTriple as l, type AP2MandateTripleInput as m, type AP2MandateType as n, type AP2PaymentDetailsTotal as o, type AP2PaymentMandateClaims as p, type AP2PaymentMandateForValue as q, type AP2VerifyInput as r, type CommercePipelineInput as s, type CommerceProtocol as t, type CommercePurpose as u, type CommerceSignatureStack as v, type ConstraintEvalResult as w, type ConstraintKey as x, type ConstraintResult as y, type IdentityClaim as z };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
- import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, c as VerificationRequest, V as VerificationResult } from './types-CbZOkIr-.mjs';
2
- export { A as AstraSyncCredentials, d as CommerceShieldProps, C as CounterpartyType, e as EnhancedVerificationResult, E as ExpressMiddlewareOptions, f as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, g as ProtocolTransport, R as RouteAccessConfig, h as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, i as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-CbZOkIr-.mjs';
3
- export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, c as getCapabilities, e as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-C8W54WZS.mjs';
4
- export { e as express } from './express-D5hAJ2Gv.mjs';
5
- export { n as nextjs } from './nextjs-CFA0J_4x.mjs';
6
- export { e as extractMcpCredentials, s as setMcpMeta, i as transport } from './index-ZkHvXsMo.mjs';
1
+ import { a as AgentCredentials, G as GatewayConfig, A as AccessLevel, V as VerificationRequest, i as VerificationResult } from './types-BwDmjIdr.mjs';
2
+ export { b as AstraSyncCredentials, C as CommerceShieldProps, c as CounterpartyType, E as EnhancedVerificationResult, d as ExpressMiddlewareOptions, e as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, f as ProtocolTransport, R as RouteAccessConfig, g as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, h as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-BwDmjIdr.mjs';
3
+ export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-wwhFDXWX.mjs';
4
+ export { e as express } from './express-DvVjR2H4.mjs';
5
+ export { n as nextjs } from './nextjs-BCoH7EqF.mjs';
6
+ export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-P9t7M_dJ.mjs';
7
7
  export { McpMiddlewareOptions, createMcpMiddleware } from './adapters/mcp.mjs';
8
8
  export { AgentProtocol, AgentRecord, AstraSync, AstraSyncConfig, AstraSyncError, AuthenticationError, FrameworkConfig, HealthResponse, KYDRequiredError, ModelConfig, PDLSSConfig, PDLSSDuration, PDLSSLimits, PDLSSPurpose, PDLSSScope, PDLSSSelfInstantiation, PendingRegistrationResponse, PollRegistrationResult, RegisterOptions, RegisterResult, RegistrationDeniedError, RegistrationExpiredError, RegistrationResponse, RegistrationTimeoutError, VerifyResponse, WaitForApprovalOptions } from './registration/index.mjs';
9
- export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-u08qcXq9.mjs';
9
+ export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-DYFS9QVb.mjs';
10
10
  import 'express';
11
11
  import 'next/server';
12
12
  import 'jose';
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, c as VerificationRequest, V as VerificationResult } from './types-CbZOkIr-.js';
2
- export { A as AstraSyncCredentials, d as CommerceShieldProps, C as CounterpartyType, e as EnhancedVerificationResult, E as ExpressMiddlewareOptions, f as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, g as ProtocolTransport, R as RouteAccessConfig, h as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, i as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-CbZOkIr-.js';
3
- export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, c as getCapabilities, e as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-CwwCGDzK.js';
4
- export { e as express } from './express-XCkk7BsJ.js';
5
- export { n as nextjs } from './nextjs-DP2EpI-4.js';
6
- export { e as extractMcpCredentials, s as setMcpMeta, i as transport } from './index-WL4d9e9_.js';
1
+ import { a as AgentCredentials, G as GatewayConfig, A as AccessLevel, V as VerificationRequest, i as VerificationResult } from './types-BwDmjIdr.js';
2
+ export { b as AstraSyncCredentials, C as CommerceShieldProps, c as CounterpartyType, E as EnhancedVerificationResult, d as ExpressMiddlewareOptions, e as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, f as ProtocolTransport, R as RouteAccessConfig, g as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, h as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-BwDmjIdr.js';
3
+ export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-kiA49vqJ.js';
4
+ export { e as express } from './express-714gJbaW.js';
5
+ export { n as nextjs } from './nextjs-CZ-MwSOT.js';
6
+ export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-2WAlxs2G.js';
7
7
  export { McpMiddlewareOptions, createMcpMiddleware } from './adapters/mcp.js';
8
8
  export { AgentProtocol, AgentRecord, AstraSync, AstraSyncConfig, AstraSyncError, AuthenticationError, FrameworkConfig, HealthResponse, KYDRequiredError, ModelConfig, PDLSSConfig, PDLSSDuration, PDLSSLimits, PDLSSPurpose, PDLSSScope, PDLSSSelfInstantiation, PendingRegistrationResponse, PollRegistrationResult, RegisterOptions, RegisterResult, RegistrationDeniedError, RegistrationExpiredError, RegistrationResponse, RegistrationTimeoutError, VerifyResponse, WaitForApprovalOptions } from './registration/index.js';
9
- export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-CH4TfcbL.js';
9
+ export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-DO0oG8ED.js';
10
10
  import 'express';
11
11
  import 'next/server';
12
12
  import 'jose';
package/dist/index.js CHANGED
@@ -4403,10 +4403,15 @@ var AstraSync = class {
4403
4403
  }
4404
4404
  }
4405
4405
  this.baseUrl = raw;
4406
- this.apiKey = config.apiKey || process.env.ASTRASYNC_API_KEY;
4406
+ this.apiKey = config.disableEnvFallback ? config.apiKey : config.apiKey || process.env.ASTRASYNC_API_KEY;
4407
4407
  this.email = config.email;
4408
4408
  this.password = config.password;
4409
4409
  this.privateKey = config.privateKey;
4410
+ if (!config.apiKey && !config.disableEnvFallback && process.env.ASTRASYNC_API_KEY && !config.silent) {
4411
+ console.warn(
4412
+ "[AstraSync] No apiKey passed to constructor; using process.env.ASTRASYNC_API_KEY. If this code wraps user-facing flows (e.g. MCP tool handlers), pass disableEnvFallback: true to prevent ambient credentials from impersonating callers. See https://astrasync.ai/docs/agent-access#disableenvfallback for details."
4413
+ );
4414
+ }
4410
4415
  if (!this.apiKey && !this.email) {
4411
4416
  throw new AuthenticationError(
4412
4417
  "Authentication required. Provide apiKey, or email+password. Set ASTRASYNC_API_KEY env var or pass config to constructor."