@astrasyncai/verification-gateway 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/express.d.mts +1 -1
- package/dist/adapters/express.d.ts +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.d.ts +1 -1
- package/dist/adapters/nextjs.d.mts +1 -1
- package/dist/adapters/nextjs.d.ts +1 -1
- package/dist/adapters/sdk.d.mts +1 -1
- package/dist/adapters/sdk.d.ts +1 -1
- package/dist/edge-config.d.mts +1 -1
- package/dist/edge-config.d.ts +1 -1
- package/dist/edge-core/index.d.mts +1 -1
- package/dist/edge-core/index.d.ts +1 -1
- package/dist/git-trigger/git-hooks.d.mts +1 -1
- package/dist/git-trigger/git-hooks.d.ts +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/{types-W-A326w3.d.mts → types-BU04qAAR.d.mts} +7 -1
- package/dist/{types-W-A326w3.d.ts → types-BU04qAAR.d.ts} +7 -1
- package/dist/{types-DJMU5g7Z.d.mts → types-Bd2O3eX1.d.mts} +7 -1
- package/dist/{types-D28h1384.d.ts → types-DMChboN_.d.ts} +7 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/verify.d.mts +1 -1
- package/dist/verify.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestHandler, Request } from 'express';
|
|
2
|
-
import { d as VerificationResult, E as ExpressMiddlewareOptions, a as AstraSyncCredentials } from '../types-
|
|
2
|
+
import { d as VerificationResult, E as ExpressMiddlewareOptions, a as AstraSyncCredentials } from '../types-BU04qAAR.mjs';
|
|
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 { d as VerificationResult, E as ExpressMiddlewareOptions, a as AstraSyncCredentials } from '../types-
|
|
2
|
+
import { d as VerificationResult, E as ExpressMiddlewareOptions, a as AstraSyncCredentials } from '../types-BU04qAAR.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* AstraSync Universal Verification Gateway - Express Middleware
|
package/dist/adapters/mcp.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response, RequestHandler } from 'express';
|
|
2
|
-
import { d as VerificationResult, G as GatewayConfig } from '../types-
|
|
2
|
+
import { d as VerificationResult, G as GatewayConfig } from '../types-BU04qAAR.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* X-Astra-Verified-Hop — cross-hop verify-access dedupe marker.
|
package/dist/adapters/mcp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response, RequestHandler } from 'express';
|
|
2
|
-
import { d as VerificationResult, G as GatewayConfig } from '../types-
|
|
2
|
+
import { d as VerificationResult, G as GatewayConfig } from '../types-BU04qAAR.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* X-Astra-Verified-Hop — cross-hop verify-access dedupe marker.
|
|
@@ -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-
|
|
3
|
+
import { N as NextJsMiddlewareOptions } from '../types-BU04qAAR.mjs';
|
|
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-
|
|
3
|
+
import { N as NextJsMiddlewareOptions } from '../types-BU04qAAR.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create Next.js middleware for agent verification.
|
package/dist/adapters/sdk.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TrustLevel, S as SDKOptions, d as VerificationResult, c as VerificationRequest } from '../types-
|
|
1
|
+
import { T as TrustLevel, S as SDKOptions, d as VerificationResult, c as VerificationRequest } from '../types-BU04qAAR.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Universal Verification Gateway — Trust Level helpers.
|
package/dist/adapters/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TrustLevel, S as SDKOptions, d as VerificationResult, c as VerificationRequest } from '../types-
|
|
1
|
+
import { T as TrustLevel, S as SDKOptions, d as VerificationResult, c as VerificationRequest } from '../types-BU04qAAR.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Universal Verification Gateway — Trust Level helpers.
|
package/dist/edge-config.d.mts
CHANGED
package/dist/edge-config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EdgeMode, EdgeVerificationDepth, EdgeConfig } from '../edge-config.mjs';
|
|
2
2
|
import { PlatformFingerprint } from '../platform-signatures.mjs';
|
|
3
|
-
import { C as CommerceArtifactsPayload, V as VerificationRequest } from '../types-
|
|
3
|
+
import { C as CommerceArtifactsPayload, V as VerificationRequest } from '../types-Bd2O3eX1.mjs';
|
|
4
4
|
import { verify } from '../verify.mjs';
|
|
5
5
|
import { ObservedMetadata } from '../metadata-capture.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EdgeMode, EdgeVerificationDepth, EdgeConfig } from '../edge-config.js';
|
|
2
2
|
import { PlatformFingerprint } from '../platform-signatures.js';
|
|
3
|
-
import { C as CommerceArtifactsPayload, V as VerificationRequest } from '../types-
|
|
3
|
+
import { C as CommerceArtifactsPayload, V as VerificationRequest } from '../types-DMChboN_.js';
|
|
4
4
|
import { verify } from '../verify.js';
|
|
5
5
|
import { ObservedMetadata } from '../metadata-capture.js';
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -662,9 +662,15 @@ interface VerificationResult {
|
|
|
662
662
|
* 5.3.0 (astra-pay): sanitized outcome of first-party charge-at-redeem
|
|
663
663
|
* settlement. Carries NO voucher/instrument material — the settlement channel
|
|
664
664
|
* stays merchant-only; this is the result the agent plane is allowed to see.
|
|
665
|
+
*
|
|
666
|
+
* 5.4.2: `requires_approval` — the transaction is HELD for human step-up
|
|
667
|
+
* approval. Not a failure: record the order as pending; after the human
|
|
668
|
+
* approves, the platform re-drives the confirm with the SAME
|
|
669
|
+
* checkoutSessionId and that re-drive carries the settling outcome
|
|
670
|
+
* (one order row per session — the re-drive claims the same row).
|
|
665
671
|
*/
|
|
666
672
|
interface SettlementOutcomeInfo {
|
|
667
|
-
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument';
|
|
673
|
+
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument' | 'requires_approval';
|
|
668
674
|
/** First-party order id — the buyer sees the purchase in their AstraSync
|
|
669
675
|
* dashboard orders view (no public receipt page). */
|
|
670
676
|
orderId?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -662,9 +662,15 @@ interface VerificationResult {
|
|
|
662
662
|
* 5.3.0 (astra-pay): sanitized outcome of first-party charge-at-redeem
|
|
663
663
|
* settlement. Carries NO voucher/instrument material — the settlement channel
|
|
664
664
|
* stays merchant-only; this is the result the agent plane is allowed to see.
|
|
665
|
+
*
|
|
666
|
+
* 5.4.2: `requires_approval` — the transaction is HELD for human step-up
|
|
667
|
+
* approval. Not a failure: record the order as pending; after the human
|
|
668
|
+
* approves, the platform re-drives the confirm with the SAME
|
|
669
|
+
* checkoutSessionId and that re-drive carries the settling outcome
|
|
670
|
+
* (one order row per session — the re-drive claims the same row).
|
|
665
671
|
*/
|
|
666
672
|
interface SettlementOutcomeInfo {
|
|
667
|
-
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument';
|
|
673
|
+
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument' | 'requires_approval';
|
|
668
674
|
/** First-party order id — the buyer sees the purchase in their AstraSync
|
|
669
675
|
* dashboard orders view (no public receipt page). */
|
|
670
676
|
orderId?: string;
|
|
@@ -484,9 +484,15 @@ interface VerificationResult {
|
|
|
484
484
|
* 5.3.0 (astra-pay): sanitized outcome of first-party charge-at-redeem
|
|
485
485
|
* settlement. Carries NO voucher/instrument material — the settlement channel
|
|
486
486
|
* stays merchant-only; this is the result the agent plane is allowed to see.
|
|
487
|
+
*
|
|
488
|
+
* 5.4.2: `requires_approval` — the transaction is HELD for human step-up
|
|
489
|
+
* approval. Not a failure: record the order as pending; after the human
|
|
490
|
+
* approves, the platform re-drives the confirm with the SAME
|
|
491
|
+
* checkoutSessionId and that re-drive carries the settling outcome
|
|
492
|
+
* (one order row per session — the re-drive claims the same row).
|
|
487
493
|
*/
|
|
488
494
|
interface SettlementOutcomeInfo {
|
|
489
|
-
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument';
|
|
495
|
+
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument' | 'requires_approval';
|
|
490
496
|
/** First-party order id — the buyer sees the purchase in their AstraSync
|
|
491
497
|
* dashboard orders view (no public receipt page). */
|
|
492
498
|
orderId?: string;
|
|
@@ -484,9 +484,15 @@ interface VerificationResult {
|
|
|
484
484
|
* 5.3.0 (astra-pay): sanitized outcome of first-party charge-at-redeem
|
|
485
485
|
* settlement. Carries NO voucher/instrument material — the settlement channel
|
|
486
486
|
* stays merchant-only; this is the result the agent plane is allowed to see.
|
|
487
|
+
*
|
|
488
|
+
* 5.4.2: `requires_approval` — the transaction is HELD for human step-up
|
|
489
|
+
* approval. Not a failure: record the order as pending; after the human
|
|
490
|
+
* approves, the platform re-drives the confirm with the SAME
|
|
491
|
+
* checkoutSessionId and that re-drive carries the settling outcome
|
|
492
|
+
* (one order row per session — the re-drive claims the same row).
|
|
487
493
|
*/
|
|
488
494
|
interface SettlementOutcomeInfo {
|
|
489
|
-
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument';
|
|
495
|
+
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument' | 'requires_approval';
|
|
490
496
|
/** First-party order id — the buyer sees the purchase in their AstraSync
|
|
491
497
|
* dashboard orders view (no public receipt page). */
|
|
492
498
|
orderId?: string;
|
|
@@ -434,9 +434,15 @@ interface VerificationResult {
|
|
|
434
434
|
* 5.3.0 (astra-pay): sanitized outcome of first-party charge-at-redeem
|
|
435
435
|
* settlement. Carries NO voucher/instrument material — the settlement channel
|
|
436
436
|
* stays merchant-only; this is the result the agent plane is allowed to see.
|
|
437
|
+
*
|
|
438
|
+
* 5.4.2: `requires_approval` — the transaction is HELD for human step-up
|
|
439
|
+
* approval. Not a failure: record the order as pending; after the human
|
|
440
|
+
* approves, the platform re-drives the confirm with the SAME
|
|
441
|
+
* checkoutSessionId and that re-drive carries the settling outcome
|
|
442
|
+
* (one order row per session — the re-drive claims the same row).
|
|
437
443
|
*/
|
|
438
444
|
interface SettlementOutcomeInfo {
|
|
439
|
-
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument';
|
|
445
|
+
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument' | 'requires_approval';
|
|
440
446
|
/** First-party order id — the buyer sees the purchase in their AstraSync
|
|
441
447
|
* dashboard orders view (no public receipt page). */
|
|
442
448
|
orderId?: string;
|
|
@@ -434,9 +434,15 @@ interface VerificationResult {
|
|
|
434
434
|
* 5.3.0 (astra-pay): sanitized outcome of first-party charge-at-redeem
|
|
435
435
|
* settlement. Carries NO voucher/instrument material — the settlement channel
|
|
436
436
|
* stays merchant-only; this is the result the agent plane is allowed to see.
|
|
437
|
+
*
|
|
438
|
+
* 5.4.2: `requires_approval` — the transaction is HELD for human step-up
|
|
439
|
+
* approval. Not a failure: record the order as pending; after the human
|
|
440
|
+
* approves, the platform re-drives the confirm with the SAME
|
|
441
|
+
* checkoutSessionId and that re-drive carries the settling outcome
|
|
442
|
+
* (one order row per session — the re-drive claims the same row).
|
|
437
443
|
*/
|
|
438
444
|
interface SettlementOutcomeInfo {
|
|
439
|
-
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument';
|
|
445
|
+
status: 'settled' | 'failed' | 'requires_action' | 'no_instrument' | 'requires_approval';
|
|
440
446
|
/** First-party order id — the buyer sees the purchase in their AstraSync
|
|
441
447
|
* dashboard orders view (no public receipt page). */
|
|
442
448
|
orderId?: string;
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-BU04qAAR.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Verification Interstitial Component
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-BU04qAAR.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Verification Interstitial Component
|
package/dist/verify.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-
|
|
1
|
+
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-Bd2O3eX1.mjs';
|
|
2
2
|
import { ObservedMetadata } from './metadata-capture.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/verify.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-
|
|
1
|
+
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-DMChboN_.js';
|
|
2
2
|
import { ObservedMetadata } from './metadata-capture.js';
|
|
3
3
|
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrasyncai/verification-gateway",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "AstraSync KYA Platform SDK — counterparty verification gateway (verify incoming requests) + agent registration (register AI agents with the KYA backend).",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|