-
Notifications
You must be signed in to change notification settings - Fork 31
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
d5ed817
commit f100cae
Showing
12 changed files
with
20 additions
and
786 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 1417 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c49562d088783434a838d9fb04f3a71514aaf0ee9096dabf65e3ae0825b8756.yml | ||
configured_endpoints: 1411 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d8a11058191753bacee9c070940904a1318942d364a2420ad1e253bd450b2bcf.yml |
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 |
---|---|---|
@@ -1,97 +1,5 @@ | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import { SinglePage } from '../../pagination'; | ||
|
||
export class Phishguard extends APIResource { | ||
/** | ||
* Get PhishGuard reports | ||
*/ | ||
list( | ||
params: PhishguardListParams, | ||
options?: Core.RequestOptions, | ||
): Core.PagePromise<PhishguardListResponsesSinglePage, PhishguardListResponse> { | ||
const { account_id, ...query } = params; | ||
return this._client.getAPIList( | ||
`/accounts/${account_id}/email-security/phishguard/reports`, | ||
PhishguardListResponsesSinglePage, | ||
{ query, ...options }, | ||
); | ||
} | ||
} | ||
|
||
export class PhishguardListResponsesSinglePage extends SinglePage<PhishguardListResponse> {} | ||
|
||
export interface PhishguardListResponse { | ||
id: number; | ||
|
||
content: string; | ||
|
||
disposition: | ||
| 'MALICIOUS' | ||
| 'MALICIOUS-BEC' | ||
| 'SUSPICIOUS' | ||
| 'SPOOF' | ||
| 'SPAM' | ||
| 'BULK' | ||
| 'ENCRYPTED' | ||
| 'EXTERNAL' | ||
| 'UNKNOWN' | ||
| 'NONE'; | ||
|
||
fields: PhishguardListResponse.Fields; | ||
|
||
priority: string; | ||
|
||
title: string; | ||
|
||
ts: string; | ||
|
||
tags?: Array<PhishguardListResponse.Tag> | null; | ||
} | ||
|
||
export namespace PhishguardListResponse { | ||
export interface Fields { | ||
postfix_id: string; | ||
|
||
to: Array<string>; | ||
|
||
ts: string; | ||
|
||
from?: string | null; | ||
} | ||
|
||
export interface Tag { | ||
category: string; | ||
|
||
value: string; | ||
} | ||
} | ||
|
||
export interface PhishguardListParams { | ||
/** | ||
* Path param: Account Identifier | ||
*/ | ||
account_id: string; | ||
|
||
/** | ||
* Query param: | ||
*/ | ||
from_date: string; | ||
|
||
/** | ||
* Query param: | ||
*/ | ||
to_date: string; | ||
} | ||
|
||
Phishguard.PhishguardListResponsesSinglePage = PhishguardListResponsesSinglePage; | ||
|
||
export declare namespace Phishguard { | ||
export { | ||
type PhishguardListResponse as PhishguardListResponse, | ||
PhishguardListResponsesSinglePage as PhishguardListResponsesSinglePage, | ||
type PhishguardListParams as PhishguardListParams, | ||
}; | ||
} | ||
export class Phishguard extends APIResource {} |
Oops, something went wrong.