-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
365fd1f
commit a71e2a8
Showing
13 changed files
with
97 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export enum RestMethod { | ||
GET = "GET", | ||
HEAD = "HEAD", | ||
POST = "POST", | ||
PUT = "PUT", | ||
PATCH = "PATCH", | ||
DELETE = "DELETE", | ||
CONNECT = "CONNECT", | ||
OPTIONS = "OPTIONS", | ||
TRACE = "TRACE", | ||
} | ||
|
||
export enum DataClass { | ||
EMAIL = "Email", | ||
CREDIT_CARD = "Credit Card Number", | ||
SSN = "Social Security Number", | ||
PHONE_NUMBER = "Phone Number", | ||
IP_ADDRESS = "IP Address", | ||
COORDINATE = "Geographic Coordinates", | ||
VIN = "Vehicle Identification Number", | ||
ADDRESS = "Address", | ||
DOB = "Date of Birth", | ||
DL_NUMBER = "Driver License Number", | ||
} | ||
|
||
export enum RiskScore { | ||
LOW = "low", | ||
MEDIUM = "medium", | ||
HIGH = "high", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { RestMethod, RiskScore } from "./enums"; | ||
|
||
export interface Meta { | ||
incoming: boolean; | ||
source: string; | ||
sourcePort: string; | ||
destination: string; | ||
destinationPort: string; | ||
} | ||
|
||
export interface PairObject { | ||
name: string; | ||
value: string; | ||
} | ||
|
||
export interface Url { | ||
host: string; | ||
path: string; | ||
parameters: PairObject[]; | ||
} | ||
|
||
export interface Request { | ||
url: Url; | ||
headers: PairObject[]; | ||
body: string; | ||
method: RestMethod; | ||
} | ||
|
||
export interface Response { | ||
status: number; | ||
headers: PairObject[]; | ||
body: string; | ||
} | ||
|
||
export interface TraceParams { | ||
request: Request; | ||
response: Response; | ||
meta: Meta; | ||
} | ||
|
||
export interface GetEndpointParams { | ||
host?: string; | ||
riskScore?: RiskScore; | ||
offset?: number; | ||
limit?: number; | ||
} | ||
|
||
export type JSONValue = | ||
| string | ||
| number | ||
| boolean | ||
| { [x: string]: JSONValue } | ||
| Array<JSONValue>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters