import type { KbxSuggestionRequest, KbxSuggestionResult } from '@kbx/contracts'
import { kbxApi } from '../http/generated/kbxApiClient'

export function submitKbxSuggestion(request: KbxSuggestionRequest): Promise<KbxSuggestionResult> {
  return kbxApi.request<KbxSuggestionResult, KbxSuggestionRequest>('common.suggestions.submit', { body: request })
}
