Skip to content

Commit 351f11f

Browse files
authored
fix: add eventData to WebhookDispatch type (#714)
The field is returned from the API, but the type was missing it. In case of `TEST` event, it's null.
1 parent 5a9cd66 commit 351f11f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/resource_clients/webhook_dispatch.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface WebhookDispatch {
3030
eventType: WebhookEventType;
3131
calls: WebhookDispatchCall[];
3232
webhook: Pick<Webhook, 'requestUrl' | 'isAdHoc'>;
33+
eventData: WebhookDispatchEventData | null;
3334
}
3435

3536
export enum WebhookDispatchStatus {
@@ -45,3 +46,10 @@ export interface WebhookDispatchCall {
4546
responseStatus: number | null;
4647
responseBody: string | null;
4748
}
49+
50+
export interface WebhookDispatchEventData {
51+
actorRunId?: string;
52+
actorId?: string;
53+
actorTaskId?: string;
54+
actorBuildId?: string;
55+
}

0 commit comments

Comments
 (0)