@astrasyncai/verification-gateway 3.11.1 → 4.0.0

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 (99) 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 +106 -10
  6. package/dist/adapters/express.js.map +1 -1
  7. package/dist/adapters/express.mjs +106 -10
  8. package/dist/adapters/express.mjs.map +1 -1
  9. package/dist/adapters/mcp.d.mts +1 -1
  10. package/dist/adapters/mcp.d.ts +1 -1
  11. package/dist/adapters/mcp.js +111 -10
  12. package/dist/adapters/mcp.js.map +1 -1
  13. package/dist/adapters/mcp.mjs +111 -10
  14. package/dist/adapters/mcp.mjs.map +1 -1
  15. package/dist/adapters/nextjs.d.mts +2 -2
  16. package/dist/adapters/nextjs.d.ts +2 -2
  17. package/dist/adapters/nextjs.js +107 -10
  18. package/dist/adapters/nextjs.js.map +1 -1
  19. package/dist/adapters/nextjs.mjs +107 -10
  20. package/dist/adapters/nextjs.mjs.map +1 -1
  21. package/dist/adapters/sdk.d.mts +2 -2
  22. package/dist/adapters/sdk.d.ts +2 -2
  23. package/dist/adapters/sdk.js +92 -10
  24. package/dist/adapters/sdk.js.map +1 -1
  25. package/dist/adapters/sdk.mjs +92 -10
  26. package/dist/adapters/sdk.mjs.map +1 -1
  27. package/dist/agent/index.d.mts +2 -2
  28. package/dist/agent/index.d.ts +2 -2
  29. package/dist/bin/astrasync-claude-hook.js +92 -10
  30. package/dist/bin/astrasync-codex-hook.js +92 -10
  31. package/dist/bin/astrasync-guard.js +92 -10
  32. package/dist/bin/astrasync.js +93 -10
  33. package/dist/browser/background.js +92 -10
  34. package/dist/browser/background.js.map +1 -1
  35. package/dist/browser/background.mjs +92 -10
  36. package/dist/browser/background.mjs.map +1 -1
  37. package/dist/browser/browser-adapter.d.mts +2 -2
  38. package/dist/browser/browser-adapter.d.ts +2 -2
  39. package/dist/claude-code/claude-code-adapter.d.mts +2 -2
  40. package/dist/claude-code/claude-code-adapter.d.ts +2 -2
  41. package/dist/cli/index.d.mts +2 -2
  42. package/dist/cli/index.d.ts +2 -2
  43. package/dist/codex/index.d.mts +2 -2
  44. package/dist/codex/index.d.ts +2 -2
  45. package/dist/codex/index.js +92 -10
  46. package/dist/codex/index.js.map +1 -1
  47. package/dist/codex/index.mjs +92 -10
  48. package/dist/codex/index.mjs.map +1 -1
  49. package/dist/cursor/cursor-adapter.d.mts +2 -2
  50. package/dist/cursor/cursor-adapter.d.ts +2 -2
  51. package/dist/cursor/extension.d.mts +2 -2
  52. package/dist/cursor/extension.d.ts +2 -2
  53. package/dist/cursor/extension.js +92 -10
  54. package/dist/cursor/extension.js.map +1 -1
  55. package/dist/cursor/extension.mjs +92 -10
  56. package/dist/cursor/extension.mjs.map +1 -1
  57. package/dist/edge-config.d.mts +1 -1
  58. package/dist/edge-config.d.ts +1 -1
  59. package/dist/{express-DCXa1oqj.d.mts → express-BZajRs4i.d.mts} +1 -1
  60. package/dist/{express-ClNtDhhc.d.ts → express-CjCUB1k7.d.ts} +1 -1
  61. package/dist/gateway/gateway.d.mts +2 -2
  62. package/dist/gateway/gateway.d.ts +2 -2
  63. package/dist/gateway/gateway.js +92 -10
  64. package/dist/gateway/gateway.js.map +1 -1
  65. package/dist/gateway/gateway.mjs +92 -10
  66. package/dist/gateway/gateway.mjs.map +1 -1
  67. package/dist/git-trigger/git-hooks.d.mts +2 -2
  68. package/dist/git-trigger/git-hooks.d.ts +2 -2
  69. package/dist/{index-BrNKDmiR.d.mts → index-B0cyMZDL.d.mts} +1 -1
  70. package/dist/{index-Dr_XiN65.d.mts → index-BRYteOqO.d.mts} +1 -1
  71. package/dist/{index-CfHurO1P.d.ts → index-BZQdVqNw.d.ts} +1 -1
  72. package/dist/{index-D2ztkumS.d.ts → index-adgKhujR.d.ts} +1 -1
  73. package/dist/index.d.mts +9 -9
  74. package/dist/index.d.ts +9 -9
  75. package/dist/index.js +160 -10
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.mjs +159 -10
  78. package/dist/index.mjs.map +1 -1
  79. package/dist/local-evaluator/evaluator.d.mts +2 -2
  80. package/dist/local-evaluator/evaluator.d.ts +2 -2
  81. package/dist/{nextjs-CEBVBsdi.d.ts → nextjs-D_iFf5k-.d.ts} +1 -1
  82. package/dist/{nextjs-DcQIk6Zj.d.mts → nextjs-DeUTnOBd.d.mts} +1 -1
  83. package/dist/{sdk-H0JCLW2y.d.ts → sdk-BM3mwEAq.d.ts} +1 -1
  84. package/dist/{sdk-CZkbSOeO.d.mts → sdk-_il1Q41f.d.mts} +1 -1
  85. package/dist/transport/index.d.mts +2 -2
  86. package/dist/transport/index.d.ts +2 -2
  87. package/dist/{types-sy3tq8lp.d.mts → types-BcDf9Kk0.d.mts} +118 -1
  88. package/dist/{types-DhFPiZ3t.d.ts → types-CHKCgDFC.d.ts} +1 -1
  89. package/dist/{types-cQVCMeNV.d.mts → types-DfnP7JiM.d.mts} +1 -1
  90. package/dist/{types-9tns4wyl.d.ts → types-fTQD448H.d.ts} +118 -1
  91. package/dist/ui/index.d.mts +1 -1
  92. package/dist/ui/index.d.ts +1 -1
  93. package/dist/verify.d.mts +15 -2
  94. package/dist/verify.d.ts +15 -2
  95. package/dist/verify.js +117 -10
  96. package/dist/verify.js.map +1 -1
  97. package/dist/verify.mjs +115 -10
  98. package/dist/verify.mjs.map +1 -1
  99. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, b as LocalPurposeRule } from '../types-cQVCMeNV.mjs';
