export type DeleteApiV21AccountsAccountIdUsersUserIdCloudStorageServiceIdArgs = {accountId: string, serviceId: string, userId: string}; export type DeleteApiV21AccountsAccountIdUsersUserIdCloudStorageServiceIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Deletes the user authentication information for the specified cloud storage provider. * * DELETE /v2.1/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId} */ export const deleteApiV21AccountsAccountIdUsersUserIdCloudStorageServiceId = async (args: DeleteApiV21AccountsAccountIdUsersUserIdCloudStorageServiceIdArgs, options?: DeleteApiV21AccountsAccountIdUsersUserIdCloudStorageServiceIdOptions) => { const {baseUrl = "https://www.docusign.net/restapi", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v2.1/accounts/${encodeURIComponent(String(args.accountId))}/users/${encodeURIComponent(String(args.userId))}/cloud_storage/${encodeURIComponent(String(args.serviceId))}${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 res.blob() };