g-ten-security-sdk 1.0.1 → 1.0.2
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 +31 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,31 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
A clean, developer-friendly TypeScript SDK for the **G-TEN Fraud Intelligence Platform**.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## What is this SDK?
|
|
6
|
+
The G-TEN Security SDK provides a seamless way for frontend applications, backend services, and third-party integrations to communicate with the G-TEN Core API.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Instead of manually writing HTTP requests and handling complex authentication flows, this SDK gives developers a fully typed, object-oriented interface to interact with G-TEN's advanced anti-money laundering (AML) and fraud detection systems.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
## What is it used for?
|
|
11
|
+
This SDK is primarily used by developers building tools for Financial Intelligence Units (FIUs) or banking compliance teams. You can use it to:
|
|
12
|
+
|
|
13
|
+
1. **Perform Graph-Based Fraud Analytics:** Detect complex money laundering patterns like *Layering* (rapid multi-hop transfers), *Smurfing* (structuring deposits), and *Round-Tripping* directly from Neo4j data.
|
|
14
|
+
2. **Access AI-Powered Investigation Narratives:** Query the G-TEN Intelligence Chatbot or generate automated, plain-English investigator briefings for suspicious accounts using Gemini and Gemma 4 AI models.
|
|
15
|
+
3. **Manage Alert Workflows:** Retrieve high-risk alerts, update their statuses, and assign them to investigators.
|
|
16
|
+
4. **Interact with Core Banking Data:** Fetch branch information, account details, and live transaction streams securely.
|
|
12
17
|
|
|
13
18
|
## Features
|
|
14
19
|
|
|
15
|
-
- **Fraud Analytics:** Access Neo4j graph algorithms to detect Layering, Smurfing, and Round-Trip patterns.
|
|
16
|
-
- **Narrative Explainability:** Use AI to generate human-readable investigation briefings (powered by Gemini & Gemma 4 31B).
|
|
17
20
|
- **Type-Safe:** Fully typed with TypeScript interfaces automatically generated from the FastAPI backend.
|
|
18
|
-
- **Easy Authentication:** Built-in interceptors to
|
|
21
|
+
- **Easy Authentication:** Built-in interceptors to automatically attach JWT tokens and handle session states.
|
|
22
|
+
- **Modular APIs:** Divided into logical clients (`FraudApi`, `ChatApi`, `AuthApi`, `DataApi`) so you only import what you need.
|
|
19
23
|
|
|
20
|
-
##
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install g-ten-security-sdk
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Quick Start Example
|
|
21
31
|
|
|
22
32
|
```typescript
|
|
23
|
-
import { FraudApi } from 'g-ten-security-sdk';
|
|
33
|
+
import { FraudApi, ChatApi } from 'g-ten-security-sdk';
|
|
24
34
|
|
|
25
35
|
const fraudClient = new FraudApi();
|
|
36
|
+
const chatClient = new ChatApi();
|
|
37
|
+
|
|
38
|
+
// 1. Fetch recent critical alerts
|
|
39
|
+
const alerts = await fraudClient.getAlerts({ limit: 10 });
|
|
40
|
+
|
|
41
|
+
// 2. Ask the AI Copilot to analyze a specific account's graph structure
|
|
42
|
+
const analysis = await chatClient.sendChatMessage({
|
|
43
|
+
message: "Find all the accounts linked to smurfing that interacted with ACC_00025",
|
|
44
|
+
history: []
|
|
45
|
+
});
|
|
26
46
|
|
|
27
|
-
|
|
28
|
-
const alerts = await fraudClient.getAlerts();
|
|
29
|
-
console.log(alerts);
|
|
47
|
+
console.log(analysis.response);
|
|
30
48
|
```
|
|
31
49
|
|
|
32
50
|
## License
|
package/package.json
CHANGED