g-ten-security-sdk 1.0.0 → 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.
Files changed (2) hide show
  1. package/README.md +51 -0
  2. package/package.json +10 -3
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # G-TEN Security SDK
2
+
3
+ A clean, developer-friendly TypeScript SDK for the **G-TEN Fraud Intelligence Platform**.
4
+
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.
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.
9
+
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.
17
+
18
+ ## Features
19
+
20
+ - **Type-Safe:** Fully typed with TypeScript interfaces automatically generated from the FastAPI backend.
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.
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ npm install g-ten-security-sdk
28
+ ```
29
+
30
+ ## Quick Start Example
31
+
32
+ ```typescript
33
+ import { FraudApi, ChatApi } from 'g-ten-security-sdk';
34
+
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
+ });
46
+
47
+ console.log(analysis.response);
48
+ ```
49
+
50
+ ## License
51
+ UNLICENSED
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "g-ten-security-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "G-TEN Fraud Intelligence SDK — A clean, developer-friendly TypeScript SDK for the G-TEN platform.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "files": ["dist"],
7
+ "files": [
8
+ "dist"
9
+ ],
8
10
  "scripts": {
9
11
  "build": "tsc",
10
12
  "build:watch": "tsc --watch",
11
13
  "clean": "rm -rf dist"
12
14
  },
13
- "keywords": ["gten", "fraud", "aml", "sdk"],
15
+ "keywords": [
16
+ "gten",
17
+ "fraud",
18
+ "aml",
19
+ "sdk"
20
+ ],
14
21
  "license": "UNLICENSED",
15
22
  "devDependencies": {
16
23
  "typescript": "^5.4.0"