Fixes slack verification and timeout errors (#2972)
* Fixing slack create event * Fixes verify working 90% of the time :S * Verify V2 * Fixing verify - not needed on interaction payload * Fixing verifcation + response * Fix verifcation * DM user error/success * Remove random 200 * Timeout return * Adding Zod schema verification * Added validations, cleanup * Type fixes * Update event.ts Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: zomars <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
15 files changed
+167
-184
No files matched your search
@@ -67,7 +67,7 @@ export const bookingCreateBodySchema = z.object({
|
||||
})
|
||||
.optional(),
|
||||
eventTypeId: z.number(),
|
||||
eventTypeSlug: z.string(),
|
||||
eventTypeSlug: z.string().optional(),
|
||||
guests: z.array(z.string()).optional(),
|
||||
location: z.string(),
|
||||
name: z.string(),
|
||||
@@ -81,10 +81,12 @@ export const bookingCreateBodySchema = z.object({
|
||||
bookingUid: z.string().optional(),
|
||||
customInputs: z.array(z.object({ label: z.string(), value: z.union([z.string(), z.boolean()]) })),
|
||||
metadata: z.record(z.string()),
|
||||
hasHashedBookingLink: z.boolean(),
|
||||
hasHashedBookingLink: z.boolean().optional(),
|
||||
hashedLink: z.string().nullish(),
|
||||
});
|
||||
|
||||
export type BookingCreateBody = z.input<typeof bookingCreateBodySchema>;
|
||||
|
||||
export const extendedBookingCreateBody = bookingCreateBodySchema.merge(
|
||||
z.object({
|
||||
noEmail: z.boolean().optional(),
|
||||
|
||||
Reference in new issue
Block a user