2
- import '../types-sy3tq8lp.mjs';
1
+ import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, b as LocalPurposeRule } from '../types-DfnP7JiM.mjs';
2
+ import '../types-BcDf9Kk0.mjs';
3
3
  import '../metadata-capture.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, b as LocalPurposeRule } from '../types-DhFPiZ3t.js';
2
- import '../types-9tns4wyl.js';
1
+ import { L as LocalPolicy, P as PDLSSContext, V as VerificationDecision, b as LocalPurposeRule } from '../types-CHKCgDFC.js';
2
+ import '../types-fTQD448H.js';
3
3
  import '../metadata-capture.js';
4
4
 
5
5
  /**
@@ -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-9tns4wyl.js';
3
+ import { N as NextJsMiddlewareOptions } from './types-fTQD448H.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-sy3tq8lp.mjs';
3
+ import { N as NextJsMiddlewareOptions } from './types-BcDf9Kk0.mjs';
4
4
 
5
5
  /**
6
6
  * Create Next.js middleware for agent verification.
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, q as TrustLevel, S as SDKOptions, r as VerificationResult } from './types-9tns4wyl.js';
1
+ import { a as AccessLevel, v as TrustLevel, S as SDKOptions, w as VerificationResult } from './types-fTQD448H.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Universal Verification Gateway - Access Level Definitions
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, q as TrustLevel, S as SDKOptions, r as VerificationResult } from './types-sy3tq8lp.mjs';
1
+ import { a as AccessLevel, v as TrustLevel, S as SDKOptions, w as VerificationResult } from './types-BcDf9Kk0.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Universal Verification Gateway - Access Level Definitions
@@ -1,4 +1,4 @@
1
- import '../types-sy3tq8lp.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, i as AP2ChainResult, j as AP2IntentMandateClaims, k as AP2MandateClaims, l as AP2MandateTriple, m as AP2MandateTripleInput, n as AP2MandateType, o as AP2PaymentDetailsTotal, p as AP2PaymentMandateClaims, q as AP2PaymentMandateForValue, r as AP2VerifyInput, C as CommerceContext, s as CommercePipelineInput, t as CommerceProtocol, u as CommercePurpose, v as CommerceSignatureStack, w as ConstraintEvalResult, x as ConstraintKey, y as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, z as IdentityClaim, B as IdentityResolver, M as MPPChallengeForValue, D as MPPChallengeSummary, F as MPPCredentialSummary, G as MPPIntent, H as MPPKind, J as MPPReceiptSummary, K as MPPRequestContext, L as MPPRequestLike, N as MPPResponseLike, O as MPPVerifyInput, P as MPPVerifyResult, Q as ParsedRFC9421, R as PaymentMethodAllowlistInput, S as RFC9421SignatureParams, T as RFC9421Tag, U as RFC9421VerifyOptions, V as RFC9421VerifyRequest, W as RFC9421VerifyResult, X as RegistryName, Y as RegistryResolver, Z as ResolveContext, _ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, $ as SpendingLimitInput, a0 as StripeWebhookInformationalEvent, a1 as TransactionContext, a2 as TransactionValueContext, a3 as TransportExtractor, a4 as UCPCheckoutContext, a5 as UCPManifestValidationResult, a6 as UCPRequestLike, a7 as UCPTotal, a8 as VIAllowedParty, a9 as VIBudgetLimit, aa as VIClaimsForValue, ab as VIConstraintEvalInput, ac as VIConstraints, ad as VIExecutionMode, ae as VIExtractedClaims, af as VILayer, ag as VILineItem, ah as VIMandateType, ai as VIPaymentAmount, aj as VIRecurrence, ak as VIVerifyInput, al as VIVerifyResult, am as VerifyStripeWebhookOptions, an as VerifyStripeWebhookResult, ao as X402Kind, ap as X402RequestContext, aq as X402RequestForValue, ar as X402RequestLike, as as X402RequirementsSummary, at as X402ResponseLike, au as applyCredentials, av as bindIdentity, aw as claim, ax as clearTransportExtractors, ay as createMastercardRegistry, az as createVisaRegistry, aA as createWebBotAuthRegistry, aB as detectProtocol, aC as evaluatePaymentMethodAllowlist, aD as evaluateSpendingLimit, aE as evaluateVIConstraints, aF as extractA2ACredentials, aG as extractACPContext, aH as extractACPTransactionValue, aI as extractAP2Mandate, aJ as extractAP2Mandates, aK as extractAP2TransactionValue, aL as extractCredentialsFromProtocol, aM as extractHttpCredentials, aN as extractMPPContext, aO as extractMPPFromRequest, aP as extractMPPFromResponse, aQ as extractMPPTransactionValue, aR as extractMcpCredentials, aS as extractUCPContext, aT as extractUCPTransactionValue, aU as extractVIClaims, aV as extractVITransactionValue, aW as extractX402Context, aX as extractX402FromRequest, aY as extractX402FromResponse, aZ as extractX402TransactionValue, a_ as fetchUCPManifest, a$ as getTransportExtractor, b0 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-BrNKDmiR.mjs';
1
+ import '../types-BcDf9Kk0.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, i as AP2ChainResult, j as AP2IntentMandateClaims, k as AP2MandateClaims, l as AP2MandateTriple, m as AP2MandateTripleInput, n as AP2MandateType, o as AP2PaymentDetailsTotal, p as AP2PaymentMandateClaims, q as AP2PaymentMandateForValue, r as AP2VerifyInput, C as CommerceContext, s as CommercePipelineInput, t as CommerceProtocol, u as CommercePurpose, v as CommerceSignatureStack, w as ConstraintEvalResult, x as ConstraintKey, y as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, z as IdentityClaim, B as IdentityResolver, M as MPPChallengeForValue, D as MPPChallengeSummary, F as MPPCredentialSummary, G as MPPIntent, H as MPPKind, J as MPPReceiptSummary, K as MPPRequestContext, L as MPPRequestLike, N as MPPResponseLike, O as MPPVerifyInput, P as MPPVerifyResult, Q as ParsedRFC9421, R as PaymentMethodAllowlistInput, S as RFC9421SignatureParams, T as RFC9421Tag, U as RFC9421VerifyOptions, V as RFC9421VerifyRequest, W as RFC9421VerifyResult, X as RegistryName, Y as RegistryResolver, Z as ResolveContext, _ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, $ as SpendingLimitInput, a0 as StripeWebhookInformationalEvent, a1 as TransactionContext, a2 as TransactionValueContext, a3 as TransportExtractor, a4 as UCPCheckoutContext, a5 as UCPManifestValidationResult, a6 as UCPRequestLike, a7 as UCPTotal, a8 as VIAllowedParty, a9 as VIBudgetLimit, aa as VIClaimsForValue, ab as VIConstraintEvalInput, ac as VIConstraints, ad as VIExecutionMode, ae as VIExtractedClaims, af as VILayer, ag as VILineItem, ah as VIMandateType, ai as VIPaymentAmount, aj as VIRecurrence, ak as VIVerifyInput, al as VIVerifyResult, am as VerifyStripeWebhookOptions, an as VerifyStripeWebhookResult, ao as X402Kind, ap as X402RequestContext, aq as X402RequestForValue, ar as X402RequestLike, as as X402RequirementsSummary, at as X402ResponseLike, au as applyCredentials, av as bindIdentity, aw as claim, ax as clearTransportExtractors, ay as createMastercardRegistry, az as createVisaRegistry, aA as createWebBotAuthRegistry, aB as detectProtocol, aC as evaluatePaymentMethodAllowlist, aD as evaluateSpendingLimit, aE as evaluateVIConstraints, aF as extractA2ACredentials, aG as extractACPContext, aH as extractACPTransactionValue, aI as extractAP2Mandate, aJ as extractAP2Mandates, aK as extractAP2TransactionValue, aL as extractCredentialsFromProtocol, aM as extractHttpCredentials, aN as extractMPPContext, aO as extractMPPFromRequest, aP as extractMPPFromResponse, aQ as extractMPPTransactionValue, aR as extractMcpCredentials, aS as extractUCPContext, aT as extractUCPTransactionValue, aU as extractVIClaims, aV as extractVITransactionValue, aW as extractX402Context, aX as extractX402FromRequest, aY as extractX402FromResponse, aZ as extractX402TransactionValue, a_ as fetchUCPManifest, a$ as getTransportExtractor, b0 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-B0cyMZDL.mjs';
3
3
  import '../metadata-capture.mjs';
4
4
  import 'jose';
@@ -1,4 +1,4 @@
1
- import '../types-9tns4wyl.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, i as AP2ChainResult, j as AP2IntentMandateClaims, k as AP2MandateClaims, l as AP2MandateTriple, m as AP2MandateTripleInput, n as AP2MandateType, o as AP2PaymentDetailsTotal, p as AP2PaymentMandateClaims, q as AP2PaymentMandateForValue, r as AP2VerifyInput, C as CommerceContext, s as CommercePipelineInput, t as CommerceProtocol, u as CommercePurpose, v as CommerceSignatureStack, w as ConstraintEvalResult, x as ConstraintKey, y as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, z as IdentityClaim, B as IdentityResolver, M as MPPChallengeForValue, D as MPPChallengeSummary, F as MPPCredentialSummary, G as MPPIntent, H as MPPKind, J as MPPReceiptSummary, K as MPPRequestContext, L as MPPRequestLike, N as MPPResponseLike, O as MPPVerifyInput, P as MPPVerifyResult, Q as ParsedRFC9421, R as PaymentMethodAllowlistInput, S as RFC9421SignatureParams, T as RFC9421Tag, U as RFC9421VerifyOptions, V as RFC9421VerifyRequest, W as RFC9421VerifyResult, X as RegistryName, Y as RegistryResolver, Z as ResolveContext, _ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, $ as SpendingLimitInput, a0 as StripeWebhookInformationalEvent, a1 as TransactionContext, a2 as TransactionValueContext, a3 as TransportExtractor, a4 as UCPCheckoutContext, a5 as UCPManifestValidationResult, a6 as UCPRequestLike, a7 as UCPTotal, a8 as VIAllowedParty, a9 as VIBudgetLimit, aa as VIClaimsForValue, ab as VIConstraintEvalInput, ac as VIConstraints, ad as VIExecutionMode, ae as VIExtractedClaims, af as VILayer, ag as VILineItem, ah as VIMandateType, ai as VIPaymentAmount, aj as VIRecurrence, ak as VIVerifyInput, al as VIVerifyResult, am as VerifyStripeWebhookOptions, an as VerifyStripeWebhookResult, ao as X402Kind, ap as X402RequestContext, aq as X402RequestForValue, ar as X402RequestLike, as as X402RequirementsSummary, at as X402ResponseLike, au as applyCredentials, av as bindIdentity, aw as claim, ax as clearTransportExtractors, ay as createMastercardRegistry, az as createVisaRegistry, aA as createWebBotAuthRegistry, aB as detectProtocol, aC as evaluatePaymentMethodAllowlist, aD as evaluateSpendingLimit, aE as evaluateVIConstraints, aF as extractA2ACredentials, aG as extractACPContext, aH as extractACPTransactionValue, aI as extractAP2Mandate, aJ as extractAP2Mandates, aK as extractAP2TransactionValue, aL as extractCredentialsFromProtocol, aM as extractHttpCredentials, aN as extractMPPContext, aO as extractMPPFromRequest, aP as extractMPPFromResponse, aQ as extractMPPTransactionValue, aR as extractMcpCredentials, aS as extractUCPContext, aT as extractUCPTransactionValue, aU as extractVIClaims, aV as extractVITransactionValue, aW as extractX402Context, aX as extractX402FromRequest, aY as extractX402FromResponse, aZ as extractX402TransactionValue, a_ as fetchUCPManifest, a$ as getTransportExtractor, b0 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-D2ztkumS.js';
1
+ import '../types-fTQD448H.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, i as AP2ChainResult, j as AP2IntentMandateClaims, k as AP2MandateClaims, l as AP2MandateTriple, m as AP2MandateTripleInput, n as AP2MandateType, o as AP2PaymentDetailsTotal, p as AP2PaymentMandateClaims, q as AP2PaymentMandateForValue, r as AP2VerifyInput, C as CommerceContext, s as CommercePipelineInput, t as CommerceProtocol, u as CommercePurpose, v as CommerceSignatureStack, w as ConstraintEvalResult, x as ConstraintKey, y as ConstraintResult, E as ExtractorRequestLike, I as IdentityBindingResult, z as IdentityClaim, B as IdentityResolver, M as MPPChallengeForValue, D as MPPChallengeSummary, F as MPPCredentialSummary, G as MPPIntent, H as MPPKind, J as MPPReceiptSummary, K as MPPRequestContext, L as MPPRequestLike, N as MPPResponseLike, O as MPPVerifyInput, P as MPPVerifyResult, Q as ParsedRFC9421, R as PaymentMethodAllowlistInput, S as RFC9421SignatureParams, T as RFC9421Tag, U as RFC9421VerifyOptions, V as RFC9421VerifyRequest, W as RFC9421VerifyResult, X as RegistryName, Y as RegistryResolver, Z as ResolveContext, _ as STRIPE_WEBHOOK_INFORMATIONAL_EVENTS, $ as SpendingLimitInput, a0 as StripeWebhookInformationalEvent, a1 as TransactionContext, a2 as TransactionValueContext, a3 as TransportExtractor, a4 as UCPCheckoutContext, a5 as UCPManifestValidationResult, a6 as UCPRequestLike, a7 as UCPTotal, a8 as VIAllowedParty, a9 as VIBudgetLimit, aa as VIClaimsForValue, ab as VIConstraintEvalInput, ac as VIConstraints, ad as VIExecutionMode, ae as VIExtractedClaims, af as VILayer, ag as VILineItem, ah as VIMandateType, ai as VIPaymentAmount, aj as VIRecurrence, ak as VIVerifyInput, al as VIVerifyResult, am as VerifyStripeWebhookOptions, an as VerifyStripeWebhookResult, ao as X402Kind, ap as X402RequestContext, aq as X402RequestForValue, ar as X402RequestLike, as as X402RequirementsSummary, at as X402ResponseLike, au as applyCredentials, av as bindIdentity, aw as claim, ax as clearTransportExtractors, ay as createMastercardRegistry, az as createVisaRegistry, aA as createWebBotAuthRegistry, aB as detectProtocol, aC as evaluatePaymentMethodAllowlist, aD as evaluateSpendingLimit, aE as evaluateVIConstraints, aF as extractA2ACredentials, aG as extractACPContext, aH as extractACPTransactionValue, aI as extractAP2Mandate, aJ as extractAP2Mandates, aK as extractAP2TransactionValue, aL as extractCredentialsFromProtocol, aM as extractHttpCredentials, aN as extractMPPContext, aO as extractMPPFromRequest, aP as extractMPPFromResponse, aQ as extractMPPTransactionValue, aR as extractMcpCredentials, aS as extractUCPContext, aT as extractUCPTransactionValue, aU as extractVIClaims, aV as extractVITransactionValue, aW as extractX402Context, aX as extractX402FromRequest, aY as extractX402FromResponse, aZ as extractX402TransactionValue, a_ as fetchUCPManifest, a$ as getTransportExtractor, b0 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-adgKhujR.js';
3
3
  import '../metadata-capture.js';
4
4
  import 'jose';
@@ -144,6 +144,13 @@ interface GatewayConfig {
144
144
  * compatibility.
145
145
  */
