@belticlabs/agent-risk-sdk 0.1.1 → 0.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/dist/adapter-BEpzr2R3.d.ts +29 -0
- package/dist/ai/index.d.ts +5 -5
- package/dist/ai/index.js +48 -36
- package/dist/chunk-4MG6VNAU.js +276 -0
- package/dist/chunk-FAQ442YH.js +24 -0
- package/dist/{chunk-U5Z5Z2BQ.js → chunk-LM4NIYE5.js} +26 -20
- package/dist/chunk-NJVO2WIV.js +17 -0
- package/dist/{chunk-W2OY7QXV.js → chunk-OKC6VMFH.js} +15 -26
- package/dist/{chunk-SFGM7KOG.js → chunk-X3W2Z5GC.js} +3 -0
- package/dist/index.d.ts +19 -9
- package/dist/index.js +354 -161
- package/dist/mcp/index.d.ts +3 -5
- package/dist/mcp/index.js +42 -34
- package/dist/middleware-9gI0ou2i.d.ts +15 -0
- package/dist/protocol/index.d.ts +2 -3
- package/dist/seller/anti-fraud-gateway.d.ts +11 -4
- package/dist/seller/anti-fraud-gateway.js +13 -14
- package/dist/session-DsBWEP8d.d.ts +485 -0
- package/dist/{index-Bjs3BPPU.d.ts → verdict-6vCyoAHE.d.ts} +25 -1
- package/dist/x402/express.d.ts +4 -6
- package/dist/x402/express.js +8 -7
- package/dist/x402/hono.d.ts +4 -6
- package/dist/x402/hono.js +8 -7
- package/dist/x402/index.d.ts +80 -19
- package/dist/x402/index.js +109 -35
- package/package.json +1 -1
- package/dist/chunk-5TWO73OD.js +0 -35
- package/dist/chunk-VM7MK43J.js +0 -13
- package/dist/client-NxpD_384.d.ts +0 -64
- package/dist/middleware-D-ejQIoE.d.ts +0 -40
- package/dist/session-B2mfurae.d.ts +0 -196
- package/dist/verdict-BAahb5po.d.ts +0 -26
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { D as Decision } from './index-Bjs3BPPU.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The verdict as a value (Fraud Engine RFC › API: ALLOW | DENY | REVIEW).
|
|
5
|
-
* Layers combine by severity (GAP-45); a synchronous seller hook turns
|
|
6
|
-
* REVIEW into a stop or a pass according to its `onReview` (GAP-52). Both
|
|
7
|
-
* halves of the SDK and the engine share this one rule.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
type OnReview = 'abort' | 'allow';
|
|
11
|
-
declare class Verdict {
|
|
12
|
-
readonly value: Decision;
|
|
13
|
-
private constructor();
|
|
14
|
-
static readonly ALLOW: Verdict;
|
|
15
|
-
static readonly REVIEW: Verdict;
|
|
16
|
-
static readonly DENY: Verdict;
|
|
17
|
-
static of(value: Decision): Verdict;
|
|
18
|
-
/** The more severe of the two. */
|
|
19
|
-
atLeast(other: Verdict | Decision): Verdict;
|
|
20
|
-
/** Whether a synchronous gate must stop the call (GAP-52). */
|
|
21
|
-
blocks(onReview: OnReview): boolean;
|
|
22
|
-
/** What the gate effectively did: DENY when it blocked, else the verdict itself. */
|
|
23
|
-
effective(onReview: OnReview): Decision;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { type OnReview as O, Verdict as V };
|