Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions packages/clients/src/api/tem/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export class API extends ParentAPI {
request.pageSize ?? this.client.settings.defaultPageSize,
],
['project_id', request.projectId],
['search', request.search],
['since', request.since],
['statuses', request.statuses],
['subject', request.subject],
Expand All @@ -146,15 +147,7 @@ export class API extends ParentAPI {

/**
* List emails. Retrieve the list of emails sent from a specific domain or for
* a specific Project or Organization. You must specify the `region`. You can
* filter your emails in ascending or descending order using:
*
* - Created_at
* - Updated_at
* - Status
* - Mail_from
* - Mail_rcpt
* - Subject
* a specific Project or Organization. You must specify the `region`.
*
* @param request - The request {@link ListEmailsRequest}
* @returns A Promise of ListEmailsResponse
Expand Down
20 changes: 6 additions & 14 deletions packages/clients/src/api/tem/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ export type CreateEmailRequest = {
region?: Region
/** Sender information. Must be from a checked domain declared in the Project. */
from?: CreateEmailRequestAddress
/** Array of recipient information (limited to 1 recipient). */
/** An array of the primary recipient's information. */
to?: CreateEmailRequestAddress[]
/** Array of recipient information (unimplemented). */
/** An array of the carbon copy recipient's information. */
cc?: CreateEmailRequestAddress[]
/** Array of recipient information (unimplemented). */
/** An array of the blind carbon copy recipient's information. */
bcc?: CreateEmailRequestAddress[]
/** Subject of the email. */
subject: string
Expand Down Expand Up @@ -262,17 +262,9 @@ export type ListEmailsRequest = {
statuses?: EmailStatus[]
/** (Optional) List emails with this subject. */
subject?: string
/**
* (Optional) List emails corresponding to specific criteria. You can filter
* your emails in ascending or descending order using:
*
* - Created_at
* - Updated_at
* - Status
* - Mail_from
* - Mail_rcpt
* - Subject.
*/
/** (Optional) List emails by searching to all fields. */
search?: string
/** (Optional) List emails corresponding to specific criteria. */
orderBy?: ListEmailsRequestOrderBy
}

Expand Down