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
6 changes: 6 additions & 0 deletions packages/clients/src/api/tem/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 14 additions & 0 deletions packages/clients/src/api/tem/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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 {
Expand Down