export type DeleteApiPublicV2NotaryNotarizationRequestsSessionRequestIdArgs = {session_request_id: string}; export type DeleteApiPublicV2NotaryNotarizationRequestsSessionRequestIdOptions = {baseUrl?: string | undefined, apiKey?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete Notarization Request * * DELETE /public/v2/notary/notarization-requests/{session_request_id} * * Also accepts auth: oauth2 */ export const deleteApiPublicV2NotaryNotarizationRequestsSessionRequestId = async (args: DeleteApiPublicV2NotaryNotarizationRequestsSessionRequestIdArgs, options?: DeleteApiPublicV2NotaryNotarizationRequestsSessionRequestIdOptions) => { const {baseUrl = "https://api.pandadoc.com", fetch: fetchFn = fetch, apiKey} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (apiKey !== undefined) headers.set("Authorization", apiKey) const url = `${baseUrl.replace(/\/+$/, '')}/public/v2/notary/notarization-requests/${encodeURIComponent(String(args.session_request_id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };