@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.
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler, Request } from 'express';
2
- import { d as VerificationResult, E as ExpressMiddlewareOptions, a as AstraSyncCredentials } from '../types-W-A326w3.mjs';
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-W-A326w3.js';
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
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, RequestHandler } from 'express';
2
- import { d as VerificationResult, G as GatewayConfig } from '../types-W-A326w3.mjs';
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.
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, RequestHandler } from 'express';
2
- import { d as VerificationResult, G as GatewayConfig } from '../types-W-A326w3.js';
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-W-A326w3.mjs';
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-W-A326w3.js';
3
+ import { N as NextJsMiddlewareOptions } from '../types-BU04qAAR.js';
4
4
 
5
5
  /**
6
6
  * Create Next.js middleware for agent verification.
@@ -1,4 +1,4 @@
1
- import { T as TrustLevel, S as SDKOptions, d as VerificationResult, c as VerificationRequest } from '../types-W-A326w3.mjs';
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.
@@ -1,4 +1,4 @@
1
- import { T as TrustLevel, S as SDKOptions, d as VerificationResult, c as VerificationRequest } from '../types-W-A326w3.js';
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.
@@ -1,4 +1,4 @@
1
- import { G as GatewayConfig } from './types-DJMU5g7Z.mjs';
1
+ import { G as GatewayConfig } from './types-Bd2O3eX1.mjs';
2
2
  import './metadata-capture.mjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { G as GatewayConfig } from './types-D28h1384.js';
1
+ import { G as GatewayConfig } from './types-DMChboN_.js';
2
2
  import './metadata-capture.js';
3
3
 
4
4
  /**
@@ -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-DJMU5g7Z.mjs';
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-D28h1384.js';
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
 
@@ -1,4 +1,4 @@
1
- import { T as TokenGuidance, b as CounterpartyType } from '../types-DJMU5g7Z.mjs';
1
+ import { T as TokenGuidance, b as CounterpartyType } from '../types-Bd2O3eX1.mjs';
2
2
  import '../metadata-capture.mjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { T as TokenGuidance, b as CounterpartyType } from '../types-D28h1384.js';
1
+ import { T as TokenGuidance, b as CounterpartyType } from '../types-DMChboN_.js';
2
2
  import '../metadata-capture.js';
3
3
 
4
4
  /**
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;
@@ -1,4 +1,4 @@
1
- import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-W-A326w3.mjs';
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
@@ -1,4 +1,4 @@
1
- import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-W-A326w3.js';
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-DJMU5g7Z.mjs';
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-D28h1384.js';
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.1",
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",