import type { ServiceType } from "./connection";

export interface SearchRequest {
  appUrl: string;
  serviceType: ServiceType;
  username: string;
  query: string | null;
  aiSearch: boolean;
}

export interface ServiceItem {
  id: string;
  title: string;
  description: string | null;
  extraData: Record<string, unknown>;
}

export interface PagedSearchResponse<T> {
  content: T[];
  page: number;
  pageSize: number;
  totalElements: number;
  first: boolean;
  last: boolean;
  sort: string;
}

export interface SyncRequest {
  appUrl: string;
  username: string;
  serviceType: ServiceType;
}
