/** * Dashboard API * Dashboard API documentation * * The version of the OpenAPI document: 1.0.0 * * * 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 { Webhook, WebhookCreateRequest, WebhookMessageRedeliveryResponse, WebhookMessagesResponse, WebhookUpdateRequest, WebhooksResponse } from '../models'; export interface CreateWebhookRequest { environmentId: string; webhookCreateRequest: WebhookCreateRequest; } export interface DeleteWebhookByIdRequest { environmentId: string; webhookId: string; } export interface GetWebhookRequest { environmentId: string; webhookId: string; includeSecret?: boolean; } export interface GetWebhookMessageDeliveriesRequest { environmentId: string; webhookId: string; messageId: string; } export interface GetWebhookMessagesRequest { environmentId: string; webhookId: string; cursor?: string; } export interface GetWebhooksRequest { environmentId: string; } export interface RedeliverWebhookMessageRequest { environmentId: string; webhookId: string; messageId: string; } export interface UpdateWebhookByIdRequest { environmentId: string; webhookId: string; webhookUpdateRequest: WebhookUpdateRequest; } /** * */ export declare class WebhooksApi extends runtime.BaseAPI { /** * Creates a new webhook for the specified environment. * Create a webhook for the environment */ createWebhookRaw(requestParameters: CreateWebhookRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new webhook for the specified environment. * Create a webhook for the environment */ createWebhook(requestParameters: CreateWebhookRequest, initOverrides?: RequestInit): Promise; /** * Permanently removes the specified webhook. * Delete a webhook by ID */ deleteWebhookByIdRaw(requestParameters: DeleteWebhookByIdRequest, initOverrides?: RequestInit): Promise>; /** * Permanently removes the specified webhook. * Delete a webhook by ID */ deleteWebhookById(requestParameters: DeleteWebhookByIdRequest, initOverrides?: RequestInit): Promise; /** * Returns a single webhook by its unique identifier. * Get a webhook by ID */ getWebhookRaw(requestParameters: GetWebhookRequest, initOverrides?: RequestInit): Promise>; /** * Returns a single webhook by its unique identifier. * Get a webhook by ID */ getWebhook(requestParameters: GetWebhookRequest, initOverrides?: RequestInit): Promise; /** * Returns the delivery attempts for the specified webhook message. * Get message deliveries for a webhook */ getWebhookMessageDeliveriesRaw(requestParameters: GetWebhookMessageDeliveriesRequest, initOverrides?: RequestInit): Promise>; /** * Returns the delivery attempts for the specified webhook message. * Get message deliveries for a webhook */ getWebhookMessageDeliveries(requestParameters: GetWebhookMessageDeliveriesRequest, initOverrides?: RequestInit): Promise; /** * Returns the messages for the specified webhook. * Get messages for a webhook */ getWebhookMessagesRaw(requestParameters: GetWebhookMessagesRequest, initOverrides?: RequestInit): Promise>; /** * Returns the messages for the specified webhook. * Get messages for a webhook */ getWebhookMessages(requestParameters: GetWebhookMessagesRequest, initOverrides?: RequestInit): Promise; /** * Returns the webhooks for the specified environment. * Get webhooks for the environment */ getWebhooksRaw(requestParameters: GetWebhooksRequest, initOverrides?: RequestInit): Promise>; /** * Returns the webhooks for the specified environment. * Get webhooks for the environment */ getWebhooks(requestParameters: GetWebhooksRequest, initOverrides?: RequestInit): Promise; /** * Redelivers the specified webhook message. * Redeliver a webhook message */ redeliverWebhookMessageRaw(requestParameters: RedeliverWebhookMessageRequest, initOverrides?: RequestInit): Promise>; /** * Redelivers the specified webhook message. * Redeliver a webhook message */ redeliverWebhookMessage(requestParameters: RedeliverWebhookMessageRequest, initOverrides?: RequestInit): Promise; /** * Updates the specified webhook. * Update a webhook by ID */ updateWebhookByIdRaw(requestParameters: UpdateWebhookByIdRequest, initOverrides?: RequestInit): Promise>; /** * Updates the specified webhook. * Update a webhook by ID */ updateWebhookById(requestParameters: UpdateWebhookByIdRequest, initOverrides?: RequestInit): Promise; }