Skip to content

Variable: WebhookSchema ​

ts
const WebhookSchema: ZodObject<{
  active: ZodOptional<ZodBoolean>;
  configuration: ZodOptional<ZodRecord<ZodString, ZodAny>>;
  createdDate: ZodOptional<ZodNumber>;
  events: ZodOptional<ZodArray<ZodString>>;
  id: ZodNumber;
  name: ZodString;
  scopeType: ZodOptional<ZodString>;
  sslVerificationRequired: ZodOptional<ZodBoolean>;
  statistics: ZodOptional<ZodObject<{
     counts: ZodOptional<ZodObject<{
        errors: ZodOptional<ZodNumber>;
        failures: ZodOptional<ZodNumber>;
        successes: ZodOptional<ZodNumber>;
        window: ZodOptional<ZodObject<{
           duration: ...;
           start: ...;
        }, ApiObjectConfig<...>>>;
     }, ApiObjectConfig<undefined>>>;
     lastError: ZodOptional<ZodRecord<ZodString, ZodAny>>;
  }, ApiObjectConfig<undefined>>>;
  updatedDate: ZodOptional<ZodNumber>;
  url: ZodString;
}, ApiObjectConfig<undefined>>;

Defined in: src/server/models/webhook.ts:5