@deepbounty/sdk 1.1.4 → 1.1.5

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/events.d.ts CHANGED
@@ -1,10 +1,14 @@
1
- import { HttpTraffic } from "./types/burpsuite";
1
+ import { TrafficContext, HttpTraffic } from "./types/burpsuite";
2
2
  /**
3
3
  * Predefined core events emitted by the server
4
4
  * Modules can also emit custom events for inter-module communication
5
5
  */
6
6
  export interface CoreEvents {
7
7
  "http:traffic": HttpTraffic;
8
+ "http:js": {
9
+ context: TrafficContext;
10
+ js: string;
11
+ };
8
12
  }
9
13
  /**
10
14
  * Event handler function signature
@@ -1,15 +1,17 @@
1
1
  /**
2
2
  * HTTP traffic data from Burp Suite
3
3
  */
4
- export interface HttpTraffic {
4
+ export interface TrafficContext {
5
5
  url: string;
6
6
  method: string;
7
7
  statusCode: number;
8
+ mimeType: string;
9
+ }
10
+ export interface TrafficContent {
8
11
  requestHeaders: Record<string, string>;
9
12
  responseHeaders: Record<string, string>;
10
13
  requestBody: string;
11
14
  responseBody: string;
12
- mimeType: string;
13
- timestamp: Date;
14
- targetId?: number;
15
+ }
16
+ export interface HttpTraffic extends TrafficContext, TrafficContent {
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepbounty/sdk",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "DeepBounty SDK for module development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",