146
146
  strictInit?: boolean;
147
+ /**
148
+ * 4.0.0: hard timeout (ms) on the outbound verify-access call. Without it
149
+ * a hanging backend hangs the merchant's middleware — and every inbound
150
+ * agent request behind it — indefinitely. Timeouts surface as the
151
+ * fail-closed `verify_access.api_error` result. Default 10_000.
152
+ */
153
+ verifyTimeoutMs?: number;
147
154
  /**
148
155
  * v2.3.8: emit `X-Astra-Gateway-Mode: unenforced` (with
149
156
  * `X-Astra-Gateway-Reason: no-policy | no-match`) on responses where the
@@ -459,6 +466,24 @@ interface VerificationResult {
459
466
  * `verify_access.internal_error` 200-shaped failure shape.
460
467
  */
461
468
  correlationId?: string;
469
+ /**
470
+ * 3.12.0 (Trust Record, §33.5 #3): attempt-chain handle, server-echoed on
471
+ * every response branch (caller-supplied or server-minted). Disjoint from
472
+ * `correlationId`/`sessionId` — those identify one verification EVENT; an
473
+ * attempt CONTAINS events (the whole catalog → intent → settlement funnel
474
+ * for one shopping attempt). On a cache hit the SDK overwrites this with
475
+ * the current request's own attemptId (or drops it) so a cached verdict
476
+ * never leaks a prior attempt's id.
477
+ */
478
+ attemptId?: string;
479
+ /**
480
+ * 4.0.0: the backend rejected THIS INTEGRATION'S own API key (revoked /
481
+ * expired / rotated) — a deterministic merchant-side misconfig, distinct
482
+ * from both an agent denial and a transient `verify_access.api_error`.
483
+ * Adapters branch on it to answer inbound agents with 503 +
484
+ * `MERCHANT_VERIFICATION_MISCONFIGURED` instead of a misleading 401.
485
+ */
486
+ misconfigured?: boolean;
462
487
  /** Whether step-up authentication is required */
