🌐 AI搜索 & 代理 主页
Skip to content

Commit c5ec717

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): api update (#2127)
1 parent 93b93d8 commit c5ec717

File tree

6 files changed

+30
-33
lines changed

6 files changed

+30
-33
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1417
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-238bdc2301e165198e92ece05a86c3b80aa6653c5cd7334b3dc59fd9d687acce.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c64fbec9a1e17ca560abf251c26a4adb4d60123dbe3f7dcc10819494cd97a6f.yml

src/resources/email-security/investigate.ts

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../p
66

77
export class Investigate extends APIResource {
88
/**
9-
* This endpoint returns information for each email that matches the search
10-
* parameter(s).
9+
* Returns information for each email that matches the search parameter(s).
1110
*/
1211
list(
1312
params: InvestigateListParams,
@@ -22,8 +21,8 @@ export class Investigate extends APIResource {
2221
}
2322

2423
/**
25-
* For emails that have a detection, this endpoint returns detection details such
26-
* as threat categories, sender information, and links.
24+
* Returns detection details such as threat categories and sender information for
25+
* non-benign messages.
2726
*/
2827
detections(
2928
postfixId: string,
@@ -57,8 +56,8 @@ export class Investigate extends APIResource {
5756
}
5857

5958
/**
60-
* For emails that have a detection, this endpoint returns a preview of the message
61-
* body as a base64 encoded PNG image.
59+
* Returns a preview of the message body as a base64 encoded PNG image for
60+
* non-benign messages.
6261
*/
6362
preview(
6463
postfixId: string,
@@ -75,8 +74,7 @@ export class Investigate extends APIResource {
7574
}
7675

7776
/**
78-
* For emails that have a detection, this endpoint returns the raw email as an EML
79-
* file.
77+
* Returns the raw eml of any non-benign message.
8078
*/
8179
raw(
8280
postfixId: string,
@@ -126,7 +124,7 @@ export interface InvestigateListResponse {
126124
is_quarantined: boolean;
127125

128126
/**
129-
* Message identifier
127+
* The identifier of the message.
130128
*/
131129
postfix_id: string;
132130

@@ -261,12 +259,12 @@ export namespace InvestigateDetectionsResponse {
261259

262260
export interface SenderInfo {
263261
/**
264-
* Name of the autonomous system
262+
* The name of the autonomous system.
265263
*/
266264
as_name?: string | null;
267265

268266
/**
269-
* Number of the autonomous system
267+
* The number of the autonomous system.
270268
*/
271269
as_number?: number | null;
272270

@@ -310,7 +308,7 @@ export interface InvestigateGetResponse {
310308
is_quarantined: boolean;
311309

312310
/**
313-
* Message identifier
311+
* The identifier of the message.
314312
*/
315313
postfix_id: string;
316314

@@ -380,14 +378,14 @@ export namespace InvestigateGetResponse {
380378

381379
export interface InvestigatePreviewResponse {
382380
/**
383-
* Base64 encoded PNG image
381+
* A base64 encoded PNG image of the email.
384382
*/
385383
screenshot: string;
386384
}
387385

388386
export interface InvestigateRawResponse {
389387
/**
390-
* UTF-8 encoded eml file
388+
* A UTF-8 encoded eml file of the email.
391389
*/
392390
raw: string;
393391
}
@@ -435,8 +433,7 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
435433
account_id: string;
436434

437435
/**
438-
* Query param: Controls whether the message action log in included in the
439-
* response.
436+
* Query param: Determines if the message action log is included in the response.
440437
*/
441438
action_log?: boolean;
442439

@@ -446,12 +443,12 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
446443
alert_id?: string;
447444

448445
/**
449-
* Query param: If `false`, the search includes non-detections.
446+
* Query param: Determines if the search results will include detections or not.
450447
*/
451448
detections_only?: boolean;
452449

453450
/**
454-
* Query param: Filter by the sender domain
451+
* Query param: The sender domains the search filters by.
455452
*/
456453
domain?: string;
457454

@@ -461,12 +458,12 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
461458
end?: string;
462459

463460
/**
464-
* Query param: Filter messages by the provided disposition.
461+
* Query param: The dispositions the search filters by.
465462
*/
466463
final_disposition?: 'MALICIOUS' | 'SUSPICIOUS' | 'SPOOF' | 'SPAM' | 'BULK';
467464

468465
/**
469-
* Query param: Filter messages by actions applied to them
466+
* Query param: The message actions the search filters by.
470467
*/
471468
message_action?: 'PREVIEW' | 'QUARANTINE_RELEASED' | 'MOVED';
472469

@@ -481,7 +478,8 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
481478
metric?: string;
482479

483480
/**
484-
* Query param: Space delimited query term(s). The search is case-insensitive.
481+
* Query param: The space-delimited term used in the query. The search is
482+
* case-insensitive.
485483
*
486484
* The content of the following email metadata fields are searched:
487485
*

src/resources/email-security/settings/allow-patterns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class AllowPatterns extends APIResource {
2222
}
2323

2424
/**
25-
* List, search, and sort an accounts's email allow patterns.
25+
* Lists, searches, and sorts an account’s email allow patterns.
2626
*/
2727
list(
2828
params: AllowPatternListParams,

src/resources/email-security/settings/domains.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../.
66

77
export class Domains extends APIResource {
88
/**
9-
* List, search, and sort an account's email domains.
9+
* Lists, searches, and sorts an accounts email domains.
1010
*/
1111
list(
1212
params: DomainListParams,
@@ -59,7 +59,7 @@ export class DomainListResponsesV4PagePaginationArray extends V4PagePaginationAr
5959

6060
export interface DomainListResponse {
6161
/**
62-
* Unique domain identifier
62+
* The unique identifier for the domain.
6363
*/
6464
id: number;
6565

@@ -82,14 +82,14 @@ export interface DomainListResponse {
8282

8383
export interface DomainDeleteResponse {
8484
/**
85-
* Unique domain identifier
85+
* The unique identifier for the domain.
8686
*/
8787
id: number;
8888
}
8989

9090
export interface DomainEditResponse {
9191
/**
92-
* Unique domain identifier
92+
* The unique identifier for the domain.
9393
*/
9494
id: number;
9595

@@ -117,8 +117,7 @@ export interface DomainListParams extends V4PagePaginationArrayParams {
117117
account_id: string;
118118

119119
/**
120-
* Query param: If present, the response contains only domains with the provided
121-
* delivery mode.
120+
* Query param: Filters response to domains with the provided delivery mode.
122121
*/
123122
allowed_delivery_mode?: 'DIRECT' | 'BCC' | 'JOURNAL' | 'API' | 'RETRO_SCAN';
124123

@@ -128,8 +127,8 @@ export interface DomainListParams extends V4PagePaginationArrayParams {
128127
direction?: 'asc' | 'desc';
129128

130129
/**
131-
* Query param: Filter result by the provided domains. Allows for multiple
132-
* occurrences, e.g., `domain=example.com&domain=example.xyz`.
130+
* Query param: Filters results by the provided domains, allowing for multiple
131+
* occurrences.
133132
*/
134133
domain?: Array<string>;
135134

src/resources/email-security/settings/impersonation-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ImpersonationRegistry extends APIResource {
2222
}
2323

2424
/**
25-
* List, search, and sort entries in impersonation registry.
25+
* Lists, searches, and sorts entries in the impersonation registry.
2626
*/
2727
list(
2828
params: ImpersonationRegistryListParams,

src/resources/email-security/settings/trusted-domains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class TrustedDomains extends APIResource {
2222
}
2323

2424
/**
25-
* List, search, and sort an account's trusted email domains.
25+
* Lists, searches, and sorts an accounts trusted email domains.
2626
*/
2727
list(
2828
params: TrustedDomainListParams,

0 commit comments

Comments
 (0)