import type { InlineErrorV2 } from '../errors.types'; export type MetaV2 = { meta: M; errors?: InlineErrorV2[]; }; export type DataV2 = { data: D; errors?: InlineErrorV2[]; }; export type IncludeV2 = { includes?: I; errors?: InlineErrorV2[]; }; export type DataAndMetaV2 = { data: D; meta: M; errors?: InlineErrorV2[]; }; export type DataAndIncludeV2 = { data: D; includes?: I; errors?: InlineErrorV2[]; }; export type DataMetaAndIncludeV2 = { data: D; meta: M; includes?: I; errors?: InlineErrorV2[]; }; export interface SentMeta { /** The time when the request body was returned. */ sent: string; } export interface PaginableCountMetaV2 { result_count: number; next_token?: string; previous_token?: string; }