463
488
  requiresStepUp?: boolean;
464
489
  /** Whether approval is required */
@@ -582,6 +607,98 @@ interface VerificationRequest {
582
607
  * backend's `commerceArtifacts` schema 1:1.
583
608
  */
584
609
  commerceArtifacts?: CommerceArtifactsPayload;
610
+ /**
611
+ * 3.12.0 (Trust Record, §33.5 #3) — attempt-chain handle correlating the
612
+ * multi-call commerce funnel (catalog → intent → settlement) into ONE
613
+ * attempt. Format `att_` + 32 lowercase hex. Optional: the server mints one
614
+ * when absent and echoes it top-level on every response branch either way.
615
+ * Observational pass-through — never affects the verdict, so it's excluded
616
+ * from the verify cache key (see `getCacheKey`).
617
+ */
618
+ attemptId?: string;
619
+ /**
620
+ * 3.12.0 (Trust Record, §33.5 #3) — first-party observational data: the
621
+ * offers the agent evaluated at this checkpoint (catalog browse / intent
622
+ * selection). Forwarded verbatim to verify-access; never affects the
623
+ * verdict (also excluded from the cache key).
624
+ */
625
+ considerationSet?: ConsiderationSet;
626
+ }
627
+ /**
628
+ * One offer the agent evaluated (Trust Record, §33.5 #3). Mirrors the
629
+ * backend's `considerationItemSchema` 1:1 — first-party observational data
630
+ * reported by the transport (bridge / adapters), never verified locally.
631
+ */
632
+ interface ConsiderationItem {
633
+ /** SKU identifier as the merchant catalog publishes it (1–128 chars). */
634
+ sku: string;
635
+ /** Display title (≤256 chars). */
636
+ name?: string;
637
+ /** Price in MAJOR units (same convention as `transactionValue`), non-negative. */
638
+ price?: number;
639
+ /** ISO-4217 or settlement-asset code (3–6 alphanumeric chars). */
640
+ currency?: string;
641
+ /** Stock state as the catalog declared it; omit when the catalog didn't say. */
642
+ availability?: 'in_stock' | 'out_of_stock' | 'preorder' | 'unknown';
643
+ /** True when the agent selected this offer (intent/settlement checkpoints). */
644
+ chosen?: boolean;
645
+ /** Why an evaluated-but-unchosen offer lost, when the agent can say. */
646
+ notChosenReason?: 'price' | 'policy' | 'trust_threshold' | 'stock' | 'other';
647
+ }
648
+ /**
649
+ * The set of offers evaluated at one funnel checkpoint (Trust Record,
650
+ * §33.5 #3). Mirrors the backend's `considerationSetSchema` 1:1.
651
+ *
652
+ * `items` is capped at 50 server-side — reporters MUST order chosen items
653
+ * FIRST so purchased counts survive truncation; `totalEvaluated` carries the
654
+ * true pre-cap count and `truncated` flags that the cap was applied.
655
+ */
656
+ interface ConsiderationSet {
657
+ /** Funnel checkpoint this set was observed at. */
658
+ checkpoint?: 'catalog' | 'intent' | 'settlement';
659
+ /** Offers evaluated (max 50; chosen-first ordering under the cap). */
660
+ items: ConsiderationItem[];
661
+ /** True evaluated count — survives the 50-item cap. */
662
+ totalEvaluated?: number;
663
+ /** True when `items` was truncated to the cap. */
664
+ truncated?: boolean;
665
+ }
666
+ /**
667
+ * Terminal (or notable) outcome of an attempt chain, reported post-hoc via
668
+ * `reportAttempt` (Trust Record, §33.5 #3). Mirrors the backend's
669
+ * `attemptReportSchema.outcome` 1:1.
670
+ */
671
+ interface AttemptOutcome {
672
+ kind: 'settled' | 'blocked_step_up' | 'failed' | 'high_value_action';
673
+ /** Dotted ACTION-axis token for the failure class, e.g. `commerce.catalog.sku_not_found` (≤128 chars). */
674
+ dimension?: string;
675
+ /** Human-readable detail (≤512 chars). */
676
+ reason?: string;
677
+ /** For `high_value_action`: the non-payment conversion type. */
678
+ actionType?: 'lead' | 'signup' | 'application' | 'enquiry';
679
+ /** Value in MAJOR units (settled amount / estimated action value), non-negative. */
680
+ value?: number;
681
+ /** ISO-4217 or settlement-asset code (3–6 alphanumeric chars). */
682
+ currency?: string;
683
+ /** Settlement rail / mandate type, e.g. `ap2.payment_mandate` (≤64 chars). */
684
+ rail?: string;
685
+ }
686
+ /**
687
+ * Body for `POST /agents/verify-access/attempt-report` (Trust Record,
688
+ * §33.5 #3): post-hoc consideration/outcome data for an attempt chain that a
689
+ * verify-access call couldn't carry (e.g. the catalog was served from a local
690
+ * cache, or the deny happened transport-side). Must carry `considerationSet`
691
+ * and/or `outcome`.
692
+ */
693
+ interface AttemptReport {
694
+ /** Attempt-chain handle — `att_` + 32 lowercase hex. */
695
+ attemptId: string;
696
+ /** Merchant/endpoint the attempt targeted; falls back to `config.counterpartyId`. */
697
+ counterpartyId?: string;
698
+ /** Canonical ASTRA-* id of the acting agent, when known. */
699
+ agentId?: string;
700
+ considerationSet?: ConsiderationSet;
701
+ outcome?: AttemptOutcome;
585
702
  }
