@astrasyncai/verification-gateway 5.19.0 → 5.20.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 (111) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +51 -2
  3. package/dist/adapter-interface/interface.d.mts +2 -2
  4. package/dist/adapter-interface/interface.d.ts +2 -2
  5. package/dist/adapters/express.d.mts +1 -1
  6. package/dist/adapters/express.d.ts +1 -1
  7. package/dist/adapters/express.js +65 -16
  8. package/dist/adapters/express.js.map +1 -1
  9. package/dist/adapters/express.mjs +65 -16
  10. package/dist/adapters/express.mjs.map +1 -1
  11. package/dist/adapters/mcp.d.mts +23 -1
  12. package/dist/adapters/mcp.d.ts +23 -1
  13. package/dist/adapters/mcp.js +91 -16
  14. package/dist/adapters/mcp.js.map +1 -1
  15. package/dist/adapters/mcp.mjs +91 -16
  16. package/dist/adapters/mcp.mjs.map +1 -1
  17. package/dist/adapters/nextjs.d.mts +1 -1
  18. package/dist/adapters/nextjs.d.ts +1 -1
  19. package/dist/adapters/nextjs.js +57 -11
  20. package/dist/adapters/nextjs.js.map +1 -1
  21. package/dist/adapters/nextjs.mjs +57 -11
  22. package/dist/adapters/nextjs.mjs.map +1 -1
  23. package/dist/adapters/sdk.d.mts +58 -2
  24. package/dist/adapters/sdk.d.ts +58 -2
  25. package/dist/adapters/sdk.js +124 -11
  26. package/dist/adapters/sdk.js.map +1 -1
  27. package/dist/adapters/sdk.mjs +124 -11
  28. package/dist/adapters/sdk.mjs.map +1 -1
  29. package/dist/agent/index.d.mts +1 -1
  30. package/dist/agent/index.d.ts +1 -1
  31. package/dist/agent/index.js +1 -1
  32. package/dist/agent/index.js.map +1 -1
  33. package/dist/agent/index.mjs +1 -1
  34. package/dist/agent/index.mjs.map +1 -1
  35. package/dist/bin/astrasync-claude-hook.js +49 -11
  36. package/dist/bin/astrasync-codex-hook.js +49 -11
  37. package/dist/bin/astrasync-guard.js +49 -11
  38. package/dist/bin/astrasync.js +51 -12
  39. package/dist/browser/background.js +49 -11
  40. package/dist/browser/background.js.map +1 -1
  41. package/dist/browser/background.mjs +49 -11
  42. package/dist/browser/background.mjs.map +1 -1
  43. package/dist/cli/index.js +1 -1
  44. package/dist/cli/index.js.map +1 -1
  45. package/dist/cli/index.mjs +1 -1
  46. package/dist/cli/index.mjs.map +1 -1
  47. package/dist/codex/index.js +49 -11
  48. package/dist/codex/index.js.map +1 -1
  49. package/dist/codex/index.mjs +49 -11
  50. package/dist/codex/index.mjs.map +1 -1
  51. package/dist/cursor/extension.js +49 -11
  52. package/dist/cursor/extension.js.map +1 -1
  53. package/dist/cursor/extension.mjs +49 -11
  54. package/dist/cursor/extension.mjs.map +1 -1
  55. package/dist/edge-config.d.mts +1 -1
  56. package/dist/edge-config.d.ts +1 -1
  57. package/dist/edge-config.js +1 -1
  58. package/dist/edge-config.js.map +1 -1
  59. package/dist/edge-config.mjs +1 -1
  60. package/dist/edge-config.mjs.map +1 -1
  61. package/dist/edge-core/index.d.mts +1 -1
  62. package/dist/edge-core/index.d.ts +1 -1
  63. package/dist/edge-core/index.js +49 -11
  64. package/dist/edge-core/index.js.map +1 -1
  65. package/dist/edge-core/index.mjs +49 -11
  66. package/dist/edge-core/index.mjs.map +1 -1
  67. package/dist/gateway/gateway.d.mts +2 -2
  68. package/dist/gateway/gateway.d.ts +2 -2
  69. package/dist/gateway/gateway.js +49 -11
  70. package/dist/gateway/gateway.js.map +1 -1
  71. package/dist/gateway/gateway.mjs +49 -11
  72. package/dist/gateway/gateway.mjs.map +1 -1
  73. package/dist/git-trigger/git-hooks.d.mts +1 -1
  74. package/dist/git-trigger/git-hooks.d.ts +1 -1
  75. package/dist/index.d.mts +168 -8
  76. package/dist/index.d.ts +168 -8
  77. package/dist/index.js +229 -31
  78. package/dist/index.js.map +1 -1
  79. package/dist/index.mjs +226 -31
  80. package/dist/index.mjs.map +1 -1
  81. package/dist/local-evaluator/evaluator.d.mts +2 -2
  82. package/dist/local-evaluator/evaluator.d.ts +2 -2
  83. package/dist/registration/index.d.mts +11 -2
  84. package/dist/registration/index.d.ts +11 -2
  85. package/dist/registration/index.js +1 -1
  86. package/dist/registration/index.js.map +1 -1
  87. package/dist/registration/index.mjs +1 -1
  88. package/dist/registration/index.mjs.map +1 -1
  89. package/dist/transport/index.d.mts +1 -1
  90. package/dist/transport/index.d.ts +1 -1
  91. package/dist/transport/index.js +1 -1
  92. package/dist/transport/index.js.map +1 -1
  93. package/dist/transport/index.mjs +1 -1
  94. package/dist/transport/index.mjs.map +1 -1
  95. package/dist/{types-BRz2U0Pn.d.ts → types-B_HLhZ9n.d.ts} +1 -1
  96. package/dist/{types-BfILnheI.d.mts → types-CU17R4Nr.d.mts} +11 -0
  97. package/dist/{types-BfILnheI.d.ts → types-CU17R4Nr.d.ts} +11 -0
  98. package/dist/{types-DqWPkiYl.d.mts → types-CxjqmPl-.d.mts} +25 -1
  99. package/dist/{types-DqWPkiYl.d.ts → types-CxjqmPl-.d.ts} +25 -1
  100. package/dist/{types-BoGjyon0.d.mts → types-D37aSQ9c.d.mts} +25 -1
  101. package/dist/{types-CfBpm3w5.d.mts → types-Djpz-L0w.d.mts} +1 -1
  102. package/dist/{types-eWyZuz-3.d.ts → types-Dn8tXnei.d.ts} +25 -1
  103. package/dist/ui/index.d.mts +1 -1
  104. package/dist/ui/index.d.ts +1 -1
  105. package/dist/verify.d.mts +28 -3
  106. package/dist/verify.d.ts +28 -3
  107. package/dist/verify.js +71 -11
  108. package/dist/verify.js.map +1 -1
  109. package/dist/verify.mjs +69 -11
  110. package/dist/verify.mjs.map +1 -1
  111. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -243,6 +243,17 @@ interface GatewayConfig {
243
243
  debug?: boolean;
244
244
  /** Custom headers to send with verification requests */
245
245
  customHeaders?: Record<string, string>;
246
+ /**
247
+ * 5.20.0: proof that this caller may act as the agent, sent as
248
+ * `actingProof` in the verify-access body. Honoured only from a
249
+ * first-party AstraSync service caller (the bridge): the backend checks the
250
+ * connector's OAuth access token and records a `connector_owner` proof when
251
+ * its owner owns the agent. Ignored for any other key. A verify carrying it
252
+ * is never served from, or written to, the verdict cache.
253
+ */
254
+ actingProof?: {
255
+ connectorToken: string;
256
+ };
246
257
  /** This counterparty's URL (sent with verify-access requests for analytics) */
247
258
  counterpartyUrl?: string;
248
259
  /** This counterparty's type (sent with verify-access requests for analytics) */
@@ -549,7 +560,9 @@ interface StepUpApprovalInfo {
549
560
  * Lifecycle states of a step-up approval row (mirrors the backend's
550
561
  * step_up_approval_status_check constraint).
551
562
  */
552
- type StepUpApprovalStatus = 'pending' | 'approved' | 'denied' | 'expired' | 'consumed';
563
+ type StepUpApprovalStatus = 'pending' | 'approved' | 'denied' | 'expired' | 'consumed'
564
+ /** 5.20.0: approved but never redeemed inside the redemption window. */
565
+ | 'lapsed';
553
566
  /**
554
567
  * Terminal outcome of a hold-and-poll wait: any non-pending status, or
555
568
  * 'timeout' when the hold budget ran out while the approval was still pending.
@@ -741,6 +754,12 @@ interface VerificationResult {
741
754
  * (steer the user to add one via onboarding).
742
755
  */
743
756
  settlementOutcome?: SettlementOutcomeInfo;
757
+ /**
758
+ * 5.20.0 (round 29.1): non-fatal integration warnings for the caller —
759
+ * e.g. `events_url_missing` when a kit's held confirm is on an endpoint with
760
+ * no Events URL (the kit would never hear the owner's decision).
761
+ */
762
+ warnings?: VerificationWarning[];
744
763
  /**
745
764
  * Card settlement token. Present on a card purchase at a first-party
746
765
  * storefront (our Stripe tenant) — 5.14.1: always, there is no charge-here
@@ -1658,6 +1677,11 @@ interface AstraSyncAepEvidence {
1658
1677
  platform_countersignature: string;
1659
1678
  }>;
1660
1679
  }
1680
+ /** 5.20.0: a non-fatal warning on a verify-access result (see `warnings`). */
1681
+ interface VerificationWarning {
1682
+ code: string;
1683
+ message: string;
1684
+ }
1661
1685
 
1662
1686
  /**
1663
1687
  * AstraSync Universal Verification Gateway — Trust Level helpers.
@@ -1689,7 +1713,8 @@ declare function getTrustLevel(score: number): TrustLevel;
1689
1713
  */
1690
1714
 
1691
1715
  /**
1692
- * Clear the verification cache
1716
+ * Clear the verification cache, and (5.20.0) forget in-flight single-flight
1717
+ * calls so a later identical request reaches the backend on its own.
1693
1718
  */
1694
1719
  declare function clearCache(): void;
1695
1720
  /**
@@ -1717,6 +1742,24 @@ interface VerifyOptions {
1717
1742
  * Main verification function
1718
1743
  */
1719
1744
  declare function verify(config: GatewayConfig, request: VerificationRequest, options?: VerifyOptions): Promise<VerificationResult>;
1745
+ /**
1746
+ * Whether `result` was served from the verdict cache or shared from a
1747
+ * concurrent identical call (5.20.0). The adapters skip the decision POST for
1748
+ * these: the session already has its decision from the call that created it.
1749
+ */
1750
+ declare function isSharedVerdict(result: VerificationResult): boolean;
1751
+ type VerificationListener = (result: VerificationResult, request: VerificationRequest) => void;
1752
+ /**
1753
+ * 5.20.0: observe every verdict this process fetched from verify-access
1754
+ * (cache hits and single-flight followers are not repeated). Listeners run
1755
+ * synchronously after the result is built and must not throw (a throw is
1756
+ * swallowed). Returns an unsubscribe function.
1757
+ *
1758
+ * The MCP bridge uses it to size its per-agent rate limit from the trust
1759
+ * score its tools' own verifies return, instead of paying for a second
1760
+ * verify-access call in the gate.
1761
+ */
1762
+ declare function onVerificationResult(listener: VerificationListener): () => void;
1720
1763
  /**
1721
1764
  * Report post-hoc consideration/outcome data for an attempt chain (Trust
1722
1765
  * Record). Use when the signal never reached verify-access: a
@@ -1750,6 +1793,12 @@ declare function fetchRoutes(config: GatewayConfig, counterpartyId: string, opti
1750
1793
  * here can only add checks".
1751
1794
  */
1752
1795
  codeGates?: string[];
1796
+ /**
1797
+ * 5.20.0: called with the endpoint's `counterpartyType` when the routes
1798
+ * response carries it (backend round 29.1+). The MCP middleware uses it
1799
+ * to warn when it is pointed at a non-`mcp_server` endpoint.
1800
+ */
1801
+ onEndpointType?: (counterpartyType: string) => void;
1753
1802
  }): Promise<RouteAccessConfigShape[] | null>;
