Skip to content

Commit 601f67d

Browse files
committed
comments
1 parent 064d031 commit 601f67d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/types/alerts.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
export namespace Alerts {
2-
export interface AlertConfig {
3-
slack?: SlackAlert;
4-
email?: EmailAlert;
5-
url?: WebhookAlert;
2+
export interface Config {
3+
slack?: Slack;
4+
email?: Email;
5+
url?: Webhook;
66
}
77

8-
export interface SlackAlert {
8+
export interface Slack {
99
target: string;
1010
}
1111

12-
export interface EmailAlert {
12+
export interface Email {
1313
address: string;
1414
}
1515

16-
export interface WebhookAlert {
16+
export interface Webhook {
1717
address: string;
1818
}
1919
}

src/types/scanFile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export namespace ScanFile {
99
export interface ScanPolicy {
1010
detectionRuleUUIDs?: string[]
1111
detectionRules?: Detector.Rule[]
12-
webhookURL: string
13-
alertConfig?: Alerts.AlertConfig
12+
webhookURL?: string // Deprecated, use alertConfig instead
13+
alertConfig?: Alerts.Config
1414
}
1515

1616
export interface InitializeResponse {

src/types/scanText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export namespace ScanText {
66
detectionRules?: Detector.Rule[]
77
contextBytes?: number
88
defaultRedactionConfig?: Detector.RedactionConfig
9-
alertConfig?: Alerts.AlertConfig
9+
alertConfig?: Alerts.Config
1010
}
1111

1212
export interface Response {

0 commit comments

Comments
 (0)