File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11export 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}
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments