Files
FrenoCorp/node_modules/svix/dist/api/ingestEndpoint.d.ts

39 lines
2.5 KiB
TypeScript

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>;
}