/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 71997b5f9b62 */ import { clientEntitiesList } from "../funcs/clientEntitiesList.js"; import { clientEntitiesReadPeople } from "../funcs/clientEntitiesReadPeople.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Entities extends ClientSDK { /** * List entities * * @remarks * List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. */ async list( listEntitiesRequest: components.ListEntitiesRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientEntitiesList( this, listEntitiesRequest, locale, options, )); } /** * Read people * * @remarks * Read people details for the given IDs. */ async readPeople( peopleRequest: components.PeopleRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientEntitiesReadPeople( this, peopleRequest, locale, options, )); } }