/** * Faraday REST API * The [Faraday](https://faraday.ai) API makes it easy to predict customer behavior programmatically. See our [API change policy](https://faraday.ai/legal). * * The version of the OpenAPI document: 1.0.0 * Contact: support@faraday.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { WebhookEndpoint, WebhookEndpointMergePatch, WebhookEndpointPost } from '../models'; export interface CreateWebhookEndpointRequest { webhookEndpointFields: WebhookEndpointPost; } export interface DeleteWebhookEndpointRequest { webhookEndpointId: string; } export interface GetWebhookEndpointRequest { webhookEndpointId: string; } export interface GetWebhookEndpointsRequest { ids?: Array; } export interface UpdateWebhookEndpointRequest { webhookEndpointId: string; webhookEndpointMergePatch: WebhookEndpointMergePatch; } /** * */ export declare class WebhooksApi extends runtime.BaseAPI { /** * Add a new webhook endpoint * Create webhook endpoint */ createWebhookEndpointRaw(requestParameters: CreateWebhookEndpointRequest): Promise>; /** * Add a new webhook endpoint * Create webhook endpoint */ createWebhookEndpoint(webhookEndpointFields: WebhookEndpointPost): Promise; /** * Delete a webhook endpoint * Delete a webhook endpoint */ deleteWebhookEndpointRaw(requestParameters: DeleteWebhookEndpointRequest): Promise>; /** * Delete a webhook endpoint * Delete a webhook endpoint */ deleteWebhookEndpoint(webhookEndpointId: string): Promise; /** * Get details on a specific webhook endpoint * Retrieve a webhook */ getWebhookEndpointRaw(requestParameters: GetWebhookEndpointRequest): Promise>; /** * Get details on a specific webhook endpoint * Retrieve a webhook */ getWebhookEndpoint(webhookEndpointId: string): Promise; /** * Get a list of webhook endpoints defined on the account * List webhook endpoints */ getWebhookEndpointsRaw(requestParameters: GetWebhookEndpointsRequest): Promise>>; /** * Get a list of webhook endpoints defined on the account * List webhook endpoints */ getWebhookEndpoints(ids?: Array): Promise>; /** * Update the configuration of a webhook endpoint * Update a webhook endpoint */ updateWebhookEndpointRaw(requestParameters: UpdateWebhookEndpointRequest): Promise>; /** * Update the configuration of a webhook endpoint * Update a webhook endpoint */ updateWebhookEndpoint(webhookEndpointId: string, webhookEndpointMergePatch: WebhookEndpointMergePatch): Promise; }