586
703
  /**
587
704
  * Raw commerce-protocol artifacts as verify-access accepts them (backend
@@ -929,4 +1046,4 @@ interface CommerceShieldProps {
929
1046
  className?: string;
930
1047
  }
931
1048
 
932
- export type { AccessFailure as A, CommerceArtifactsPayload as C, EnhancedVerificationResult as E, FiatSettlementBinding as F, GatewayConfig as G, NextJsMiddlewareOptions as N, PDLSSInfo as P, RouteAccessConfig as R, SDKOptions as S, TokenGuidance as T, VerificationRequest as V, AccessLevel as a, AgentCredentials as b, AstraSyncCredentials as c, CommerceShieldProps as d, CounterpartyType as e, ExpressMiddlewareOptions as f, GuidanceInfo as g, ProtocolTransport as h, RuntimeChallengeResult as i, SettlementArtifact as j, SettlementArtifactBinding as k, SettlementArtifactBindingBase as l, StablecoinSettlementBinding as m, StepUpApprovalInfo as n, StepUpApprovalStatus as o, StepUpOutcome as p, TrustLevel as q, VerificationResult as r, VerifiedAgent as s, VerifiedDeveloper as t, VerifiedOrganization as u };
1049
+ export type { AccessFailure as A, CallerMetadata as C, EnhancedVerificationResult as E, FiatSettlementBinding as F, GatewayConfig as G, NextJsMiddlewareOptions as N, PDLSSInfo as P, RouteAccessConfig as R, SDKOptions as S, TokenGuidance as T, VerificationRequest as V, AccessLevel as a, AgentCredentials as b, AstraSyncCredentials as c, AttemptOutcome as d, AttemptReport as e, CommerceArtifactsPayload as f, CommerceShieldProps as g, ConsiderationItem as h, ConsiderationSet as i, CounterpartyType as j, ExpressMiddlewareOptions as k, GuidanceInfo as l, ProtocolTransport as m, RuntimeChallengeResult as n, SettlementArtifact as o, SettlementArtifactBinding as p, SettlementArtifactBindingBase as q, StablecoinSettlementBinding as r, StepUpApprovalInfo as s, StepUpApprovalStatus as t, StepUpOutcome as u, TrustLevel as v, VerificationResult as w, VerifiedAgent as x, VerifiedDeveloper as y, VerifiedOrganization as z };
@@ -1,4 +1,4 @@
1
- import { a as AccessLevel, e as CounterpartyType, T as TokenGuidance } from './types-9tns4wyl.js';
1
+ import { a as AccessLevel, j as CounterpartyType, T as TokenGuidance } from './types-fTQD448H.js';
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, e as CounterpartyType, T as TokenGuidance } from './types-sy3tq8lp.mjs';
1
+ import { a as AccessLevel, j as CounterpartyType, T as TokenGuidance } from './types-BcDf9Kk0.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
@@ -144,6 +144,13 @@ interface GatewayConfig {
144
144
  * compatibility.
145
145
  */
