/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 781d0a08d255 */ import { eventsGet } from "../funcs/eventsGet.js"; import { eventsList } from "../funcs/eventsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Events extends ClientSDK { /** * Retrieve all events. */ async list( request?: operations.ListEventsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(eventsList( this, request, options, )); } /** * Retrieve an event by ID. */ async get( request: operations.GetEventRequest, options?: RequestOptions, ): Promise { return unwrapAsync(eventsGet( this, request, options, )); } }