@astrasyncai/verification-gateway 2.4.12 → 2.4.14
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/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 +125 -35
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +125 -35
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +26 -4
- package/dist/adapters/mcp.d.ts +26 -4
- package/dist/adapters/mcp.js +94 -28
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +94 -28
- 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 +71 -28
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +71 -28
- 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/adapters/sdk.js +45 -22
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +45 -22
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/agent/index.d.mts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +29 -0
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +29 -0
- package/dist/agent/index.mjs.map +1 -1
- package/dist/browser/background.js +86 -24
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +86 -24
- 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/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- 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 +86 -24
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +86 -24
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/{express-C1ePFB7n.d.ts → express-CrfwoNAR.d.ts} +1 -1
- package/dist/{express-4WStX3PV.d.mts → express-ienhAXps.d.mts} +1 -1
- package/dist/gateway/gateway.d.mts +2 -2
- package/dist/gateway/gateway.d.ts +2 -2
- package/dist/gateway/gateway.js +86 -24
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +86 -24
- 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-ChPX4WHl.d.mts → index-B5e2IDWU.d.mts} +1 -1
- package/dist/{index-CzJMCgEy.d.ts → index-CCdZxvAr.d.ts} +71 -6
- package/dist/{index-D8IEntil.d.mts → index-CEg_WG6y.d.mts} +71 -6
- package/dist/{index-Cjm-zBeZ.d.ts → index-DC5f8eoQ.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +336 -71
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +336 -71
- 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/local-evaluator/evaluator.js +12 -2
- package/dist/local-evaluator/evaluator.js.map +1 -1
- package/dist/local-evaluator/evaluator.mjs +12 -2
- package/dist/local-evaluator/evaluator.mjs.map +1 -1
- package/dist/{nextjs-BIORS__0.d.ts → nextjs-66R1KW8e.d.ts} +1 -1
- package/dist/{nextjs-CjzHdaXA.d.mts → nextjs-DSpisQst.d.mts} +1 -1
- package/dist/{sdk-Chhz-FcT.d.mts → sdk-5U_CBRpr.d.mts} +1 -1
- package/dist/{sdk-CqTEQAc6.d.ts → sdk-Bm8np66n.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 +146 -28
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +146 -28
- package/dist/transport/index.mjs.map +1 -1
- package/dist/{types-L15pYd2c.d.mts → types-B3USs-Kx.d.mts} +42 -1
- package/dist/{types-L15pYd2c.d.ts → types-B3USs-Kx.d.ts} +42 -1
- package/dist/{types-DNK2BgIf.d.mts → types-CgDCUfo8.d.mts} +1 -1
- package/dist/{types-DoWIuzfj.d.ts → types-R5N4ET6x.d.ts} +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -109,6 +109,15 @@ interface GatewayConfig {
|
|
|
109
109
|
* extra request is undesirable.
|
|
110
110
|
*/
|
|
111
111
|
disableInitChecks?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Audit F-A6-33: when true, the init self-test runs synchronously on the
|
|
114
|
+
* first verify() call and THROWS on misconfig (apiBaseUrl returning HTML,
|
|
115
|
+
* unreachable, etc.) instead of warning + continuing. Recommended for
|
|
116
|
+
* production deploys where you want a fast-fail startup signal rather
|
|
117
|
+
* than silent verify-access call failures. Default false for backward
|
|
118
|
+
* compatibility.
|
|
119
|
+
*/
|
|
120
|
+
strictInit?: boolean;
|
|
112
121
|
/**
|
|
113
122
|
* v2.3.8: emit `X-Astra-Gateway-Mode: unenforced` (with
|
|
114
123
|
* `X-Astra-Gateway-Reason: no-policy | no-match`) on responses where the
|
|
@@ -125,7 +134,9 @@ interface GatewayConfig {
|
|
|
125
134
|
/**
|
|
126
135
|
* v2.3.8: dashboard origin used to construct configuration links in
|
|
127
136
|
* boot-time warnings (e.g. when no per-route policy is configured).
|
|
128
|
-
* Defaults to `https://app.astrasync.ai
|
|
137
|
+
* Defaults to `https://astrasync.ai/dashboard` (the `app.astrasync.ai`
|
|
138
|
+
* subdomain referenced in older docs does not currently resolve —
|
|
139
|
+
* audit F-PROBE-01).
|
|
129
140
|
*/
|
|
130
141
|
dashboardUrl?: string;
|
|
131
142
|
/**
|
|
@@ -503,6 +514,36 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
503
514
|
* lengthen it to reduce network chatter.
|
|
504
515
|
*/
|
|
505
516
|
routesRefreshMs?: number;
|
|
517
|
+
/**
|
|
518
|
+
* Posture when the middleware itself throws an internal error (header
|
|
519
|
+
* parsing failure, `fetchRoutes` network error, malformed proxy state,
|
|
520
|
+
* etc.). Default `'open'` for backward compatibility in SDK 2.4.13 —
|
|
521
|
+
* legitimate traffic continues to pass through during platform outages.
|
|
522
|
+
*
|
|
523
|
+
* In shadow mode (default), the middleware ALWAYS logs a
|
|
524
|
+
* `[SHADOW] would-have-denied` line on throws including correlationId so
|
|
525
|
+
* merchants can grep their own logs for impact analysis. SDK 2.4.x reads
|
|
526
|
+
* the shadow logs across the 1-week observation window; the default
|
|
527
|
+
* flips to `'closed'` in a follow-up release once <0.1% of throws appear
|
|
528
|
+
* to be legitimate-traffic regressions.
|
|
529
|
+
*
|
|
530
|
+
* Small-value demo merchants can keep `'open'` indefinitely after the
|
|
531
|
+
* default flip by setting this explicitly (audit F-A1-06).
|
|
532
|
+
*/
|
|
533
|
+
failOnError?: 'open' | 'closed';
|
|
534
|
+
/**
|
|
535
|
+
* When true, route-pattern matching is case-insensitive (audit F-A6-31,
|
|
536
|
+
* round-18.6.5 Finding #1 from astrasync.shop). Default false in SDK
|
|
537
|
+
* 2.4.13 for backward compatibility; shadow logs record divergences so
|
|
538
|
+
* merchants can preview impact before flipping. Follow-up release makes
|
|
539
|
+
* case-insensitive the default after 1-week observation confirms <5
|
|
540
|
+
* merchants with divergence-events.
|
|
541
|
+
*
|
|
542
|
+
* Recommended: set to true if your Express install uses the default
|
|
543
|
+
* (case-insensitive) routing AND your policy entries don't deliberately
|
|
544
|
+
* use case distinctions.
|
|
545
|
+
*/
|
|
546
|
+
caseInsensitiveRouteMatch?: boolean;
|
|
506
547
|
}
|
|
507
548
|
/**
|
|
508
549
|
* Next.js middleware options.
|
|
@@ -109,6 +109,15 @@ interface GatewayConfig {
|
|
|
109
109
|
* extra request is undesirable.
|
|
110
110
|
*/
|
|
111
111
|
disableInitChecks?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Audit F-A6-33: when true, the init self-test runs synchronously on the
|
|
114
|
+
* first verify() call and THROWS on misconfig (apiBaseUrl returning HTML,
|
|
115
|
+
* unreachable, etc.) instead of warning + continuing. Recommended for
|
|
116
|
+
* production deploys where you want a fast-fail startup signal rather
|
|
117
|
+
* than silent verify-access call failures. Default false for backward
|
|
118
|
+
* compatibility.
|
|
119
|
+
*/
|
|
120
|
+
strictInit?: boolean;
|
|
112
121
|
/**
|
|
113
122
|
* v2.3.8: emit `X-Astra-Gateway-Mode: unenforced` (with
|
|
114
123
|
* `X-Astra-Gateway-Reason: no-policy | no-match`) on responses where the
|
|
@@ -125,7 +134,9 @@ interface GatewayConfig {
|
|
|
125
134
|
/**
|
|
126
135
|
* v2.3.8: dashboard origin used to construct configuration links in
|
|
127
136
|
* boot-time warnings (e.g. when no per-route policy is configured).
|
|
128
|
-
* Defaults to `https://app.astrasync.ai
|
|
137
|
+
* Defaults to `https://astrasync.ai/dashboard` (the `app.astrasync.ai`
|
|
138
|
+
* subdomain referenced in older docs does not currently resolve —
|
|
139
|
+
* audit F-PROBE-01).
|
|
129
140
|
*/
|
|
130
141
|
dashboardUrl?: string;
|
|
131
142
|
/**
|
|
@@ -503,6 +514,36 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
503
514
|
* lengthen it to reduce network chatter.
|
|
504
515
|
*/
|
|
505
516
|
routesRefreshMs?: number;
|
|
517
|
+
/**
|
|
518
|
+
* Posture when the middleware itself throws an internal error (header
|
|
519
|
+
* parsing failure, `fetchRoutes` network error, malformed proxy state,
|
|
520
|
+
* etc.). Default `'open'` for backward compatibility in SDK 2.4.13 —
|
|
521
|
+
* legitimate traffic continues to pass through during platform outages.
|
|
522
|
+
*
|
|
523
|
+
* In shadow mode (default), the middleware ALWAYS logs a
|
|
524
|
+
* `[SHADOW] would-have-denied` line on throws including correlationId so
|
|
525
|
+
* merchants can grep their own logs for impact analysis. SDK 2.4.x reads
|
|
526
|
+
* the shadow logs across the 1-week observation window; the default
|
|
527
|
+
* flips to `'closed'` in a follow-up release once <0.1% of throws appear
|
|
528
|
+
* to be legitimate-traffic regressions.
|
|
529
|
+
*
|
|
530
|
+
* Small-value demo merchants can keep `'open'` indefinitely after the
|
|
531
|
+
* default flip by setting this explicitly (audit F-A1-06).
|
|
532
|
+
*/
|
|
533
|
+
failOnError?: 'open' | 'closed';
|
|
534
|
+
/**
|
|
535
|
+
* When true, route-pattern matching is case-insensitive (audit F-A6-31,
|
|
536
|
+
* round-18.6.5 Finding #1 from astrasync.shop). Default false in SDK
|
|
537
|
+
* 2.4.13 for backward compatibility; shadow logs record divergences so
|
|
538
|
+
* merchants can preview impact before flipping. Follow-up release makes
|
|
539
|
+
* case-insensitive the default after 1-week observation confirms <5
|
|
540
|
+
* merchants with divergence-events.
|
|
541
|
+
*
|
|
542
|
+
* Recommended: set to true if your Express install uses the default
|
|
543
|
+
* (case-insensitive) routing AND your policy entries don't deliberately
|
|
544
|
+
* use case distinctions.
|
|
545
|
+
*/
|
|
546
|
+
caseInsensitiveRouteMatch?: boolean;
|
|
506
547
|
}
|
|
507
548
|
/**
|
|
508
549
|
* Next.js middleware options.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccessLevel, c as CounterpartyType, T as TokenGuidance } from './types-
|
|
1
|
+
import { A as AccessLevel, c as CounterpartyType, T as TokenGuidance } from './types-B3USs-Kx.mjs';
|
|
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, c as CounterpartyType, T as TokenGuidance } from './types-
|
|
1
|
+
import { A as AccessLevel, c as CounterpartyType, T as TokenGuidance } from './types-B3USs-Kx.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 { C as CommerceShieldProps, i as VerificationResult, a as AgentCredentials, e as GuidanceInfo, h as TrustLevel } from '../types-
|
|
1
|
+
import { C as CommerceShieldProps, i as VerificationResult, a as AgentCredentials, e as GuidanceInfo, h as TrustLevel } from '../types-B3USs-Kx.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Commerce Shield Component
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CommerceShieldProps, i as VerificationResult, a as AgentCredentials, e as GuidanceInfo, h as TrustLevel } from '../types-
|
|
1
|
+
import { C as CommerceShieldProps, i as VerificationResult, a as AgentCredentials, e as GuidanceInfo, h as TrustLevel } from '../types-B3USs-Kx.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Commerce Shield Component
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrasyncai/verification-gateway",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.14",
|
|
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",
|