UNPKG

kuzzle-sdk

Version:
46 lines (45 loc) 773 B
import { JSONObject } from "./JSONObject"; /** * Kuzzle API request payload * * @see https://docs.kuzzle.io/core/2/api/payloads/request */ export interface RequestPayload { /** * API controller name */ controller: string; /** * API action name */ action: string; /** * Index name */ index?: string; /** * Collection name */ collection?: string; /** * Document unique identifier */ _id?: string; /** * Authentication token */ jwt?: string; /** * Volatile data */ volatile?: JSONObject; /** * Request body */ body?: JSONObject; /** * Request unique identifier */ requestId?: string; [key: string]: any; }