import type { SystemOfRecordIntegrationTypes } from "@cargo-ai/types"; import { z } from "zod"; import type { ApiType, DateToString } from "../types.js"; export declare namespace SystemOfRecordIntegration { type Column = ApiType; type SystemOfRecord = ApiType; type Client = ApiType; type Log = ApiType; type LogStatus = ApiType; type Usage = ApiType; namespace Api { type CreateSystemOfRecordPayload = DateToString<{ kind: string; config?: Record; }>; type CreateSystemOfRecordResult = { systemOfRecord: SystemOfRecord; }; const zodCreateSystemOfRecordErrorReason: z.ZodEnum<{ missingPermissions: "missingPermissions"; systemOfRecordAlreadyUsedByAnotherWorkspace: "systemOfRecordAlreadyUsedByAnotherWorkspace"; }>; type ListSystemOfRecordsResult = { systemOfRecords: SystemOfRecord[]; }; type ListClientsResult = { clients: Client[]; }; type GetSystemOfRecordResult = { systemOfRecord: SystemOfRecord; }; const zodGetSystemOfRecordErrorReason: z.ZodEnum<{ systemOfRecordNotFound: "systemOfRecordNotFound"; }>; type UpdateSystemOfRecordPayload = DateToString<{ uuid: string; config: Record; }>; const zodUpdateSystemOfRecordErrorReason: z.ZodEnum<{ systemOfRecordNotFound: "systemOfRecordNotFound"; }>; type UpdateSystemOfRecordResult = { systemOfRecord: SystemOfRecord; }; type RemoveSystemOfRecordResult = { systemOfRecord: SystemOfRecord; }; const zodRemoveSystemOfRecordErrorReason: z.ZodEnum<{ systemOfRecordNotFound: "systemOfRecordNotFound"; }>; type DownloadPayload = DateToString<{ query: string; }>; type DownloadResult = { urls: string[]; }; type FetchPayload = DateToString<{ query: string; limit?: number; offset?: number; }>; type FetchResult = { records: Record[]; count: number; }; type QueryResult = { rows: Record[]; }; type ListLogsPayload = DateToString<{ statuses?: SystemOfRecordIntegrationTypes.LogStatus[]; query?: string; limit?: number; offset?: number; }>; type ListLogsResult = { logs: Log[]; }; type GetMetricsLogsPayload = DateToString<{ from: string; to: string; }>; type GetMetricsLogsResult = { metrics: Usage[]; }; type MigratePayload = { uuid: string; }; type CutoverPayload = { uuid: string; }; } const systemOfRecordKeys: { all: (workspaceUuid: string) => readonly ["systemOfRecords", string]; get: (workspaceUuid: string, uuid: string) => readonly ["systemOfRecords", string, string]; }; const clientsKeys: { all: () => readonly ["clients"]; list: () => readonly ["clients", "list"]; query: (query: string) => readonly ["clients", string]; getDocumentation: (slug: string) => readonly ["clients", string]; }; const logsKeys: { all: (systemOrRecordUuid: string) => readonly ["logs", string]; list: (systemOrRecordUuid: string, payload: Api.ListLogsPayload) => readonly ["logs", string, { statuses?: SystemOfRecordIntegrationTypes.LogStatus[] | undefined; query?: string | undefined; limit?: number | undefined; offset?: number | undefined; }]; getMetrics: (workspaceUuid: string, payload: Api.GetMetricsLogsPayload) => readonly ["logs", string, "getMetrics", { from: string; to: string; }]; }; } //# sourceMappingURL=systemOfRecordIntegration.d.ts.map