/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 414a84063545 */ import { clientVerificationAddReminder } from "../funcs/clientVerificationAddReminder.js"; import { clientVerificationList } from "../funcs/clientVerificationList.js"; import { clientVerificationVerify } from "../funcs/clientVerificationVerify.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Verification extends ClientSDK { /** * Create verification * * @remarks * Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. */ async addReminder( reminderRequest: components.ReminderRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientVerificationAddReminder( this, reminderRequest, locale, options, )); } /** * List verifications * * @remarks * Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. */ async list( count?: number | undefined, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientVerificationList( this, count, locale, options, )); } /** * Update verification * * @remarks * Verify documents to keep the knowledge up to date within customer corpus. */ async verify( verifyRequest: components.VerifyRequest, locale?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(clientVerificationVerify( this, verifyRequest, locale, options, )); } }