@astrasyncai/verification-gateway 3.3.0 → 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 +9 -4
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +9 -4
- 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 +9 -4
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +9 -4
- 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 +9 -4
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +9 -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/adapters/sdk.js +6 -2
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +6 -2
- 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 +2813 -2342
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +2813 -2342
- 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 +2814 -2343
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +2816 -2345
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/{express-DAOTESQo.d.mts → express-CeFvNWDD.d.mts} +1 -1
- package/dist/{express-Lb8-Ybio.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 +2813 -2342
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +2815 -2344
- 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-DFwfHOGj.d.ts → index-BYu1FKMy.d.ts} +1 -1
- package/dist/{index-kxLJ873R.d.mts → index-Bw4FeHMY.d.mts} +1 -1
- package/dist/{index-E3fAidVt.d.ts → index-C-K0WCrk.d.ts} +1 -1
- package/dist/{index-BLeiWFLu.d.mts → index-DgVBEiwI.d.mts} +1 -1
- package/dist/index.d.mts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +16 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -8
- 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-BXK0nD73.d.ts → nextjs--xR9zbSJ.d.ts} +1 -1
- package/dist/{nextjs-CFQ_KDFf.d.mts → nextjs-xciaMpsZ.d.mts} +1 -1
- package/dist/{sdk-D1MuiiNz.d.mts → sdk-CJYCLMI0.d.mts} +1 -1
- package/dist/{sdk-C7qAfpGB.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-ClvUqrEm.d.mts → types-Cj92yKeA.d.mts} +1 -1
- package/dist/{types-B_wnd7ZX.d.mts → types-Cwrvo30g.d.mts} +30 -1
- package/dist/{types-B_wnd7ZX.d.ts → types-Cwrvo30g.d.ts} +30 -1
- package/dist/{types-B6uD4jAI.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
package/dist/index.mjs
CHANGED
|
@@ -544,7 +544,9 @@ async function verify(config, request) {
|
|
|
544
544
|
// linking key (the sessionId-equivalent for anonymous callers).
|
|
545
545
|
correlationId: apiResponse.correlationId,
|
|
546
546
|
recommendation: apiResponse.recommendation,
|
|
547
|
-
recommendationReasons: apiResponse.recommendationReasons
|
|
547
|
+
recommendationReasons: apiResponse.recommendationReasons,
|
|
548
|
+
stepUpApproval: apiResponse.stepUpApproval,
|
|
549
|
+
settlement: apiResponse.settlement
|
|
548
550
|
};
|
|
549
551
|
return result2;
|
|
550
552
|
}
|
|
@@ -596,7 +598,9 @@ async function verify(config, request) {
|
|
|
596
598
|
tokenGuidance: apiResponse.tokenGuidance,
|
|
597
599
|
recommendation: apiResponse.recommendation,
|
|
598
600
|
recommendationReasons: apiResponse.recommendationReasons,
|
|
599
|
-
warningHeader: apiResponse.warningHeader
|
|
601
|
+
warningHeader: apiResponse.warningHeader,
|
|
602
|
+
stepUpApproval: apiResponse.stepUpApproval,
|
|
603
|
+
settlement: apiResponse.settlement
|
|
600
604
|
};
|
|
601
605
|
if (result.recommendation === "deny") {
|
|
602
606
|
result.policyAllowed = false;
|
|
@@ -677,7 +681,7 @@ async function quickVerify(config, credentials) {
|
|
|
677
681
|
}
|
|
678
682
|
|
|
679
683
|
// src/adapters/approval-gate.ts
|
|
680
|
-
var APPROVAL_REASON = "Transaction is above the autonomous limit and requires human approval
|
|
684
|
+
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.";
|
|
681
685
|
function requiresHumanApproval(result) {
|
|
682
686
|
return result.requiresStepUp === true || result.requiresApproval === true;
|
|
683
687
|
}
|
|
@@ -733,7 +737,8 @@ async function authorizeSettlement(config, req) {
|
|
|
733
737
|
recommendation,
|
|
734
738
|
reason: authorized ? void 0 : result.denialReasons?.[0] ?? (requiresHumanApproval(result) ? "Transaction is above the autonomous limit and requires human approval; settlement cannot be authorized automatically." : "Settlement not authorized by the agent's PDLSS limits."),
|
|
735
739
|
failures: result.failures,
|
|
736
|
-
correlationId: result.correlationId
|
|
740
|
+
correlationId: result.correlationId,
|
|
741
|
+
stepUpApproval: requiresHumanApproval(result) ? result.stepUpApproval : void 0
|
|
737
742
|
};
|
|
738
743
|
}
|
|
739
744
|
|
|
@@ -1020,7 +1025,8 @@ function defaultOnDenied(result, _req, res) {
|
|
|
1020
1025
|
guidance: result.guidance,
|
|
1021
1026
|
// Round-10: aggregated per-dimension detail + correlation handle.
|
|
1022
1027
|
failures: result.failures,
|
|
1023
|
-
correlationId: result.correlationId
|
|
1028
|
+
correlationId: result.correlationId,
|
|
1029
|
+
stepUpApproval: result.stepUpApproval
|
|
1024
1030
|
}
|
|
1025
1031
|
});
|
|
1026
1032
|
}
|
|
@@ -1670,7 +1676,8 @@ function createMiddleware2(options) {
|
|
|
1670
1676
|
code: !result.identityVerified ? "UNAUTHORIZED" : "POLICY_DENIED",
|
|
1671
1677
|
message: result.denialReasons?.[0] || "Access denied",
|
|
1672
1678
|
guidance: result.guidance,
|
|
1673
|
-
failures: result.failures
|
|
1679
|
+
failures: result.failures,
|
|
1680
|
+
stepUpApproval: result.stepUpApproval
|
|
1674
1681
|
}
|
|
1675
1682
|
},
|
|
1676
1683
|
{ status: !result.identityVerified ? 401 : 403 }
|
|
@@ -4573,7 +4580,8 @@ function defaultMcpDenied(result, req, res) {
|
|
|
4573
4580
|
guidance: result.guidance,
|
|
4574
4581
|
// Round-10: aggregated per-dimension detail + correlation handle.
|
|
4575
4582
|
failures: result.failures,
|
|
4576
|
-
correlationId: result.correlationId
|
|
4583
|
+
correlationId: result.correlationId,
|
|
4584
|
+
stepUpApproval: result.stepUpApproval
|
|
4577
4585
|
}
|
|
4578
4586
|
}
|
|
4579
4587
|
});
|
|
@@ -5501,7 +5509,7 @@ async function recordDecision2(config, params) {
|
|
|
5501
5509
|
}
|
|
5502
5510
|
|
|
5503
5511
|
// src/index.ts
|
|
5504
|
-
var VERSION = "
|
|
5512
|
+
var VERSION = "3.4.0";
|
|
5505
5513
|
export {
|
|
5506
5514
|
ACCESS_LEVEL_DESCRIPTIONS,
|
|
5507
5515
|
ACCESS_LEVEL_HIERARCHY,
|