1754
1803
  /**
1755
1804
  * Minimal shape of an EndpointRoute as the SDK consumes it. Mirrors the
@@ -2274,6 +2323,40 @@ declare class VerificationGatewayClient {
2274
2323
  status: string;
2275
2324
  alreadySettled?: boolean;
2276
2325
  }>;
2326
+ /**
2327
+ * 5.20.0 (round 29.1): change an endpoint's OPERATIONAL URLs with this
2328
+ * client's API key — `PATCH /api/endpoints/:id`. Accepts the key of the
2329
+ * endpoint's owner, or a personal key of an individual with an active seat
2330
+ * in the owning organisation. Policy (rules, trust floor, challenge, edge
2331
+ * config) stays dashboard-only. `null` clears a field. The owner is alerted
2332
+ * when `eventsUrl` changes.
2333
+ *
2334
+ * @param endpointId the ASTRAE id (defaults to the client's `counterpartyId`)
2335
+ * @returns the endpoint as stored, plus `changed` (the fields that changed)
2336
+ * @throws AstraSyncError — 400 `UNKNOWN_FIELDS` / validation, 401/403, 404
2337
+ */
2338
+ updateEndpoint(endpointId: string | undefined, patch: EndpointOperationalPatch): Promise<Record<string, unknown> & {
2339
+ changed: Array<keyof EndpointOperationalPatch>;
2340
+ }>;
2341
+ /**
2342
+ * 5.20.0 (round 29.1): ask AstraSync to send ONE signed step-up event to the
2343
+ * endpoint's Events URL now — `POST /api/endpoints/:id/events/test`.
2344
+ * Delivered synchronously, outside the event outbox (random `eventId`, no
2345
+ * retries), signed with the endpoint's webhook secret like a real event.
2346
+ * Without `approvalId` the payload is synthetic (a kit acknowledges and
2347
+ * ignores it). With the id of a held kit approval at this endpoint the
2348
+ * payload is the real one, so your resume path runs: `approved` makes the
2349
+ * kit re-confirm (held again — nothing is charged); `denied` / `expired` /
2350
+ * `lapsed` release the session.
2351
+ *
2352
+ * Resolves even when your endpoint refused the event (`delivered: false`,
2353
+ * with `responseCode` / `error`).
2354
+ */
2355
+ sendTestEvent(endpointId: string | undefined, options: {
2356
+ type: TestEventType;
2357
+ approvalId?: string;
2358
+ }): Promise<TestEventResult>;
2359
+ private endpointCall;
2277
2360
  /**
2278
2361
  * Quick verification — checks credentials and policy in one call.
2279
2362
  *
@@ -2313,6 +2396,28 @@ declare class VerificationGatewayClient {
2313
2396
  */
