@@ -16,14 +16,12 @@ export type TriggerWebhookTaskParams = {
1616 endpointMetadata : unknown ; // endpoint.metadata -> run metadata
1717} ;
1818
19- export interface TriggerWebhookTaskCallback {
20- ( params : TriggerWebhookTaskParams ) : Promise < {
21- success : boolean ;
22- runId ?: string ; // persisted onto WebhookDelivery.runId on success
23- error ?: string ;
24- errorType ?: WebhookDeliverTaskErrorType ;
25- } > ;
26- }
19+ export type TriggerWebhookTaskCallback = ( params : TriggerWebhookTaskParams ) => Promise < {
20+ success : boolean ;
21+ runId ?: string ; // persisted onto WebhookDelivery.runId on success
22+ error ?: string ;
23+ errorType ?: WebhookDeliverTaskErrorType ;
24+ } > ;
2725
2826export interface WebhookEngineOptions {
2927 logger ?: Logger ;
@@ -82,16 +80,14 @@ export type DeliverWebhookToSessionParams = {
8280 isSessionStart : boolean ;
8381} ;
8482
85- export interface DeliverWebhookToSessionCallback {
86- ( params : DeliverWebhookToSessionParams ) : Promise < {
87- success : boolean ;
88- runId ?: string ; // the session's current run, persisted onto WebhookDelivery.runId
89- error ?: string ;
90- errorType ?: WebhookDeliverTaskErrorType ;
91- skipped ?: boolean ; // resume-only and no session existed: recorded FILTERED, not routed
92- skippedReason ?: string ;
93- } > ;
94- }
83+ export type DeliverWebhookToSessionCallback = ( params : DeliverWebhookToSessionParams ) => Promise < {
84+ success : boolean ;
85+ runId ?: string ; // the session's current run, persisted onto WebhookDelivery.runId
86+ error ?: string ;
87+ errorType ?: WebhookDeliverTaskErrorType ;
88+ skipped ?: boolean ; // resume-only and no session existed: recorded FILTERED, not routed
89+ skippedReason ?: string ;
90+ } > ;
9591
9692export type IngestInput = {
9793 opaqueId : string ; // Q2: globally unique, so ingest resolves the endpoint (and its env id + type) from it
0 commit comments