/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { statsVisitorsGet } from "../funcs/statsVisitorsGet.js"; import { statsVisitorsList } from "../funcs/statsVisitorsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class StatsVisitors extends ClientSDK { /** * List Visitors * * @remarks * This endpoint provides a list of visitors that have watched videos in your account. * * * ## Requires api token with one of the following permissions * ``` * Read detailed stats * ``` * */ async list( request?: operations.GetStatsVisitorsRequest | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(statsVisitorsList( this, request, options, )); } /** * Show Visitor * * @remarks * This endpoint provides detailed information about a specific visitor. * * * ## Requires api token with one of the following permissions * ``` * Read detailed stats * ``` * */ async get( request: operations.GetStatsVisitorsVisitorKeyRequest, options?: RequestOptions, ): Promise { return unwrapAsync(statsVisitorsGet( this, request, options, )); } }