146
146
  strictInit?: boolean;
147
+ /**
148
+ * 4.0.0: hard timeout (ms) on the outbound verify-access call. Without it
149
+ * a hanging backend hangs the merchant's middleware — and every inbound
150
+ * agent request behind it — indefinitely. Timeouts surface as the
151
+ * fail-closed `verify_access.api_error` result. Default 10_000.
152
+ */
153
+ verifyTimeoutMs?: number;
147
154
  /**
148
155
  * v2.3.8: emit `X-Astra-Gateway-Mode: unenforced` (with
149
156
  * `X-Astra-Gateway-Reason: no-policy | no-match`) on responses where the
@@ -459,6 +466,24 @@ interface VerificationResult {
459
466
  * `verify_access.internal_error` 200-shaped failure shape.
460
467
  */
461
468
  correlationId?: string;
469
+ /**
470
+ * 3.12.0 (Trust Record, §33.5 #3): attempt-chain handle, server-echoed on
471
+ * every response branch (caller-supplied or server-minted). Disjoint from
472
+ * `correlationId`/`sessionId` — those identify one verification EVENT; an
473
+ * attempt CONTAINS events (the whole catalog → intent → settlement funnel
474
+ * for one shopping attempt). On a cache hit the SDK overwrites this with
475
+ * the current request's own attemptId (or drops it) so a cached verdict
476
+ * never leaks a prior attempt's id.
477
+ */
478
+ attemptId?: string;
479
+ /**
480
+ * 4.0.0: the backend rejected THIS INTEGRATION'S own API key (revoked /
481
+ * expired / rotated) — a deterministic merchant-side misconfig, distinct
482
+ * from both an agent denial and a transient `verify_access.api_error`.
483
+ * Adapters branch on it to answer inbound agents with 503 +
484
+ * `MERCHANT_VERIFICATION_MISCONFIGURED` instead of a misleading 401.
485
+ */
486
+ misconfigured?: boolean;
462
487
  /** Whether step-up authentication is required */
463
488
  requiresStepUp?: boolean;
464
489
  /** Whether approval is required */
