diff --git a/packages/clients/src/api/tem/v1alpha1/api.gen.ts b/packages/clients/src/api/tem/v1alpha1/api.gen.ts index 2b4a52b58..a54e67aae 100644 --- a/packages/clients/src/api/tem/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/api.gen.ts @@ -404,12 +404,18 @@ export class API extends ParentAPI { method: 'GET', path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/webhooks/${validatePathParam('webhookId', request.webhookId)}/events`, urlParams: urlParams( + ['domain_id', request.domainId], + ['email_id', request.emailId], + ['event_types', request.eventTypes], ['order_by', request.orderBy], + ['organization_id', request.organizationId], ['page', request.page], [ 'page_size', request.pageSize ?? this.client.settings.defaultPageSize, ], + ['project_id', request.projectId], + ['statuses', request.statuses], ), }, unmarshalListWebhookEventsResponse, diff --git a/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts index 5a87d7ac9..e6c76cb02 100644 --- a/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts @@ -306,6 +306,7 @@ const unmarshalWebhookEvent = (data: unknown): WebhookEvent => { return { createdAt: unmarshalDate(data.created_at), data: data.data, + domainId: data.domain_id, emailId: data.email_id, id: data.id, organizationId: data.organization_id, diff --git a/packages/clients/src/api/tem/v1alpha1/types.gen.ts b/packages/clients/src/api/tem/v1alpha1/types.gen.ts index c1f517ca3..c64467905 100644 --- a/packages/clients/src/api/tem/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/types.gen.ts @@ -269,6 +269,8 @@ export interface WebhookEvent { organizationId: string /** ID of the Webhook Event Project. */ projectId: string + /** ID of the webhook event domain. */ + domainId: string /** Type of the Webhook Event. */ type: WebhookEventType /** Status of the Webhook Event. */ @@ -531,6 +533,18 @@ export type ListWebhookEventsRequest = { page?: number /** Requested page size. Value must be between 1 and 100. */ pageSize?: number + /** ID of the email linked to the events. */ + emailId?: string + /** List of event types linked to the events. */ + eventTypes?: WebhookEventType[] + /** List of event statuses. */ + statuses?: WebhookEventStatus[] + /** ID of the webhook Project. */ + projectId?: string + /** ID of the webhook Organization. */ + organizationId?: string + /** ID of the domain to watch for triggering events. */ + domainId?: string } export interface ListWebhookEventsResponse {