2314
2397
  private executeWithRetry;
2315
2398
  }
2399
+ /** 5.20.0: the operational fields `updateEndpoint` may change (`null` clears). */
2400
+ interface EndpointOperationalPatch {
2401
+ eventsUrl?: string | null;
2402
+ healthCheckUrl?: string | null;
2403
+ skillUrl?: string | null;
2404
+ catalogUrl?: string | null;
2405
+ checkoutUrl?: string | null;
2406
+ }
2407
+ /** 5.20.0: the step-up event types `sendTestEvent` can send. */
2408
+ type TestEventType = 'step_up.approved' | 'step_up.denied' | 'step_up.expired' | 'step_up.lapsed';
2409
+ /** 5.20.0: what `sendTestEvent` reports. */
2410
+ interface TestEventResult {
2411
+ delivered: boolean;
2412
+ /** delivered | failed (bad answer / unreachable) | not_configured (no Events URL or secret). */
2413
+ status: 'delivered' | 'failed' | 'not_configured';
2414
+ /** Your endpoint's HTTP status, or null when nothing answered. */
2415
+ responseCode: number | null;
2416
+ error: string | null;
2417
+ eventId: string;
2418
+ type: TestEventType;
2419
+ approvalId: string | null;
2420
+ }
2316
2421
  /**
2317
2422
  * Create a new SDK client
2318
2423
  */
