@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
23 lines (22 loc) • 699 B
TypeScript
import { z } from 'zod';
/**
* Schema for a record of a webhook delivery attempt.
*
* Returned by `client.organizations.webhooks.getLogs()`. The exact shape of `payload`
* and `response` is webhook-event specific and intentionally typed loosely.
*/
export declare const WebhookLogSchema: z.ZodObject<{
id: z.ZodString;
organization: z.ZodString;
webhook: z.ZodString;
event: z.ZodString;
url: z.ZodString;
status: z.ZodNumber;
payload: z.ZodUnknown;
response: z.ZodOptional<z.ZodUnknown>;
createdDate: z.ZodCoercedDate<unknown>;
}, z.core.$loose>;
/**
* A record of a webhook delivery attempt.
*/
export type WebhookLog = z.infer<typeof WebhookLogSchema>;