svix
Version:
Svix webhooks API client and webhook verification library
28 lines (27 loc) • 1.26 kB
TypeScript
import { type IngestSourceIn } from "../models/ingestSourceIn";
import { type IngestSourceOut } from "../models/ingestSourceOut";
import { type ListResponseIngestSourceOut } from "../models/listResponseIngestSourceOut";
import type { Ordering } from "../models/ordering";
import { type RotateTokenOut } from "../models/rotateTokenOut";
import { type SvixRequestContext } from "../request";
export interface IngestSourceListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface IngestSourceCreateOptions {
idempotencyKey?: string;
}
export interface IngestSourceRotateTokenOptions {
idempotencyKey?: string;
}
export declare class IngestSource {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: IngestSourceListOptions): Promise<ListResponseIngestSourceOut>;
create(ingestSourceIn: IngestSourceIn, options?: IngestSourceCreateOptions): Promise<IngestSourceOut>;
get(sourceId: string): Promise<IngestSourceOut>;
update(sourceId: string, ingestSourceIn: IngestSourceIn): Promise<IngestSourceOut>;
delete(sourceId: string): Promise<void>;
rotateToken(sourceId: string, options?: IngestSourceRotateTokenOptions): Promise<RotateTokenOut>;
}