@@ -2328,13 +2433,16 @@ declare function verifyOnce(options: SDKOptions & {
2328
2433
  action?: string;
2329
2434
  }): Promise<VerificationResult>;
2330
2435
 
2436
+ type sdk_EndpointOperationalPatch = EndpointOperationalPatch;
2437
+ type sdk_TestEventResult = TestEventResult;
2438
+ type sdk_TestEventType = TestEventType;
2331
2439
  type sdk_VerificationGatewayClient = VerificationGatewayClient;
2332
2440
  declare const sdk_VerificationGatewayClient: typeof VerificationGatewayClient;
2333
2441
  declare const sdk_createClient: typeof createClient;
2334
2442
  declare const sdk_getTrustLevel: typeof getTrustLevel;
2335
2443
  declare const sdk_verifyOnce: typeof verifyOnce;
2336
2444
  declare namespace sdk {
2337
- export { sdk_VerificationGatewayClient as VerificationGatewayClient, sdk_createClient as createClient, sdk_getTrustLevel as getTrustLevel, sdk_verifyOnce as verifyOnce };
2445
+ export { type sdk_EndpointOperationalPatch as EndpointOperationalPatch, type sdk_TestEventResult as TestEventResult, type sdk_TestEventType as TestEventType, sdk_VerificationGatewayClient as VerificationGatewayClient, sdk_createClient as createClient, sdk_getTrustLevel as getTrustLevel, sdk_verifyOnce as verifyOnce };
2338
2446
  }
2339
2447
 
2340
2448
  /**
@@ -4127,6 +4235,28 @@ interface McpMiddlewareOptions extends GatewayConfig {
4127
4235
  toolGatePrecedence?: 'code' | 'dashboard';
4128
4236
  /** 5.19.0: refresh interval (ms) for the dashboard tool rules. Default 5 minutes. */
4129
4237
  routesRefreshMs?: number;
4238
+ /**
4239
+ * 5.20.0: tools and JSON-RPC methods that pass through with NO verify-access
4240
+ * call at all — not even the audit evaluation `evaluateAlwaysIfCredentialed`
4241
+ * adds for credentialed callers. Applies only while the call is not
4242
+ * enforced (an `'observe'` gate, or a handshake/introspection method with
4243
+ * no `methodGates` entry); a dashboard rule that enforces a listed tool
4244
+ * still verifies.
4245
+ *
4246
+ * Use it for:
4247
+ * - `methods`: handshake and introspection (`initialize`, `tools/list`,
4248
+ * `resources/list`, `resources/read`) — nothing to attribute, and a
4249
+ * backend round trip slows the host's first card fetch;
4250
+ * - `tools`: observe tools whose handler calls verify-access itself, so
4251
+ * the gate's evaluation would be a second backend verify for the same
4252
+ * call (the MCP bridge measured ~3 backend calls per `verify_agent`).
4253
+ *
4254
+ * Listed calls leave `req.agentVerification` unset.
4255
+ */
4256
+ skipEvaluation?: {
4257
+ tools?: readonly string[];
4258
+ methods?: readonly string[];
4259
+ };
4130
4260
  /**
4131
4261
  * Posture when the MCP middleware itself throws an internal error.
4132
4262
  *
@@ -4443,7 +4573,12 @@ interface AgentRecord {
4443
4573
  description?: string;
4444
4574
  agentType: string;
4445
4575
  agentStatus: string;
4446
- trustScore: number;
4576
+ /**
4577
+ * @deprecated Round 29.1: no longer returned. An agent never sees its own
4578
+ * trust score (the register response omits it; counterparties read it
4579
+ * from verify-access).
4580
+ */
4581
+ trustScore?: number;
4447
4582
  astrasyncIdLevel1?: string | null;
4448
4583
  tempId?: string | null;
4449
4584
  metadata?: Record<string, unknown>;
@@ -4457,7 +4592,11 @@ interface VerifyResponse {
4457
4592
  agentUuid: string;
4458
4593
  agentName: string;
4459
4594
  agentDescription: string;
4460
- agentTrustScore: number;
4595
+ /**
4596
+ * @deprecated Round 29.1: no longer returned by public verification.
4597
+ * Counterparties read the score from verify-access.
4598
+ */
4599
+ agentTrustScore?: number;
4461
4600
  agentStatus: string;
4462
4601
  ownerName?: string;
4463
4602
  };
@@ -5346,7 +5485,7 @@ declare function detectRuntime(userAgent: string | undefined | null): string | u
5346
5485
  * silently (never throwing), so this is a no-op there — which is correct:
5347
5486
  * in a browser the page's real UA is the honest identity.
5348
5487
  */
5349
- declare const SDK_USER_AGENT = "astrasync-sdk/5.19.0";
5488
+ declare const SDK_USER_AGENT = "astrasync-sdk/5.20.0";
5350
5489
  declare const sdkFetch: typeof fetch;
