/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 7f717169c02d */ import { clientAnswersCreate } from "../funcs/clientAnswersCreate.js"; import { clientAnswersDelete } from "../funcs/clientAnswersDelete.js"; import { clientAnswersList } from "../funcs/clientAnswersList.js"; import { clientAnswersRetrieve } from "../funcs/clientAnswersRetrieve.js"; import { clientAnswersUpdate } from "../funcs/clientAnswersUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Answers extends ClientSDK { /** * Create Answer * * @remarks * Create a user-generated Answer that contains a question and answer. */ async create( createAnswerRequest: components.CreateAnswerRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersCreate( this, createAnswerRequest, locale, options, )); } /** * Delete Answer * * @remarks * Delete an existing user-generated Answer. */ async delete( deleteAnswerRequest: components.DeleteAnswerRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersDelete( this, deleteAnswerRequest, locale, options, )); } /** * Update Answer * * @remarks * Update an existing user-generated Answer. */ async update( editAnswerRequest: components.EditAnswerRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersUpdate( this, editAnswerRequest, locale, options, )); } /** * Read Answer * * @remarks * Read the details of a particular Answer given its ID. */ async retrieve( getAnswerRequest: components.GetAnswerRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersRetrieve( this, getAnswerRequest, locale, options, )); } /** * List Answers * * @remarks * List Answers created by the current user. * * @deprecated method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. */ async list( listAnswersRequest: components.ListAnswersRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientAnswersList( this, listAnswersRequest, locale, options, )); } }