/**
* Generated by orval v7.17.0 🍺
* Do not edit manually.
* superglue AI API
* API for running superglue AI tools
* OpenAPI spec version: 1.0.0
*/
import type { PaginationType } from "./paginationType";
/**
* Pagination configuration (HTTP/HTTPS only, not applicable to Postgres/FTP)
*/
export interface Pagination {
type: PaginationType;
/** Number of items per page. Becomes available as <<(sourceData) => sourceData.limit>> in request templates. */
pageSize?: string;
/** JSONPath to extract next page cursor from response body (e.g. "meta.next_cursor" for {meta:{next_cursor:"abc"}}) */
cursorPath?: string;
/** JavaScript function to determine when to stop pagination. Format: (response, pageInfo) => boolean
- response: Object with {data: ..., headers: ...} - access response body via response.data
- pageInfo: Object with {page: number, offset: number, cursor: any, totalFetched: number}
- Return true to STOP pagination, false to continue
*/
stopCondition?: string;
}