5351
5490
 
5352
5491
  interface LocalPolicy {
@@ -5464,7 +5603,7 @@ declare function parseYaml(yamlContent: string): ParseResult;
5464
5603
  * is fine — bumping both in the release-ceremony commit keeps them
5465
5604
  * lockstep.
5466
5605
  */
5467
- declare const SDK_VERSION = "5.19.0";
5606
+ declare const SDK_VERSION = "5.20.0";
5468
5607
 
5469
5608
  /**
5470
5609
  * 5.15.0 — the `UCP-Agent` request header (UCP 2026-08-25): an RFC 8941
@@ -5507,6 +5646,9 @@ declare function checkUcpAgentBinding(header: string | string[] | null | undefin
5507
5646
  * `ucp.payment_handlers` are required even when empty; signing keys are the
5508
5647
  * TOP-LEVEL `keys[]` (a JWK Set). Served over HTTPS, never redirected, with
5509
5648
  * `Cache-Control: public, max-age >= 60`.
5649
+ *
5650
+ * 5.20.0: platforms that publish their keys as `signing_keys` are read too —
5651
+ * use {@link ucpProfileKeys} wherever a profile's signing keys are needed.
5510
5652
  */
5511
5653
 
5512
5654
  declare const UCP_VERSION = "2026-08-25";
@@ -5543,7 +5685,14 @@ interface UcpProfile {
5543
5685
  payment_handlers: Record<string, UcpPaymentHandlerEntry[]>;
5544
5686
  };
5545
5687
  keys?: JWK[];
5688
+ /** 5.20.0: accepted alongside `keys[]` (some platforms publish this name). */
5689
+ signing_keys?: JWK[];
5546
5690
  }
5691
+ /**
5692
+ * 5.20.0: a profile's signing keys — `keys[]` plus `signing_keys`, skipping
5693
+ * malformed entries and encryption keys (`use: 'enc'`).
5694
+ */
5695
+ declare function ucpProfileKeys(profile: Partial<UcpProfile> | null | undefined): JWK[];
5547
5696
  /** AstraSync payment handler declarations (spec pages hosted on astrasync.ai). */
5548
5697
  declare function astrasyncPaymentHandlers(handlers: string[], specBase?: string): Record<string, UcpPaymentHandlerEntry[]>;
