@astrasyncai/verification-gateway 4.2.0 → 4.3.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.
- package/README.md +45 -21
- package/dist/adapter-interface/interface.d.mts +2 -2
- package/dist/adapter-interface/interface.d.ts +2 -2
- package/dist/adapters/express.d.mts +2 -2
- package/dist/adapters/express.d.ts +2 -2
- package/dist/adapters/express.js +56 -4
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +56 -4
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +38 -30
- package/dist/adapters/mcp.d.ts +38 -30
- package/dist/adapters/mcp.js +22 -5
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +22 -5
- package/dist/adapters/mcp.mjs.map +1 -1
- package/dist/adapters/nextjs.d.mts +2 -2
- package/dist/adapters/nextjs.d.ts +2 -2
- package/dist/adapters/nextjs.js +54 -4
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +54 -4
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.d.mts +2 -2
- package/dist/adapters/sdk.d.ts +2 -2
- package/dist/agent/index.d.mts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +2 -2
- package/dist/agent/index.mjs.map +1 -1
- package/dist/bin/astrasync-claude-hook.js +2 -2
- package/dist/bin/astrasync-codex-hook.js +2 -2
- package/dist/bin/astrasync-guard.js +2 -2
- package/dist/bin/astrasync.js +14 -4
- package/dist/browser/background.js +2 -2
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +2 -2
- package/dist/browser/background.mjs.map +1 -1
- package/dist/browser/browser-adapter.d.mts +2 -2
- package/dist/browser/browser-adapter.d.ts +2 -2
- package/dist/claude-code/claude-code-adapter.d.mts +2 -2
- package/dist/claude-code/claude-code-adapter.d.ts +2 -2
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/codex/index.d.mts +2 -2
- package/dist/codex/index.d.ts +2 -2
- package/dist/codex/index.js +2 -2
- package/dist/codex/index.js.map +1 -1
- package/dist/codex/index.mjs +2 -2
- package/dist/codex/index.mjs.map +1 -1
- package/dist/cursor/cursor-adapter.d.mts +2 -2
- package/dist/cursor/cursor-adapter.d.ts +2 -2
- package/dist/cursor/extension.d.mts +2 -2
- package/dist/cursor/extension.d.ts +2 -2
- package/dist/cursor/extension.js +2 -2
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +2 -2
- package/dist/cursor/extension.mjs.map +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/edge-core/index.js +25 -5
- package/dist/edge-core/index.js.map +1 -1
- package/dist/edge-core/index.mjs +25 -5
- package/dist/edge-core/index.mjs.map +1 -1
- package/dist/{express-D_4hTn5Z.d.mts → express-CR6F3njD.d.mts} +1 -1
- package/dist/{express-BVd1_3FE.d.ts → express-DaqL11tx.d.ts} +1 -1
- package/dist/gateway/gateway.d.mts +2 -2
- package/dist/gateway/gateway.d.ts +2 -2
- package/dist/gateway/gateway.js +2 -2
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +2 -2
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/git-trigger/git-hooks.d.mts +2 -2
- package/dist/git-trigger/git-hooks.d.ts +2 -2
- package/dist/{index-B0YHu_SP.d.ts → index-B5Ts1WtM.d.ts} +3 -3
- package/dist/{index-T1aBoUcc.d.ts → index-BfIxCYIZ.d.ts} +1 -1
- package/dist/{index-BPEBlOsE.d.mts → index-Cub7lK-T.d.mts} +3 -3
- package/dist/{index-DQb5-_1X.d.mts → index-CwAh7Tln.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +74 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -32
- package/dist/index.mjs.map +1 -1
- package/dist/local-evaluator/evaluator.d.mts +2 -2
- package/dist/local-evaluator/evaluator.d.ts +2 -2
- package/dist/metadata-capture.d.mts +18 -5
- package/dist/metadata-capture.d.ts +18 -5
- package/dist/metadata-capture.js +21 -4
- package/dist/metadata-capture.js.map +1 -1
- package/dist/metadata-capture.mjs +20 -4
- package/dist/metadata-capture.mjs.map +1 -1
- package/dist/{nextjs-w7RTbP1P.d.ts → nextjs-DL6uE1ye.d.ts} +1 -1
- package/dist/{nextjs-WyeVr2Kp.d.mts → nextjs-DlX6xwbU.d.mts} +1 -1
- package/dist/{sdk-CbTNIkAa.d.mts → sdk-Bbh9B_dw.d.mts} +1 -1
- package/dist/{sdk-QeX0Z8Ho.d.ts → sdk-C6SASmsh.d.ts} +1 -1
- package/dist/transport/index.d.mts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/transport/index.js +5 -5
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +2 -2
- package/dist/transport/index.mjs.map +1 -1
- package/dist/{types-r850cOt0.d.mts → types-C0zfSXMB.d.mts} +22 -0
- package/dist/{types-DqfPU5Bl.d.mts → types-C7Rb-w0d.d.mts} +1 -1
- package/dist/{types-sMxBT-nM.d.ts → types-DwSfO7Sb.d.ts} +22 -0
- package/dist/{types-BLUx92FJ.d.ts → types-nIh3HtuA.d.ts} +1 -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 +2 -4
|
@@ -897,6 +897,19 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
897
897
|
* disable the beacon and its config fetch entirely.
|
|
898
898
|
*/
|
|
899
899
|
anonymousBeacon?: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* Trust a fresh `X-Astra-Verified-Hop` marker from an upstream AstraSync
|
|
902
|
+
* hop (edge gateway at authenticate/authorize depth, or an MCP outer hop)
|
|
903
|
+
* and skip the duplicate verify-access call when the marker matches the
|
|
904
|
+
* presented `X-Astra-Id` and is within the freshness window. The marker is
|
|
905
|
+
* an UNSIGNED dedupe advisory — enable only when every network path to
|
|
906
|
+
* this middleware crosses a stripping gateway or equivalent trusted
|
|
907
|
+
* boundary. Default false. No `req.agentVerification` is populated on a
|
|
908
|
+
* hop-skip (same contract as the MCP adapter).
|
|
909
|
+
*/
|
|
910
|
+
trustVerifiedHop?: boolean;
|
|
911
|
+
/** Acceptable `X-Astra-Verified-Hop` age in ms (default 60 000). */
|
|
912
|
+
verifiedHopMaxAgeMs?: number;
|
|
900
913
|
}
|
|
901
914
|
/**
|
|
902
915
|
* Next.js middleware options.
|
|
@@ -907,6 +920,15 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
907
920
|
interface NextJsMiddlewareOptions extends GatewayConfig {
|
|
908
921
|
/** Paths to skip verification */
|
|
909
922
|
skipPaths?: string[];
|
|
923
|
+
/**
|
|
924
|
+
* Trust a fresh `X-Astra-Verified-Hop` marker from an upstream AstraSync
|
|
925
|
+
* hop and skip the duplicate verify-access call — see
|
|
926
|
+
* `ExpressMiddlewareOptions.trustVerifiedHop` for the trust model.
|
|
927
|
+
* Default false.
|
|
928
|
+
*/
|
|
929
|
+
trustVerifiedHop?: boolean;
|
|
930
|
+
/** Acceptable `X-Astra-Verified-Hop` age in ms (default 60 000). */
|
|
931
|
+
verifiedHopMaxAgeMs?: number;
|
|
910
932
|
/** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
|
|
911
933
|
routesRefreshMs?: number;
|
|
912
934
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AccessLevel, j as CounterpartyType, T as TokenGuidance } from './types-
|
|
1
|
+
import { a as AccessLevel, j as CounterpartyType, T as TokenGuidance } from './types-C0zfSXMB.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
|
|
@@ -897,6 +897,19 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
897
897
|
* disable the beacon and its config fetch entirely.
|
|
898
898
|
*/
|
|
899
899
|
anonymousBeacon?: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* Trust a fresh `X-Astra-Verified-Hop` marker from an upstream AstraSync
|
|
902
|
+
* hop (edge gateway at authenticate/authorize depth, or an MCP outer hop)
|
|
903
|
+
* and skip the duplicate verify-access call when the marker matches the
|
|
904
|
+
* presented `X-Astra-Id` and is within the freshness window. The marker is
|
|
905
|
+
* an UNSIGNED dedupe advisory — enable only when every network path to
|
|
906
|
+
* this middleware crosses a stripping gateway or equivalent trusted
|
|
907
|
+
* boundary. Default false. No `req.agentVerification` is populated on a
|
|
908
|
+
* hop-skip (same contract as the MCP adapter).
|
|
909
|
+
*/
|
|
910
|
+
trustVerifiedHop?: boolean;
|
|
911
|
+
/** Acceptable `X-Astra-Verified-Hop` age in ms (default 60 000). */
|
|
912
|
+
verifiedHopMaxAgeMs?: number;
|
|
900
913
|
}
|
|
901
914
|
/**
|
|
902
915
|
* Next.js middleware options.
|
|
@@ -907,6 +920,15 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
907
920
|
interface NextJsMiddlewareOptions extends GatewayConfig {
|
|
908
921
|
/** Paths to skip verification */
|
|
909
922
|
skipPaths?: string[];
|
|
923
|
+
/**
|
|
924
|
+
* Trust a fresh `X-Astra-Verified-Hop` marker from an upstream AstraSync
|
|
925
|
+
* hop and skip the duplicate verify-access call — see
|
|
926
|
+
* `ExpressMiddlewareOptions.trustVerifiedHop` for the trust model.
|
|
927
|
+
* Default false.
|
|
928
|
+
*/
|
|
929
|
+
trustVerifiedHop?: boolean;
|
|
930
|
+
/** Acceptable `X-Astra-Verified-Hop` age in ms (default 60 000). */
|
|
931
|
+
verifiedHopMaxAgeMs?: number;
|
|
910
932
|
/** Refresh interval (ms) for the remote-fetched route policy. Default: 5 minutes. */
|
|
911
933
|
routesRefreshMs?: number;
|
|
912
934
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AccessLevel, j as CounterpartyType, T as TokenGuidance } from './types-
|
|
1
|
+
import { a as AccessLevel, j as CounterpartyType, T as TokenGuidance } from './types-DwSfO7Sb.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Gateway - Types for gateway modes, local evaluation, and adapter interface.
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, x as VerificationResult, b as AgentCredentials, l as GuidanceInfo, v as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, x as VerificationResult, b as AgentCredentials, l as GuidanceInfo, v as TrustLevel } from '../types-C0zfSXMB.mjs';
|
|
2
2
|
import '../metadata-capture.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, x as VerificationResult, b as AgentCredentials, l as GuidanceInfo, v as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, x as VerificationResult, b as AgentCredentials, l as GuidanceInfo, v as TrustLevel } from '../types-DwSfO7Sb.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, e as AttemptReport, w as VerificationRequest, x as VerificationResult } from './types-
|
|
1
|
+
import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, e as AttemptReport, w as VerificationRequest, x as VerificationResult } from './types-C0zfSXMB.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 { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, e as AttemptReport, w as VerificationRequest, x as VerificationResult } from './types-
|
|
1
|
+
import { b as AgentCredentials, G as GatewayConfig, a as AccessLevel, e as AttemptReport, w as VerificationRequest, x as VerificationResult } from './types-DwSfO7Sb.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": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
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",
|
|
@@ -174,9 +174,7 @@
|
|
|
174
174
|
"directory": "packages/verification-gateway"
|
|
175
175
|
},
|
|
176
176
|
"dependencies": {
|
|
177
|
-
"@sd-jwt/core": "^0.
|
|
178
|
-
"@sd-jwt/decode": "^0.19.0",
|
|
179
|
-
"@sd-jwt/utils": "^0.19.0",
|
|
177
|
+
"@sd-jwt/core": "^0.20.0",
|
|
180
178
|
"@x402/core": "^2.10.0",
|
|
181
179
|
"ajv": "^8.17.1",
|
|
182
180
|
"ethers": "^6.13.0",
|