From dcaa1bb750a98572815d23ea1092362507e90f80 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 31 May 2023 15:48:43 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/tem/v1alpha1/api.gen.ts | 11 ++-------- .../clients/src/api/tem/v1alpha1/types.gen.ts | 20 ++++++------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/packages/clients/src/api/tem/v1alpha1/api.gen.ts b/packages/clients/src/api/tem/v1alpha1/api.gen.ts index 9b26007a2..be0771e62 100644 --- a/packages/clients/src/api/tem/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/api.gen.ts @@ -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], @@ -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 diff --git a/packages/clients/src/api/tem/v1alpha1/types.gen.ts b/packages/clients/src/api/tem/v1alpha1/types.gen.ts index ef57ad4d3..aedab5703 100644 --- a/packages/clients/src/api/tem/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/types.gen.ts @@ -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 @@ -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 }