5549
5698
  interface BuildProfileOptions {
@@ -5916,6 +6065,13 @@ interface CatalogItem {
5916
6065
  title: string;
5917
6066
  /** Minor units. */
5918
6067
  price: number;
6068
+ /**
6069
+ * 5.20.0: product image, an absolute http(s) URL. A relative or invalid value is
6070
+ * dropped when the kit prices the line.
6071
+ */
6072
+ image_url?: string;
6073
+ /** 5.20.0: short product description. */
6074
+ description?: string;
5919
6075
  }
5920
6076
  interface CheckoutLine {
5921
6077
  id: string;
@@ -6715,6 +6871,10 @@ interface AcpCheckoutSession {
6715
6871
  id: string;
6716
6872
  name: string;
6717
6873
  unit_amount: number;
6874
+ /** 5.20.0: absolute http(s) product image from the catalog. */
6875
+ image_url?: string;
6876
+ /** 5.20.0: product description from the catalog. */
6877
+ description?: string;
6718
6878
  };
6719
6879
  quantity: number;
6720
6880
  name: string;
@@ -7278,4 +7438,4 @@ declare function contentDigest(body: string): string;
7278
7438
  */
7279
7439
  declare function signHttpRequest(req: SignableRequest, opts: SignHttpRequestOptions): Promise<Record<string, string>>;
7280
7440
 
7281
- export { ACP_API_VERSION, ACP_SUPPORTED_API_VERSIONS, AEP_SPEC_VERSION, AP2_VCT, type AcpCheckoutKitOptions, type AcpCheckoutSession, type AcpCheckoutStatus, type AcpCheckoutStore, type AcpWellKnownOptions, type AepActorType, type AepArtifactRecord, type AepArtifactType, AepChain, type AepChainOptions, type AepChainVerification, type AepHashInput, type AgentArtifacts, AgentClient, type AgentCredentials, type AgentProtocol, type AgentProtocolIdentities, type AgentRecord, type Ap2Party, type Ap2VerifyResult, type ApprovalEvent, type ApprovalEventKit, type ApprovalEventsHandlerOptions, type ApprovalEventsResponse, AstraSync, type AstraSyncAepEvidence, type AstraSyncConfig, type AstraSyncCredentials, AstraSyncError, type AstraSyncMandates, type AttemptOutcome, type AttemptReport, AuthenticationError, type BuildGuidanceParams, CAPTURE_SCHEMA_VERSION, type CallerMetadata, ChallengeHandler, type CheckoutMetadata, type CommerceArtifactsPayload, type CommerceContext, type CommercePipelineInput, type CommerceShieldProps, type ConsiderationItem, type ConsiderationSet, type CounterpartyType, DECLARED_SOURCE_MAX, DEFAULT_EDGE_CONFIG, DEFAULT_IDEMPOTENCY_TTL_MS, type DashboardToolRule, type DynamicPlatformFingerprint, type EdgeConfig, type EdgeMode, type EdgePathRule, type EdgeVerificationDepth, type EnhancedVerificationResult, type ExpressHandlerOptions, type ExpressMiddlewareOptions, type FetchEdgeConfigResult, type FetchEdgeConfigSuccess, type FetchKit, type FiatSettlementBinding, type FrameworkConfig, type FulfilmentInfo, type GatewayConfig, type GuidanceEnvelope, type GuidanceInfo, type HandleApprovalEventsOptions, type HealthResponse, type HttpSignatureAlgorithm, type IdempotencyOptions, type IdempotencyRecord, type IdempotencyStore, KYDRequiredError, type KitExpressRequest, type KitExpressResponse, type KitMessage, type KitRequestContext, type KyaPayIdentity, type KyaPayResult, type KyaPayTokenType, type KyaPayVerifyOptions, type ParseResult as LocalPolicyParseResult, type ValidationError as LocalPolicyValidationError, type ValidationResult as LocalPolicyValidationResult, MAX_HEADERS, MAX_HEADER_VALUE_BYTES, MAX_TOTAL_BYTES, MCP_VERIFIED_HOP_HEADER, MCP_VERIFIED_HOP_MAX_AGE_MS, type McpMiddlewareOptions, MemoryCheckoutStore, MemoryIdempotencyStore, MemoryMppChallengeStore, MemorySeenEvents, type MerchantSettlementToken, type ModelConfig, type MppChallenge, type MppChallengeStore, type MppCredential, type MppReceipt, type MppVerifyOptions, type MppVerifyResult, type NegotiationResult, type NextJsMiddlewareOptions, type ObservedMetadata, type PDLSSConfig$1 as PDLSSConfig, type PDLSSDuration, type PDLSSInfo, type PDLSSLimits, type PDLSSPurpose, type PDLSSScope, type PDLSSSelfInstantiation, PLATFORM_AGENT_SIGNATURES, type PendingRegistrationResponse, type PendingResolution, type PlatformAgentVendor, type PlatformDetectionInput, type PlatformFingerprint, type PlatformSignatureDef, type PollRegistrationResult, type ProtocolTransport, type PurposeSource, RUNTIME_SIGNATURES, RedisIdempotencyStore, type RedisLike, type RegisterOptions, type RegisterResult, RegistrationDeniedError, RegistrationExpiredError, type RegistrationResponse, RegistrationTimeoutError, type ReportAttemptOptions, type ReportRetryOptions, type ResumeOutcome, type ResumeResult, type RootKeyResolver, type RouteAccessConfig, type RoutePolicy, type RuntimeChallengeResult, type RuntimeSignature, type SDKOptions, SDK_USER_AGENT, type SanitizeHeadersResult, type SeenEvents, type SettlementArtifact, type SettlementArtifactBinding, type SettlementArtifactBindingBase, type SettlementDecision, type SettlementOutcomeInfo, SettlementReportError, type SettlementRequest, type SignHttpRequestOptions, type SignableRequest, type StablecoinSettlementBinding, type StepUpApprovalInfo, type StepUpApprovalStatus, type StepUpOutcome, TRUST_LEVEL_RANGES, type TokenGuidance, type ToolGate, type ToolGateConfig, type TrustLevel, UCP_ORDER_CAPABILITY, UCP_VERSION, type UcpAgentBinding, type CatalogItem as UcpCatalogItem, type UcpCheckoutKitOptions, type CheckoutSession as UcpCheckoutSession, type CheckoutStore as UcpCheckoutStore, type UcpLink, type UcpMessage, type UcpOrder, type UcpProfile, type UcpProfileResult, type SettleResult as UcpSettleResult, type UcpSeverity, type UcpSignatureResult, VERIFICATION_STATUS_HEADER, SDK_VERSION as VERSION, type VerificationInterstitialProps, type VerificationRequest, type VerificationResult, type VerifiedAgent, type VerifiedDeveloper, type VerifiedHopMarker, type VerifiedOrganization, type VerifyAp2Options, type VerifyOptions, type VerifyResponse, type WaitForApprovalOptions, type WellKnownAgenticCommerce, type X402PaymentPayload, type X402PaymentRequired, type X402PaymentRequirements, type X402ResourceInfo, type X402SettlementResponse, _resetEdgeConfigCache, abandonIdempotent, acpPaymentHandlers, aepCanonicalJson, aepHash, aepPrivateKeyFromSeed, aepPublicKeyDocument, aepPublicKeyFromBase64, aepRawPublicKey, aepSign, aepTimestamp, aepVerifySignature, index as agent, approvalEventsHandler, astrasyncPaymentHandlers, authorizeSettlement, awaitStepUpApproval, beginIdempotent, buildAcpWellKnown, buildGuidance, buildMpp402Response, buildMppChallenge, buildSdkObservedMetadata, buildUcpOrder, buildUcpProfile, buildVerificationUnavailableBody, buildX402Challenge, canonicalJson, checkUcpAgentBinding, checkoutHash, clearCache, closedCheckoutMandate, closedPaymentMandate, contentDigest, createAcpCheckoutKit, createKbHop, createMcpMiddleware, createUcpCheckoutKit, decodeMppRequest, degradeToObserve, denyStatusFor, deriveConnectionFromHeaders, detectPlatformFingerprint, detectRuntime, encodeMppReceipt, encodeX402SettlementResponse, express, expressHandler, extractApiKeyFormat, extractCredentials, extractMcpCredentials, extractPlatformHeaders, fetchEdgeConfig, fetchRoutes, fetchUcpProfile, finishIdempotent, getCachedWellKnownUrls, getEdgeConfig, getTrustLevel, getWellKnownUrls, handleApprovalEvents, hasCredentials, idempotencyMiddleware, isEdgeConfig, isRejectedIdentityClaim, isRetryableSettlementError, isSpecialUseIp, isVerificationUnavailable, isVerifiedHopValidFor, issueDelegateSdJwt, matchEdgePathRule, matchPlatformSignature, matchRoutePattern, mppBodyDigest, negotiateUcp, nextjs, normalizeDeclaredSource, openCheckoutMandate, openPaymentMandate, parseYaml as parseLocalPolicyYaml, parseMppCredential, parseUcpAgentHeader, parseVerifiedHop, parseX402Challenge, parseX402Payment, pollStepUpStatus, prefetchWellKnown, quickVerify, recordDecision, reportAttempt, reportUnregisteredAttempt, requestFingerprint, rootMandateDigest, routePatternToRegExp, routePolicyOf, sanitizeHeaders, sdk, sdkFetch, sendUcpWebhook, serializeVerifiedHop, setMcpMeta, signHttpRequest, signRootMandate, signUcpRequest, signUcpResponse, index$1 as transport, ucpError, ucpEscalation, ucpFailure, ucpProfileHandler, ucpRequiredComponents, unavailableRetryAfterSeconds, validatePolicy as validateLocalPolicy, verify, verifyAepChain, verifyAp2Mandate, verifyDelegateChain, verifyKyaPayTokens, verifyMppChallenge, verifyUcpRequest, withIdempotency, x402PaymentMatchesOffer };
7441
+ export { ACP_API_VERSION, ACP_SUPPORTED_API_VERSIONS, AEP_SPEC_VERSION, AP2_VCT, type AcpCheckoutKitOptions, type AcpCheckoutSession, type AcpCheckoutStatus, type AcpCheckoutStore, type AcpWellKnownOptions, type AepActorType, type AepArtifactRecord, type AepArtifactType, AepChain, type AepChainOptions, type AepChainVerification, type AepHashInput, type AgentArtifacts, AgentClient, type AgentCredentials, type AgentProtocol, type AgentProtocolIdentities, type AgentRecord, type Ap2Party, type Ap2VerifyResult, type ApprovalEvent, type ApprovalEventKit, type ApprovalEventsHandlerOptions, type ApprovalEventsResponse, AstraSync, type AstraSyncAepEvidence, type AstraSyncConfig, type AstraSyncCredentials, AstraSyncError, type AstraSyncMandates, type AttemptOutcome, type AttemptReport, AuthenticationError, type BuildGuidanceParams, CAPTURE_SCHEMA_VERSION, type CallerMetadata, ChallengeHandler, type CheckoutMetadata, type CommerceArtifactsPayload, type CommerceContext, type CommercePipelineInput, type CommerceShieldProps, type ConsiderationItem, type ConsiderationSet, type CounterpartyType, DECLARED_SOURCE_MAX, DEFAULT_EDGE_CONFIG, DEFAULT_IDEMPOTENCY_TTL_MS, type DashboardToolRule, type DynamicPlatformFingerprint, type EdgeConfig, type EdgeMode, type EdgePathRule, type EdgeVerificationDepth, type EndpointOperationalPatch, type EnhancedVerificationResult, type ExpressHandlerOptions, type ExpressMiddlewareOptions, type FetchEdgeConfigResult, type FetchEdgeConfigSuccess, type FetchKit, type FiatSettlementBinding, type FrameworkConfig, type FulfilmentInfo, type GatewayConfig, type GuidanceEnvelope, type GuidanceInfo, type HandleApprovalEventsOptions, type HealthResponse, type HttpSignatureAlgorithm, type IdempotencyOptions, type IdempotencyRecord, type IdempotencyStore, KYDRequiredError, type KitExpressRequest, type KitExpressResponse, type KitMessage, type KitRequestContext, type KyaPayIdentity, type KyaPayResult, type KyaPayTokenType, type KyaPayVerifyOptions, type ParseResult as LocalPolicyParseResult, type ValidationError as LocalPolicyValidationError, type ValidationResult as LocalPolicyValidationResult, MAX_HEADERS, MAX_HEADER_VALUE_BYTES, MAX_TOTAL_BYTES, MCP_VERIFIED_HOP_HEADER, MCP_VERIFIED_HOP_MAX_AGE_MS, type McpMiddlewareOptions, MemoryCheckoutStore, MemoryIdempotencyStore, MemoryMppChallengeStore, MemorySeenEvents, type MerchantSettlementToken, type ModelConfig, type MppChallenge, type MppChallengeStore, type MppCredential, type MppReceipt, type MppVerifyOptions, type MppVerifyResult, type NegotiationResult, type NextJsMiddlewareOptions, type ObservedMetadata, type PDLSSConfig$1 as PDLSSConfig, type PDLSSDuration, type PDLSSInfo, type PDLSSLimits, type PDLSSPurpose, type PDLSSScope, type PDLSSSelfInstantiation, PLATFORM_AGENT_SIGNATURES, type PendingRegistrationResponse, type PendingResolution, type PlatformAgentVendor, type PlatformDetectionInput, type PlatformFingerprint, type PlatformSignatureDef, type PollRegistrationResult, type ProtocolTransport, type PurposeSource, RUNTIME_SIGNATURES, RedisIdempotencyStore, type RedisLike, type RegisterOptions, type RegisterResult, RegistrationDeniedError, RegistrationExpiredError, type RegistrationResponse, RegistrationTimeoutError, type ReportAttemptOptions, type ReportRetryOptions, type ResumeOutcome, type ResumeResult, type RootKeyResolver, type RouteAccessConfig, type RoutePolicy, type RuntimeChallengeResult, type RuntimeSignature, type SDKOptions, SDK_USER_AGENT, type SanitizeHeadersResult, type SeenEvents, type SettlementArtifact, type SettlementArtifactBinding, type SettlementArtifactBindingBase, type SettlementDecision, type SettlementOutcomeInfo, SettlementReportError, type SettlementRequest, type SignHttpRequestOptions, type SignableRequest, type StablecoinSettlementBinding, type StepUpApprovalInfo, type StepUpApprovalStatus, type StepUpOutcome, TRUST_LEVEL_RANGES, type TestEventResult, type TestEventType, type TokenGuidance, type ToolGate, type ToolGateConfig, type TrustLevel, UCP_ORDER_CAPABILITY, UCP_VERSION, type UcpAgentBinding, type CatalogItem as UcpCatalogItem, type UcpCheckoutKitOptions, type CheckoutSession as UcpCheckoutSession, type CheckoutStore as UcpCheckoutStore, type UcpLink, type UcpMessage, type UcpOrder, type UcpProfile, type UcpProfileResult, type SettleResult as UcpSettleResult, type UcpSeverity, type UcpSignatureResult, VERIFICATION_STATUS_HEADER, SDK_VERSION as VERSION, type VerificationInterstitialProps, type VerificationRequest, type VerificationResult, type VerificationWarning, type VerifiedAgent, type VerifiedDeveloper, type VerifiedHopMarker, type VerifiedOrganization, type VerifyAp2Options, type VerifyOptions, type VerifyResponse, type WaitForApprovalOptions, type WellKnownAgenticCommerce, type X402PaymentPayload, type X402PaymentRequired, type X402PaymentRequirements, type X402ResourceInfo, type X402SettlementResponse, _resetEdgeConfigCache, abandonIdempotent, acpPaymentHandlers, aepCanonicalJson, aepHash, aepPrivateKeyFromSeed, aepPublicKeyDocument, aepPublicKeyFromBase64, aepRawPublicKey, aepSign, aepTimestamp, aepVerifySignature, index as agent, approvalEventsHandler, astrasyncPaymentHandlers, authorizeSettlement, awaitStepUpApproval, beginIdempotent, buildAcpWellKnown, buildGuidance, buildMpp402Response, buildMppChallenge, buildSdkObservedMetadata, buildUcpOrder, buildUcpProfile, buildVerificationUnavailableBody, buildX402Challenge, canonicalJson, checkUcpAgentBinding, checkoutHash, clearCache, closedCheckoutMandate, closedPaymentMandate, contentDigest, createAcpCheckoutKit, createKbHop, createMcpMiddleware, createUcpCheckoutKit, decodeMppRequest, degradeToObserve, denyStatusFor, deriveConnectionFromHeaders, detectPlatformFingerprint, detectRuntime, encodeMppReceipt, encodeX402SettlementResponse, express, expressHandler, extractApiKeyFormat, extractCredentials, extractMcpCredentials, extractPlatformHeaders, fetchEdgeConfig, fetchRoutes, fetchUcpProfile, finishIdempotent, getCachedWellKnownUrls, getEdgeConfig, getTrustLevel, getWellKnownUrls, handleApprovalEvents, hasCredentials, idempotencyMiddleware, isEdgeConfig, isRejectedIdentityClaim, isRetryableSettlementError, isSharedVerdict, isSpecialUseIp, isVerificationUnavailable, isVerifiedHopValidFor, issueDelegateSdJwt, matchEdgePathRule, matchPlatformSignature, matchRoutePattern, mppBodyDigest, negotiateUcp, nextjs, normalizeDeclaredSource, onVerificationResult, openCheckoutMandate, openPaymentMandate, parseYaml as parseLocalPolicyYaml, parseMppCredential, parseUcpAgentHeader, parseVerifiedHop, parseX402Challenge, parseX402Payment, pollStepUpStatus, prefetchWellKnown, quickVerify, recordDecision, reportAttempt, reportUnregisteredAttempt, requestFingerprint, rootMandateDigest, routePatternToRegExp, routePolicyOf, sanitizeHeaders, sdk, sdkFetch, sendUcpWebhook, serializeVerifiedHop, setMcpMeta, signHttpRequest, signRootMandate, signUcpRequest, signUcpResponse, index$1 as transport, ucpError, ucpEscalation, ucpFailure, ucpProfileHandler, ucpProfileKeys, ucpRequiredComponents, unavailableRetryAfterSeconds, validatePolicy as validateLocalPolicy, verify, verifyAepChain, verifyAp2Mandate, verifyDelegateChain, verifyKyaPayTokens, verifyMppChallenge, verifyUcpRequest, withIdempotency, x402PaymentMatchesOffer };