@@ -582,6 +607,98 @@ interface VerificationRequest {
582
607
  * backend's `commerceArtifacts` schema 1:1.
583
608
  */
584
609
  commerceArtifacts?: CommerceArtifactsPayload;
610
+ /**
611
+ * 3.12.0 (Trust Record, §33.5 #3) — attempt-chain handle correlating the
612
+ * multi-call commerce funnel (catalog → intent → settlement) into ONE
613
+ * attempt. Format `att_` + 32 lowercase hex. Optional: the server mints one
614
+ * when absent and echoes it top-level on every response branch either way.
615
+ * Observational pass-through — never affects the verdict, so it's excluded
616
+ * from the verify cache key (see `getCacheKey`).
617
+ */
618
+ attemptId?: string;
619
+ /**
620
+ * 3.12.0 (Trust Record, §33.5 #3) — first-party observational data: the
621
+ * offers the agent evaluated at this checkpoint (catalog browse / intent
622
+ * selection). Forwarded verbatim to verify-access; never affects the
623
+ * verdict (also excluded from the cache key).
624
+ */
625
+ considerationSet?: ConsiderationSet;
626
+ }
627
+ /**
628
+ * One offer the agent evaluated (Trust Record, §33.5 #3). Mirrors the
629
+ * backend's `considerationItemSchema` 1:1 — first-party observational data
630
+ * reported by the transport (bridge / adapters), never verified locally.
631
+ */
632
+ interface ConsiderationItem {
633
+ /** SKU identifier as the merchant catalog publishes it (1–128 chars). */
634
+ sku: string;
635
+ /** Display title (≤256 chars). */
636
+ name?: string;
637
+ /** Price in MAJOR units (same convention as `transactionValue`), non-negative. */
638
+ price?: number;
639
+ /** ISO-4217 or settlement-asset code (3–6 alphanumeric chars). */
640
+ currency?: string;
641
+ /** Stock state as the catalog declared it; omit when the catalog didn't say. */
642
+ availability?: 'in_stock' | 'out_of_stock' | 'preorder' | 'unknown';
643
+ /** True when the agent selected this offer (intent/settlement checkpoints). */
644
+ chosen?: boolean;
645
+ /** Why an evaluated-but-unchosen offer lost, when the agent can say. */
646
+ notChosenReason?: 'price' | 'policy' | 'trust_threshold' | 'stock' | 'other';
647
+ }
648
+ /**
649
+ * The set of offers evaluated at one funnel checkpoint (Trust Record,
650
+ * §33.5 #3). Mirrors the backend's `considerationSetSchema` 1:1.
651
+ *
652
+ * `items` is capped at 50 server-side — reporters MUST order chosen items
653
+ * FIRST so purchased counts survive truncation; `totalEvaluated` carries the
654
+ * true pre-cap count and `truncated` flags that the cap was applied.
655
+ */
656
+ interface ConsiderationSet {
657
+ /** Funnel checkpoint this set was observed at. */
658
+ checkpoint?: 'catalog' | 'intent' | 'settlement';
659
+ /** Offers evaluated (max 50; chosen-first ordering under the cap). */
660
+ items: ConsiderationItem[];
661
+ /** True evaluated count — survives the 50-item cap. */
662
+ totalEvaluated?: number;
663
+ /** True when `items` was truncated to the cap. */
664
+ truncated?: boolean;
665
+ }
666
+ /**
667
+ * Terminal (or notable) outcome of an attempt chain, reported post-hoc via
668
+ * `reportAttempt` (Trust Record, §33.5 #3). Mirrors the backend's
669
+ * `attemptReportSchema.outcome` 1:1.
670
+ */
671
+ interface AttemptOutcome {
672
+ kind: 'settled' | 'blocked_step_up' | 'failed' | 'high_value_action';
673
+ /** Dotted ACTION-axis token for the failure class, e.g. `commerce.catalog.sku_not_found` (≤128 chars). */
674
+ dimension?: string;
675
+ /** Human-readable detail (≤512 chars). */
676
+ reason?: string;
677
+ /** For `high_value_action`: the non-payment conversion type. */
678
+ actionType?: 'lead' | 'signup' | 'application' | 'enquiry';
679
+ /** Value in MAJOR units (settled amount / estimated action value), non-negative. */
680
+ value?: number;
681
+ /** ISO-4217 or settlement-asset code (3–6 alphanumeric chars). */
682
+ currency?: string;
683
+ /** Settlement rail / mandate type, e.g. `ap2.payment_mandate` (≤64 chars). */
684
+ rail?: string;
685
+ }
686
+ /**
687
+ * Body for `POST /agents/verify-access/attempt-report` (Trust Record,
688
+ * §33.5 #3): post-hoc consideration/outcome data for an attempt chain that a
689
+ * verify-access call couldn't carry (e.g. the catalog was served from a local
690
+ * cache, or the deny happened transport-side). Must carry `considerationSet`
691
+ * and/or `outcome`.
692
+ */
693
+ interface AttemptReport {
694
+ /** Attempt-chain handle — `att_` + 32 lowercase hex. */
695
+ attemptId: string;
696
+ /** Merchant/endpoint the attempt targeted; falls back to `config.counterpartyId`. */
697
+ counterpartyId?: string;
698
+ /** Canonical ASTRA-* id of the acting agent, when known. */
699
+ agentId?: string;
700
+ considerationSet?: ConsiderationSet;
701
+ outcome?: AttemptOutcome;
585
702
  }
586
703
  /**
587
704
  * Raw commerce-protocol artifacts as verify-access accepts them (backend
@@ -929,4 +1046,4 @@ interface CommerceShieldProps {
929
1046
  className?: string;
930
1047
  }
931
1048
 
932
- export type { AccessFailure as A, CommerceArtifactsPayload as C, EnhancedVerificationResult as E, FiatSettlementBinding as F, GatewayConfig as G, NextJsMiddlewareOptions as N, PDLSSInfo as P, RouteAccessConfig as R, SDKOptions as S, TokenGuidance as T, VerificationRequest as V, AccessLevel as a, AgentCredentials as b, AstraSyncCredentials as c, CommerceShieldProps as d, CounterpartyType as e, ExpressMiddlewareOptions as f, GuidanceInfo as g, ProtocolTransport as h, RuntimeChallengeResult as i, SettlementArtifact as j, SettlementArtifactBinding as k, SettlementArtifactBindingBase as l, StablecoinSettlementBinding as m, StepUpApprovalInfo as n, StepUpApprovalStatus as o, StepUpOutcome as p, TrustLevel as q, VerificationResult as r, VerifiedAgent as s, VerifiedDeveloper as t, VerifiedOrganization as u };
1049
+ export type { AccessFailure as A, CallerMetadata as C, EnhancedVerificationResult as E, FiatSettlementBinding as F, GatewayConfig as G, NextJsMiddlewareOptions as N, PDLSSInfo as P, RouteAccessConfig as R, SDKOptions as S, TokenGuidance as T, VerificationRequest as V, AccessLevel as a, AgentCredentials as b, AstraSyncCredentials as c, AttemptOutcome as d, AttemptReport as e, CommerceArtifactsPayload as f, CommerceShieldProps as g, ConsiderationItem as h, ConsiderationSet as i, CounterpartyType as j, ExpressMiddlewareOptions as k, GuidanceInfo as l, ProtocolTransport as m, RuntimeChallengeResult as n, SettlementArtifact as o, SettlementArtifactBinding as p, SettlementArtifactBindingBase as q, StablecoinSettlementBinding as r, StepUpApprovalInfo as s, StepUpApprovalStatus as t, StepUpOutcome as u, TrustLevel as v, VerificationResult as w, VerifiedAgent as x, VerifiedDeveloper as y, VerifiedOrganization as z };
@@ -1,4 +1,4 @@
1
- import { d as CommerceShieldProps, r as VerificationResult, b as AgentCredentials, g as GuidanceInfo, q as TrustLevel } from '../types-sy3tq8lp.mjs';
1
+ import { g as CommerceShieldProps, w as VerificationResult, b as AgentCredentials, l as GuidanceInfo, v as TrustLevel } from '../types-BcDf9Kk0.mjs';
2
2
  import '../metadata-capture.mjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { d as CommerceShieldProps, r as VerificationResult, b as AgentCredentials, g as GuidanceInfo, q as TrustLevel } from '../types-9tns4wyl.js';
1
+ import { g as CommerceShieldProps, w as VerificationResult, b as AgentCredentials, l as GuidanceInfo, v as TrustLevel } from '../types-fTQD448H.js';
2
2
  import '../metadata-capture.js';
3
3
 
4
4
  /**
package/dist/verify.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, V as VerificationRequest, r as VerificationResult } from './types-sy3tq8lp.mjs';
1
+ import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, e as AttemptReport, V as VerificationRequest, w as VerificationResult } from './types-BcDf9Kk0.mjs';
2
2
  import { ObservedMetadata } from './metadata-capture.mjs';
3
3
 
4
4
  /**
@@ -8,6 +8,8 @@ import { ObservedMetadata } from './metadata-capture.mjs';
8
8
  * and processing the response into a standardized VerificationResult.
9
9
  */
