@@ -6,8 +6,7 @@ import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../p
66
77export 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
381379export interface InvestigatePreviewResponse {
382380 /**
383- * Base64 encoded PNG image
381+ * A base64 encoded PNG image of the email.
384382 */
385383 screenshot : string ;
386384}
387385
388386export 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 *
0 commit comments