import type { Arrayable } from "type-fest"; export type ApiType = string; export type Field = string; export type Meta = Record; export type ApiLinks = Record; export interface Relationship { data?: Arrayable<{ id?: string; type?: ApiType; }>; links?: ApiLinks; meta?: Meta; } export type Relationships = Record; export interface Data { attributes?: Record; id?: string; links?: ApiLinks; meta?: Meta; relationships?: Relationships; type?: ApiType; } /** * The JSON:API document shape for use by more specific types. */ export interface JsonApiDocument { data?: Arrayable; included?: Data[]; jsonapi?: { ext?: Record; meta?: Meta; profile?: string; version?: string; }; links?: ApiLinks; meta?: Meta; }