/**
 * Zod schema for OAuthAuthorizeRequestRequest
 *
 * This schema provides runtime validation and type inference.
 *  * Request to start OAuth flow.
 *  */
import { z } from 'zod'

/**
 * Request to start OAuth flow.
 */
export const OAuthAuthorizeRequestRequestSchema = z.object({
  redirect_uri: z.union([z.url(), z.literal('')]).optional(),
  source_url: z.union([z.url(), z.literal('')]).optional(),
})

/**
 * Infer TypeScript type from Zod schema
 */
export type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestSchema>