export type DeleteApiRestApiV1AccountsAccountIdSignalFollowersSignalFollowerIdFeaturesFeatureIdArgs = {accountId: string, signalFollowerId: string, featureId: string}; export type DeleteApiRestApiV1AccountsAccountIdSignalFollowersSignalFollowerIdFeaturesFeatureIdOptions = {baseUrl?: string | undefined, ApiKeyAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete a Signal Follower feature * * DELETE /rest/api/v1/accounts/{accountId}/signalFollowers/{signalFollowerId}/features/{featureId} */ export const deleteApiRestApiV1AccountsAccountIdSignalFollowersSignalFollowerIdFeaturesFeatureId = async (args: DeleteApiRestApiV1AccountsAccountIdSignalFollowersSignalFollowerIdFeaturesFeatureIdArgs, options?: DeleteApiRestApiV1AccountsAccountIdSignalFollowersSignalFollowerIdFeaturesFeatureIdOptions) => { const {baseUrl = "https://api.metacopier.io", fetch: fetchFn = fetch, ApiKeyAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (ApiKeyAuth !== undefined) headers.set("X-API-KEY", ApiKeyAuth) const url = `${baseUrl.replace(/\/+$/, '')}/rest/api/v1/accounts/${encodeURIComponent(String(args.accountId))}/signalFollowers/${encodeURIComponent(String(args.signalFollowerId))}/features/${encodeURIComponent(String(args.featureId))}${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 };