10
10
 
11
+ /** Test-only: re-arm the one-time init self-check. */
12
+ declare function _resetInitCheck(): void;
11
13
  /**
12
14
  * Clear the verification cache
13
15
  */
@@ -42,6 +44,17 @@ declare function verify(config: GatewayConfig, request: VerificationRequest, opt
42
44
  * Fire-and-forget — errors are silently swallowed.
43
45
  */
44
46
  declare function recordDecision(config: GatewayConfig, sessionId: string, decision: 'granted' | 'denied', reason?: string): Promise<void>;
47
+ /**
48
+ * Report post-hoc consideration/outcome data for an attempt chain (Trust
49
+ * Record, §33.5 #3). Use when the signal never reached verify-access: a
50
+ * catalog served from a local cache, a transport-side deny (sku not found,
51
+ * over budget), or a terminal outcome (settled / blocked on step-up).
52
+ * Authenticated with the same credentials as verify(); the backend responds
53
+ * 202 and folds the data into the attempt chain keyed by `attemptId`.
54
+ *
55
+ * Fire-and-forget — errors are silently swallowed, never throws.
56
+ */
57
+ declare function reportAttempt(config: GatewayConfig, report: AttemptReport): Promise<void>;
45
58
  /**
46
59
  * Fetch the per-route policy for an endpoint from the AstraSync backend.
47
60
  * v2.9.7 moved policy authority into the dashboard — the SDK no longer
@@ -148,4 +161,4 @@ declare function quickVerify(config: GatewayConfig, credentials: AgentCredential
148
161
  reason?: string;
149
162
  }>;
150
163
 
151
- export { type RouteAccessConfigShape, type VerifyOptions, clearCache, extractCredentials, fetchRoutes, hasCredentials, quickVerify, recordDecision, reportCounterpartyPreCheckFailure, reportUnregisteredAttempt, verify, verifyAndRecord };
164
+ export { type RouteAccessConfigShape, type VerifyOptions, _resetInitCheck, clearCache, extractCredentials, fetchRoutes, hasCredentials, quickVerify, recordDecision, reportAttempt, reportCounterpartyPreCheckFailure, reportUnregisteredAttempt, verify, verifyAndRecord };
package/dist/verify.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, V as VerificationRequest, r as VerificationResult } from './types-9tns4wyl.js';
1
+ import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, e as AttemptReport, V as VerificationRequest, w as VerificationResult } from './types-fTQD448H.js';
2
2
  import { ObservedMetadata } from './metadata-capture.js';
3
3
 
4
4
  /**
@@ -8,6 +8,8 @@ import { ObservedMetadata } from './metadata-capture.js';
8
8
  * and processing the response into a standardized VerificationResult.
9
9
  */
10
10
 
11
+ /** Test-only: re-arm the one-time init self-check. */
12
+ declare function _resetInitCheck(): void;
11
13
  /**
12
14
  * Clear the verification cache
13
15
  */
@@ -42,6 +44,17 @@ declare function verify(config: GatewayConfig, request: VerificationRequest, opt
42
44
  * Fire-and-forget — errors are silently swallowed.
43
45
  */
44
46
  declare function recordDecision(config: GatewayConfig, sessionId: string, decision: 'granted' | 'denied', reason?: string): Promise<void>;
47
+ /**
48
+ * Report post-hoc consideration/outcome data for an attempt chain (Trust
49
+ * Record, §33.5 #3). Use when the signal never reached verify-access: a
50
+ * catalog served from a local cache, a transport-side deny (sku not found,
51
+ * over budget), or a terminal outcome (settled / blocked on step-up).
52
+ * Authenticated with the same credentials as verify(); the backend responds
53
+ * 202 and folds the data into the attempt chain keyed by `attemptId`.
54
+ *
55
+ * Fire-and-forget — errors are silently swallowed, never throws.
56
+ */
57
+ declare function reportAttempt(config: GatewayConfig, report: AttemptReport): Promise<void>;
45
58
  /**
46
59
  * Fetch the per-route policy for an endpoint from the AstraSync backend.
47
60
  * v2.9.7 moved policy authority into the dashboard — the SDK no longer
@@ -148,4 +161,4 @@ declare function quickVerify(config: GatewayConfig, credentials: AgentCredential
148
161
  reason?: string;
149
162
  }>;
150
163
 
151
- export { type RouteAccessConfigShape, type VerifyOptions, clearCache, extractCredentials, fetchRoutes, hasCredentials, quickVerify, recordDecision, reportCounterpartyPreCheckFailure, reportUnregisteredAttempt, verify, verifyAndRecord };
164
+ export { type RouteAccessConfigShape, type VerifyOptions, _resetInitCheck, clearCache, extractCredentials, fetchRoutes, hasCredentials, quickVerify, recordDecision, reportAttempt, reportCounterpartyPreCheckFailure, reportUnregisteredAttempt, verify, verifyAndRecord };