WebhookPayloadSchema
Variable: WebhookPayloadSchema
constWebhookPayloadSchema:ZodMiniDiscriminatedUnion<[ZodMiniObject<{data:ZodMiniObject<{connection_id:ZodMiniString<string>;project:ZodMiniObject<{id:ZodMiniString<string>;platform:ZodMiniEnum<{discord:"discord";roblox:"roblox"; }>;platform_id:ZodMiniString<string>;type:ZodMiniEnum<{bot:"bot";game:"game";server:"server"; }>; },$strip>;user:ZodMiniObject<{avatar_url:ZodMiniURL;id:ZodMiniString<string>;name:ZodMiniString<string>;platform_id:ZodMiniString<string>; },$strip>;webhook_secret:ZodMiniString<string>; },$strip>;type:ZodMiniLiteral<"integration.create">; },$strip>,ZodMiniObject<{data:ZodMiniObject<{connection_id:ZodMiniString<string>; },$strip>;type:ZodMiniLiteral<"integration.delete">; },$strip>,ZodMiniObject<{data:ZodMiniObject<{created_at:ZodMiniUnion<readonly [ZodMiniISODate,ZodMiniISODateTime]>;expires_at:ZodMiniUnion<readonly [ZodMiniISODate,ZodMiniISODateTime]>;id:ZodMiniString<string>;project:ZodMiniObject<{id:ZodMiniString<string>;platform:ZodMiniEnum<{discord:"discord";roblox:"roblox"; }>;platform_id:ZodMiniString<string>;type:ZodMiniEnum<{bot:"bot";game:"game";server:"server"; }>; },$strip>;query:ZodMiniOptional<ZodMiniRecord<ZodMiniString<string>,ZodMiniString<string>>>;user:ZodMiniObject<{avatar_url:ZodMiniURL;id:ZodMiniString<string>;name:ZodMiniString<string>;platform_id:ZodMiniString<string>; },$strip>;weight:ZodMiniNumber<number>; },$strip>;type:ZodMiniLiteral<"vote.create">; },$strip>,ZodMiniObject<{data:ZodMiniObject<{project:ZodMiniObject<{id:ZodMiniString<string>;platform:ZodMiniEnum<{discord:"discord";roblox:"roblox"; }>;platform_id:ZodMiniString<string>;type:ZodMiniEnum<{bot:"bot";game:"game";server:"server"; }>; },$strip>;user:ZodMiniObject<{avatar_url:ZodMiniURL;id:ZodMiniString<string>;name:ZodMiniString<string>;platform_id:ZodMiniString<string>; },$strip>; },$strip>;type:ZodMiniLiteral<"webhook.test">; },$strip>],"type">
Defined in: v1/schemas/votes.ts:84