UNPKG

svix

Version:

Svix webhooks API client and webhook verification library

39 lines (38 loc) 2.56 kB
import { type IngestEndpointHeadersIn } from "../models/ingestEndpointHeadersIn"; import { type IngestEndpointHeadersOut } from "../models/ingestEndpointHeadersOut"; import { type IngestEndpointIn } from "../models/ingestEndpointIn"; import { type IngestEndpointOut } from "../models/ingestEndpointOut"; import { type IngestEndpointSecretIn } from "../models/ingestEndpointSecretIn"; import { type IngestEndpointSecretOut } from "../models/ingestEndpointSecretOut"; import { type IngestEndpointTransformationOut } from "../models/ingestEndpointTransformationOut"; import { type IngestEndpointTransformationPatch } from "../models/ingestEndpointTransformationPatch"; import { type IngestEndpointUpdate } from "../models/ingestEndpointUpdate"; import { type ListResponseIngestEndpointOut } from "../models/listResponseIngestEndpointOut"; import type { Ordering } from "../models/ordering"; import { type SvixRequestContext } from "../request"; export interface IngestEndpointListOptions { limit?: number; iterator?: string | null; order?: Ordering; } export interface IngestEndpointCreateOptions { idempotencyKey?: string; } export interface IngestEndpointRotateSecretOptions { idempotencyKey?: string; } export declare class IngestEndpoint { private readonly requestCtx; constructor(requestCtx: SvixRequestContext); list(sourceId: string, options?: IngestEndpointListOptions): Promise<ListResponseIngestEndpointOut>; create(sourceId: string, ingestEndpointIn: IngestEndpointIn, options?: IngestEndpointCreateOptions): Promise<IngestEndpointOut>; get(sourceId: string, endpointId: string): Promise<IngestEndpointOut>; update(sourceId: string, endpointId: string, ingestEndpointUpdate: IngestEndpointUpdate): Promise<IngestEndpointOut>; delete(sourceId: string, endpointId: string): Promise<void>; getHeaders(sourceId: string, endpointId: string): Promise<IngestEndpointHeadersOut>; updateHeaders(sourceId: string, endpointId: string, ingestEndpointHeadersIn: IngestEndpointHeadersIn): Promise<void>; getSecret(sourceId: string, endpointId: string): Promise<IngestEndpointSecretOut>; rotateSecret(sourceId: string, endpointId: string, ingestEndpointSecretIn: IngestEndpointSecretIn, options?: IngestEndpointRotateSecretOptions): Promise<void>; getTransformation(sourceId: string, endpointId: string): Promise<IngestEndpointTransformationOut>; setTransformation(sourceId: string, endpointId: string, ingestEndpointTransformationPatch: IngestEndpointTransformationPatch): Promise<void>; }