// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as NextAPI from './next'; import * as EventsAPI from '../events'; export class Next extends APIResource { /** * Returns the next page of Events for a previous query against the given Account, * and the URL to request the next page (if there are more results). */ list(params: NextListParams, options?: Core.RequestOptions): Core.APIPromise { const { 'x-prefect-api-version': xPrefectAPIVersion, ...query } = params; return this._client.get('/api/events/filter/next', { query, ...options, headers: { ...(xPrefectAPIVersion != null ? { 'x-prefect-api-version': xPrefectAPIVersion } : undefined), ...options?.headers, }, }); } } export interface NextListParams { /** * Query param: */ 'page-token': string; /** * Header param: */ 'x-prefect-api-version'?: string; } export namespace Next { export import NextListParams = NextAPI.NextListParams; }