/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { generatedDocumentsGet } from "../funcs/generatedDocumentsGet.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { GetV1GeneratedDocumentsDocumentTypeRequestUuidRequest, GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse, } from "../models/operations/getv1generateddocumentsdocumenttyperequestuuid.js"; import { unwrapAsync } from "../types/fp.js"; export class GeneratedDocuments extends ClientSDK { /** * Get a generated document * * @remarks * Get a document given the request_uuid. The response will include the generation request's status and urls to the document. A list of urls is returned as certain document types require several urls. * * scope: `generated_documents:read` */ async get( request: GetV1GeneratedDocumentsDocumentTypeRequestUuidRequest, options?: RequestOptions, ): Promise { return unwrapAsync(generatedDocumentsGet( this, request, options, )); } }