type SavedQuerySource =
| {
readonly kind: "csv";
readonly sourceId: string;
readonly locator?: string;
readonly columns: readonly QueryColumnSpec[];
readonly delimiter?: number;
readonly headers?: boolean;
readonly emptyIsNull?: boolean;
}
| {
readonly kind: "json";
readonly sourceId: string;
readonly locator?: string;
readonly columns: readonly QueryColumnSpec[];
// … 7 more lines — see the API reference
}typeSavedQuerySource=|{readonlykind:"csv";readonlysourceId:string;readonlylocator?:string;readonlycolumns:readonlyQueryColumnSpec[];readonlydelimiter?:number;readonlyheaders?:boolean;readonlyemptyIsNull?:boolean;}|{readonlykind:"json";readonlysourceId:string;readonlylocator?:string;readonlycolumns:readonlyQueryColumnSpec[];// … 7 more lines — see the API reference}typeSavedQuerySource=|{readonlykind:"csv";readonlysourceId:string;readonlylocator?:string;readonlycolumns:readonlyQueryColumnSpec[];readonlydelimiter?:number;readonlyheaders?:boolean;readonlyemptyIsNull?:boolean;}|{readonlykind:"json";readonlysourceId:string;readonlylocator?:string;readonlycolumns:readonlyQueryColumnSpec[];readonlypath?:readonlystring[];}|{readonlykind:"host";// … 3 more lines — see the API reference}Where a saved query reads its data. The host's fetch callback resolves sourceId to bytes or batches and applies any credentials itself. A locator is a public, credential-free address such as an https URL; it never holds tokens, signed parameters or passwords.API reference