@astrasyncai/verification-gateway 3.2.1 → 3.4.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/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 +10 -5
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +10 -5
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.d.ts +1 -1
- package/dist/adapters/mcp.js +10 -5
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +10 -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 +10 -5
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +10 -5
- 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 +7 -3
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +7 -3
- 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/browser/background.js +2814 -2343
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +2814 -2343
- 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/cli/index.js +2813 -2346
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +2813 -2346
- package/dist/cli/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 +2815 -2344
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +2817 -2346
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/{express-CeoSdOAZ.d.mts → express-CeFvNWDD.d.mts} +1 -1
- package/dist/{express-BowlMHQF.d.ts → express-RIh05wW2.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 +2814 -2343
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +2816 -2345
- 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-DBmlycVm.d.ts → index-BYu1FKMy.d.ts} +1 -1
- package/dist/{index-B51W8gn8.d.mts → index-Bw4FeHMY.d.mts} +1 -1
- package/dist/{index-DzXXBuLm.d.ts → index-C-K0WCrk.d.ts} +1 -1
- package/dist/{index-DtGziFEm.d.mts → index-DgVBEiwI.d.mts} +1 -1
- package/dist/index.d.mts +58 -9
- package/dist/index.d.ts +58 -9
- package/dist/index.js +78 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -20
- 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/{nextjs-V_K0qlAQ.d.ts → nextjs--xR9zbSJ.d.ts} +1 -1
- package/dist/{nextjs-BW1rzr1I.d.mts → nextjs-xciaMpsZ.d.mts} +1 -1
- package/dist/{sdk-e5jg7sqW.d.mts → sdk-CJYCLMI0.d.mts} +1 -1
- package/dist/{sdk-ZYgI7G9f.d.ts → sdk-FP7xT9F8.d.ts} +1 -1
- package/dist/transport/index.d.mts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-BNiLZY0i.d.mts → types-Cj92yKeA.d.mts} +1 -1
- package/dist/{types-rFh4VMH4.d.mts → types-Cwrvo30g.d.mts} +30 -1
- package/dist/{types-rFh4VMH4.d.ts → types-Cwrvo30g.d.ts} +30 -1
- package/dist/{types-DJi-u3fz.d.ts → types-DOeL-dIw.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AstraSyncGateway } from '../gateway/gateway.mjs';
|
|
2
|
-
import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-
|
|
3
|
-
import '../types-
|
|
2
|
+
import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-Cj92yKeA.mjs';
|
|
3
|
+
import '../types-Cwrvo30g.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PlatformAdapter Interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AstraSyncGateway } from '../gateway/gateway.js';
|
|
2
|
-
import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-
|
|
3
|
-
import '../types-
|
|
2
|
+
import { A as AgentAction, I as InterceptResult, P as PDLSSContext, V as VerificationDecision } from '../types-DOeL-dIw.js';
|
|
3
|
+
import '../types-Cwrvo30g.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PlatformAdapter Interface
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
import '../types-
|
|
3
|
-
export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-
|
|
2
|
+
import '../types-Cwrvo30g.mjs';
|
|
3
|
+
export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-CeFvNWDD.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
import '../types-
|
|
3
|
-
export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-
|
|
2
|
+
import '../types-Cwrvo30g.js';
|
|
3
|
+
export { c as createMiddleware, a as extractAstraSyncCredentials } from '../express-RIh05wW2.js';
|
package/dist/adapters/express.js
CHANGED
|
@@ -34,7 +34,7 @@ function getTrustLevel(score) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// src/version.ts
|
|
37
|
-
var SDK_VERSION = "3.
|
|
37
|
+
var SDK_VERSION = "3.3.0";
|
|
38
38
|
|
|
39
39
|
// src/well-known.ts
|
|
40
40
|
var CACHE_TTL_MS = 60 * 60 * 1e3;
|
|
@@ -446,7 +446,9 @@ async function verify(config, request) {
|
|
|
446
446
|
// linking key (the sessionId-equivalent for anonymous callers).
|
|
447
447
|
correlationId: apiResponse.correlationId,
|
|
448
448
|
recommendation: apiResponse.recommendation,
|
|
449
|
-
recommendationReasons: apiResponse.recommendationReasons
|
|
449
|
+
recommendationReasons: apiResponse.recommendationReasons,
|
|
450
|
+
stepUpApproval: apiResponse.stepUpApproval,
|
|
451
|
+
settlement: apiResponse.settlement
|
|
450
452
|
};
|
|
451
453
|
return result2;
|
|
452
454
|
}
|
|
@@ -498,7 +500,9 @@ async function verify(config, request) {
|
|
|
498
500
|
tokenGuidance: apiResponse.tokenGuidance,
|
|
499
501
|
recommendation: apiResponse.recommendation,
|
|
500
502
|
recommendationReasons: apiResponse.recommendationReasons,
|
|
501
|
-
warningHeader: apiResponse.warningHeader
|
|
503
|
+
warningHeader: apiResponse.warningHeader,
|
|
504
|
+
stepUpApproval: apiResponse.stepUpApproval,
|
|
505
|
+
settlement: apiResponse.settlement
|
|
502
506
|
};
|
|
503
507
|
if (result.recommendation === "deny") {
|
|
504
508
|
result.policyAllowed = false;
|
|
@@ -692,7 +696,7 @@ function resolveHttpPdlss(input) {
|
|
|
692
696
|
}
|
|
693
697
|
|
|
694
698
|
// src/adapters/approval-gate.ts
|
|
695
|
-
var APPROVAL_REASON = "Transaction is above the autonomous limit and requires human approval
|
|
699
|
+
var APPROVAL_REASON = "Transaction is above the autonomous limit and requires human approval. The agent owner can approve or deny this transaction in the AstraSync dashboard.";
|
|
696
700
|
function requiresHumanApproval(result) {
|
|
697
701
|
return result.requiresStepUp === true || result.requiresApproval === true;
|
|
698
702
|
}
|
|
@@ -831,7 +835,8 @@ function defaultOnDenied(result, _req, res) {
|
|
|
831
835
|
guidance: result.guidance,
|
|
832
836
|
// Round-10: aggregated per-dimension detail + correlation handle.
|
|
833
837
|
failures: result.failures,
|
|
834
|
-
correlationId: result.correlationId
|
|
838
|
+
correlationId: result.correlationId,
|
|
839
|
+
stepUpApproval: result.stepUpApproval
|
|
835
840
|
}
|
|
836
841
|
});
|
|
837
842
|
}
|