export type CreateApiApiV1PartnerKycSessionsSessionIdResendArgs = {session_id: string}; export type CreateApiApiV1PartnerKycSessionsSessionIdResendOptions = {baseUrl?: string | undefined, AuthID?: string | undefined, AuthToken?: string | undefined, fetch?: typeof fetch | undefined}; /** * Resend KYC email * * POST /api/v1/partner/kyc-sessions/{session_id}/resend */ export const createApiApiV1PartnerKycSessionsSessionIdResend = async (args: CreateApiApiV1PartnerKycSessionsSessionIdResendArgs, options?: CreateApiApiV1PartnerKycSessionsSessionIdResendOptions) => { const {baseUrl = "https://api.vobiz.ai", fetch: fetchFn = fetch, AuthID, AuthToken} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (AuthID !== undefined) headers.set("X-Auth-ID", AuthID) if (AuthToken !== undefined) headers.set("X-Auth-Token", AuthToken) const url = `${baseUrl.replace(/\/+$/, '')}/api/v1/partner/kyc-sessions/${encodeURIComponent(String(args.session_id))}/resend${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };