/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { queueGetStats } from "../funcs/queue-get-stats.js"; import { queueRetrieve } from "../funcs/queue-retrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; import { Items } from "./items.js"; export class Queue extends ClientSDK { private _items?: Items; get items(): Items { return (this._items ??= new Items(this._options)); } /** * Get a queue * * @remarks * Get a queue */ async retrieve( id: string, projectId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(queueRetrieve( this, id, projectId, options, )); } /** * Get queue statistics * * @remarks * Get detailed statistics about a moderation queue including review times, action counts, and trends */ async getStats( id: string, withinDays?: number | undefined, projectId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(queueGetStats( this, id, withinDays, projectId, options, )); } }