import { type Client } from '../../../../seam/connect/client.js'; import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../seam/connect/options.js'; import type { Webhook } from '../../../../seam/connect/resources/webhook.js'; import { SeamHttpRequest } from '../../../../seam/connect/seam-http-request.js'; import { SeamPaginator } from '../../../../seam/connect/seam-paginator.js'; export declare class SeamHttpWebhooks { client: Client; readonly defaults: Required; readonly ltsVersion = "1.0.0"; static ltsVersion: string; constructor(apiKeyOrOptions?: string | SeamHttpOptions); static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit): SeamHttpWebhooks; static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit): SeamHttpWebhooks; static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit): SeamHttpWebhooks; static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise; static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit): SeamHttpWebhooks; static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit): SeamHttpWebhooks; createPaginator(request: SeamHttpRequest): SeamPaginator; updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise; /** * Creates a new [webhook](https://docs.seam.co/developer-tools/webhooks). */ create(parameters: WebhooksCreateParameters, options?: WebhooksCreateOptions): WebhooksCreateRequest; /** * Deletes a specified [webhook](https://docs.seam.co/developer-tools/webhooks). */ delete(parameters: WebhooksDeleteParameters, options?: WebhooksDeleteOptions): WebhooksDeleteRequest; /** * Gets a specified [webhook](https://docs.seam.co/developer-tools/webhooks). */ get(parameters: WebhooksGetParameters, options?: WebhooksGetOptions): WebhooksGetRequest; /** * Returns a list of all [webhooks](https://docs.seam.co/developer-tools/webhooks). */ list(parameters?: WebhooksListParameters, options?: WebhooksListOptions): WebhooksListRequest; /** * Updates a specified [webhook](https://docs.seam.co/developer-tools/webhooks). */ update(parameters: WebhooksUpdateParameters, options?: WebhooksUpdateOptions): WebhooksUpdateRequest; } export type WebhooksCreateParameters = { /** * Types of events that you want the new webhook to receive. */ event_types?: Array | undefined; /** * URL for the new webhook. */ url: string; }; /** * @deprecated Use WebhooksCreateRequest instead. */ export type WebhooksCreateResponse = { webhook: Webhook; }; export type WebhooksCreateRequest = SeamHttpRequest; export interface WebhooksCreateOptions { } export type WebhooksDeleteParameters = { /** * ID of the webhook that you want to delete. */ webhook_id: string; }; /** * @deprecated Use WebhooksDeleteRequest instead. */ export type WebhooksDeleteResponse = void; export type WebhooksDeleteRequest = SeamHttpRequest; export interface WebhooksDeleteOptions { } export type WebhooksGetParameters = { /** * ID of the webhook that you want to get. */ webhook_id: string; }; /** * @deprecated Use WebhooksGetRequest instead. */ export type WebhooksGetResponse = { webhook: Webhook; }; export type WebhooksGetRequest = SeamHttpRequest; export interface WebhooksGetOptions { } export type WebhooksListParameters = {}; /** * @deprecated Use WebhooksListRequest instead. */ export type WebhooksListResponse = { webhooks: Array; }; export type WebhooksListRequest = SeamHttpRequest; export interface WebhooksListOptions { } export type WebhooksUpdateParameters = { /** * Types of events that you want the webhook to receive. */ event_types: Array; /** * ID of the webhook that you want to update. */ webhook_id: string; }; /** * @deprecated Use WebhooksUpdateRequest instead. */ export type WebhooksUpdateResponse = void; export type WebhooksUpdateRequest = SeamHttpRequest; export interface WebhooksUpdateOptions { }