import type { KbxExperimentOverviewResponse, KbxExperimentRolloutRequest, KbxExperimentRollbackRequest } from '@kbx/contracts'
import { kbxApi } from '../../../http/generated/kbxApiClient'
export const experimentApi={
  overview:()=>kbxApi.request<KbxExperimentOverviewResponse>('common.experiments.overview'),
  rollout:(experimentId:string,body:KbxExperimentRolloutRequest)=>kbxApi.request('common.experiments.rollout',{path:{experimentId},body}),
  rollback:(experimentId:string,body:KbxExperimentRollbackRequest)=>kbxApi.request('common.experiments.rollback',{path:{experimentId},body}),
}
