// This file is auto-generated by @hey-api/openapi-ts

import * as z from 'zod'

/**
 * OAuthDataSourceBindingResponse
 */
export const zOAuthDataSourceBindingResponse = z.object({
  result: z.string(),
})

/**
 * OAuthDataSourceResponse
 */
export const zOAuthDataSourceResponse = z.object({
  data: z.string(),
})

/**
 * OAuthDataSourceSyncResponse
 */
export const zOAuthDataSourceSyncResponse = z.object({
  result: z.string(),
})

export const zGetOauthAuthorizeByProviderPath = z.object({
  provider: z.string(),
})

export const zGetOauthAuthorizeByProviderQuery = z.object({
  code: z.string().optional(),
  state: z.string().optional(),
})

/**
 * Success
 */
export const zGetOauthAuthorizeByProviderResponse = z.record(z.string(), z.unknown())

export const zGetOauthDataSourceBindingByProviderPath = z.object({
  provider: z.string(),
})

export const zGetOauthDataSourceBindingByProviderQuery = z.object({
  code: z.string().optional(),
})

/**
 * Data source binding success
 */
export const zGetOauthDataSourceBindingByProviderResponse = zOAuthDataSourceBindingResponse

export const zGetOauthDataSourceCallbackByProviderPath = z.object({
  provider: z.string(),
})

export const zGetOauthDataSourceCallbackByProviderQuery = z.object({
  code: z.string().optional(),
  error: z.string().optional(),
})

/**
 * Success
 */
export const zGetOauthDataSourceCallbackByProviderResponse = z.record(z.string(), z.unknown())

export const zGetOauthDataSourceByProviderPath = z.object({
  provider: z.string(),
})

/**
 * Authorization URL or internal setup success
 */
export const zGetOauthDataSourceByProviderResponse = zOAuthDataSourceResponse

export const zGetOauthDataSourceByProviderByBindingIdSyncPath = z.object({
  binding_id: z.string(),
  provider: z.string(),
})

/**
 * Data source sync success
 */
export const zGetOauthDataSourceByProviderByBindingIdSyncResponse = zOAuthDataSourceSyncResponse

export const zGetOauthLoginByProviderPath = z.object({
  provider: z.string(),
})

export const zGetOauthLoginByProviderQuery = z.object({
  invite_token: z.string().optional(),
})

/**
 * Success
 */
export const zGetOauthLoginByProviderResponse = z.record(z.string(), z.unknown())

export const zGetOauthPluginByProviderIdDatasourceCallbackPath = z.object({
  provider_id: z.string(),
})

/**
 * Success
 */
export const zGetOauthPluginByProviderIdDatasourceCallbackResponse = z.record(
  z.string(),
  z.unknown(),
)

export const zGetOauthPluginByProviderIdDatasourceGetAuthorizationUrlPath = z.object({
  provider_id: z.string(),
})

/**
 * Success
 */
export const zGetOauthPluginByProviderIdDatasourceGetAuthorizationUrlResponse = z.record(
  z.string(),
  z.unknown(),
)

export const zGetOauthPluginByProviderToolAuthorizationUrlPath = z.object({
  provider: z.string(),
})

/**
 * Success
 */
export const zGetOauthPluginByProviderToolAuthorizationUrlResponse = z.record(
  z.string(),
  z.unknown(),
)

export const zGetOauthPluginByProviderToolCallbackPath = z.object({
  provider: z.string(),
})

/**
 * Success
 */
export const zGetOauthPluginByProviderToolCallbackResponse = z.record(z.string(), z.unknown())

export const zGetOauthPluginByProviderTriggerCallbackPath = z.object({
  provider: z.string(),
})

/**
 * Success
 */
export const zGetOauthPluginByProviderTriggerCallbackResponse = z.record(z.string(), z.unknown())

/**
 * Success
 */
export const zPostOauthProviderResponse = z.record(z.string(), z.unknown())

/**
 * Success
 */
export const zPostOauthProviderAccountResponse = z.record(z.string(), z.unknown())

/**
 * Success
 */
export const zPostOauthProviderAuthorizeResponse = z.record(z.string(), z.unknown())

/**
 * Success
 */
export const zPostOauthProviderTokenResponse = z.record(z.string(), z.unknown())
