/**
 * Zod schema for OAuthAuthorizeResponse
 *
 * This schema provides runtime validation and type inference.
 *  * Response with OAuth authorization URL.
 *  */
import { z } from 'zod'

/**
 * Response with OAuth authorization URL.
 */
export const OAuthAuthorizeResponseSchema = z.object({
  authorization_url: z.union([z.url(), z.literal('')]),
  state: z.string(),
})

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