fathom-typescript
Version:
Fathom's official TypeScript SDK.
34 lines • 1.34 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare const TriggeredFor: {
readonly MyRecordings: "my_recordings";
readonly SharedExternalRecordings: "shared_external_recordings";
readonly MySharedWithTeamRecordings: "my_shared_with_team_recordings";
readonly SharedTeamRecordings: "shared_team_recordings";
};
export type TriggeredFor = ClosedEnum<typeof TriggeredFor>;
export type Webhook = {
id: string;
url: string;
/**
* The secret used to verify the webhook signature.
*/
secret: string;
/**
* The date and time the webhook was created in ISO 8601 format.
*/
createdAt: Date;
includeTranscript: boolean;
includeCrmMatches: boolean;
includeSummary: boolean;
includeActionItems: boolean;
triggeredFor: Array<TriggeredFor>;
};
/** @internal */
export declare const TriggeredFor$inboundSchema: z.ZodNativeEnum<typeof TriggeredFor>;
/** @internal */
export declare const Webhook$inboundSchema: z.ZodType<Webhook, z.ZodTypeDef, unknown>;
export declare function webhookFromJSON(jsonString: string): SafeParseResult<Webhook, SDKValidationError>;
//# sourceMappingURL=webhook.d.ts.map