import { Connector, ConnectorResponse } from './Connector'; import * as P from './Paginated'; export type Connection = { id: string; name: string; connector: Connector; settings: unknown; }; export type ConnectionResponse = { id: string; name: string; connector: ConnectorResponse; settings: unknown; }; export type ConnectionsResponse = P.Paginated; export type GetConnectionsQuery = P.GetQuery; export type GetConnectionsQueryRequest = P.GetQueryRequest; export type CreateConnectionClient = { name: string; connectorId: string; settings: unknown; }; export type CreateConnectionServer = { id: string; name: string; settings: unknown; }; export type CreateConnectionRequest = { connector_id: string; name: string; settings: unknown; }; export type CreateConnectionResponse = { id: string; name: string; settings: unknown; }; export type UpdateConnection = { name: string; settings: unknown; }; export type UpdateConnectionRequest = UpdateConnection; export type UpdateConnectionResponse = CreateConnectionServer;