WebhookRuntimeService
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:60
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebhookRuntimeService(
config):WebhookRuntimeService
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:75
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”WebhookRuntimeService
Methods
Section titled “Methods”addEndpoint()
Section titled “addEndpoint()”addEndpoint(
input):Promise<{active:boolean;createdAt:Date;description?:string;events:WebhookEventType[];filters?: {channelId?:string[];providerId?:string[];templateId?:string[]; };headers?:Record<string,string>;id:string;lastTriggeredAt?:Date;name?:string;retryConfig?: {backoffMultiplier:number;maxRetries:number;retryDelayMs:number; };secret?:string;status:"error"|"active"|"inactive"|"suspended";updatedAt:Date;url:string; }>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:98
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; }>
Implementation of
Section titled “Implementation of”addEndpoints()
Section titled “addEndpoints()”addEndpoints(
inputs):Promise<object[]>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:120
Parameters
Section titled “Parameters”inputs
Section titled “inputs”readonly WebhookEndpointInput[]
Returns
Section titled “Returns”Promise<object[]>
Implementation of
Section titled “Implementation of”emit()
Section titled “emit()”emit(
event):Promise<void>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:223
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”emitSync()
Section titled “emitSync()”emitSync(
event):Promise<object[]>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:238
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<object[]>
Implementation of
Section titled “Implementation of”flush()
Section titled “flush()”flush():
Promise<void>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:260
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”getEndpoint()
Section titled “getEndpoint()”getEndpoint(
endpointId):Promise<{active:boolean;createdAt:Date;description?:string;events:WebhookEventType[];filters?: {channelId?:string[];providerId?:string[];templateId?:string[]; };headers?:Record<string,string>;id:string;lastTriggeredAt?:Date;name?:string;retryConfig?: {backoffMultiplier:number;maxRetries:number;retryDelayMs:number; };secret?:string;status:"error"|"active"|"inactive"|"suspended";updatedAt:Date;url:string; } |null>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:172
Parameters
Section titled “Parameters”endpointId
Section titled “endpointId”string
Returns
Section titled “Returns”Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; } | null>
Implementation of
Section titled “Implementation of”listDeliveries()
Section titled “listDeliveries()”listDeliveries(
options?):Promise<object[]>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:268
Parameters
Section titled “Parameters”options?
Section titled “options?”WebhookDeliveryListOptions = {}
Returns
Section titled “Returns”Promise<object[]>
Implementation of
Section titled “Implementation of”listEndpoints()
Section titled “listEndpoints()”listEndpoints():
Promise<object[]>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:177
Returns
Section titled “Returns”Promise<object[]>
Implementation of
Section titled “Implementation of”probeEndpoint()
Section titled “probeEndpoint()”probeEndpoint(
input):Promise<WebhookTestResult>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:182
Parameters
Section titled “Parameters”string | WebhookRuntimeTestPayload
Returns
Section titled “Returns”Promise<WebhookTestResult>
Implementation of
Section titled “Implementation of”removeEndpoint()
Section titled “removeEndpoint()”removeEndpoint(
endpointId):Promise<void>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:167
Parameters
Section titled “Parameters”endpointId
Section titled “endpointId”string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”shutdown()
Section titled “shutdown()”shutdown():
Promise<void>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:278
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”updateEndpoint()
Section titled “updateEndpoint()”updateEndpoint(
endpointId,updates):Promise<{active:boolean;createdAt:Date;description?:string;events:WebhookEventType[];filters?: {channelId?:string[];providerId?:string[];templateId?:string[]; };headers?:Record<string,string>;id:string;lastTriggeredAt?:Date;name?:string;retryConfig?: {backoffMultiplier:number;maxRetries:number;retryDelayMs:number; };secret?:string;status:"error"|"active"|"inactive"|"suspended";updatedAt:Date;url:string; }>
Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:131
Parameters
Section titled “Parameters”endpointId
Section titled “endpointId”string
updates
Section titled “updates”Partial<WebhookEndpointInput>
Returns
Section titled “Returns”Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; }>