package com.strmr.ps.data.remote.api;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.exoplayer.rtsp.RtspHeaders;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.strmr.ps.data.remote.model.torbox.TorBoxCacheResult;
import com.strmr.ps.data.remote.model.torbox.TorBoxDeviceCodeData;
import com.strmr.ps.data.remote.model.torbox.TorBoxDeviceTokenData;
import com.strmr.ps.data.remote.model.torbox.TorBoxDeviceTokenRequest;
import com.strmr.ps.data.remote.model.torbox.TorBoxResponse;
import com.strmr.ps.data.remote.model.torbox.TorBoxTorrentData;
import com.strmr.ps.data.remote.model.torbox.TorBoxTorrentInfo;
import com.strmr.ps.data.remote.model.torbox.TorBoxUserData;
import defpackage.kp6;
import defpackage.pq6;
import java.util.List;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\n\bf\u0018\u0000 42\u00020\u0001:\u00014J \u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u00032\n\b\u0003\u0010\u0005\u001a\u0004\u0018\u00010\u0006H§@¢\u0006\u0002\u0010\u0007J\u001e\u0010\b\u001a\b\u0012\u0004\u0012\u00020\t0\u00032\b\b\u0001\u0010\n\u001a\u00020\u000bH§@¢\u0006\u0002\u0010\fJ\u001e\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000e0\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u0006H§@¢\u0006\u0002\u0010\u0007JX\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00110\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u00062\b\b\u0001\u0010\u0012\u001a\u00020\u00062\n\b\u0003\u0010\u0013\u001a\u0004\u0018\u00010\u00142\n\b\u0003\u0010\u0015\u001a\u0004\u0018\u00010\u00162\n\b\u0003\u0010\u0017\u001a\u0004\u0018\u00010\u00062\n\b\u0003\u0010\u0018\u001a\u0004\u0018\u00010\u0016H§@¢\u0006\u0002\u0010\u0019JH\u0010\u001a\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001c0\u001b0\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u00062\n\b\u0003\u0010\u001d\u001a\u0004\u0018\u00010\u00162\n\b\u0003\u0010\u001e\u001a\u0004\u0018\u00010\u00142\n\b\u0003\u0010\u001f\u001a\u0004\u0018\u00010\u0014H§@¢\u0006\u0002\u0010 J4\u0010!\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u00062\b\b\u0001\u0010\"\u001a\u00020\u00142\n\b\u0003\u0010\u001d\u001a\u0004\u0018\u00010\u0016H§@¢\u0006\u0002\u0010#JH\u0010$\u001a\b\u0012\u0004\u0012\u00020\u00060\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u00062\b\b\u0001\u0010%\u001a\u00020\u00062\b\b\u0001\u0010&\u001a\u00020\u00142\b\b\u0001\u0010'\u001a\u00020\u00142\n\b\u0003\u0010(\u001a\u0004\u0018\u00010\u0016H§@¢\u0006\u0002\u0010)JF\u0010*\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020+0\u001b0\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u00062\b\b\u0001\u0010,\u001a\u00020\u00062\n\b\u0003\u0010-\u001a\u0004\u0018\u00010\u00062\n\b\u0003\u0010.\u001a\u0004\u0018\u00010\u0016H§@¢\u0006\u0002\u0010/J>\u00100\u001a\b\u0012\u0004\u0012\u00020\u00010\u00032\b\b\u0001\u0010\u000f\u001a\u00020\u00062\b\b\u0001\u0010&\u001a\u00020\u00142\b\b\u0001\u00101\u001a\u00020\u00062\n\b\u0003\u00102\u001a\u0004\u0018\u00010\u0016H§@¢\u0006\u0002\u00103¨\u00065"}, d2 = {"Lcom/strmr/ps/data/remote/api/TorBoxApiService;", "", "requestDeviceCode", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxResponse;", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxDeviceCodeData;", "app", "", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "pollForDeviceToken", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxDeviceTokenData;", "request", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxDeviceTokenRequest;", "(Lcom/strmr/ps/data/remote/model/torbox/TorBoxDeviceTokenRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getUser", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxUserData;", "authHeader", "createTorrent", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxTorrentData;", "magnet", "seed", "", "allowZip", "", AppMeasurementSdk.ConditionalUserProperty.NAME, "asQueued", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getTorrentList", "", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxTorrentInfo;", "bypassCache", "offset", "limit", "(Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getTorrent", TtmlNode.ATTR_ID, "(Ljava/lang/String;ILjava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "requestDownload", "token", "torrentId", "fileId", "zipLink", "(Ljava/lang/String;Ljava/lang/String;IILjava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "checkCached", "Lcom/strmr/ps/data/remote/model/torbox/TorBoxCacheResult;", "hashes", "format", "listFiles", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "controlTorrent", "operation", TtmlNode.COMBINE_ALL, "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Companion", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public interface TorBoxApiService {

    @kp6
    public static final String BASE_URL = "https://api.torbox.app/";

    /* JADX INFO: renamed from: Companion, reason: from kotlin metadata */
    @kp6
    public static final Companion INSTANCE = Companion.$$INSTANCE;

    @Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u000e\u0010\u0004\u001a\u00020\u0005X\u0086T¢\u0006\u0002\n\u0000¨\u0006\u0006"}, d2 = {"Lcom/strmr/ps/data/remote/api/TorBoxApiService$Companion;", "", "<init>", "()V", "BASE_URL", "", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Companion {
        static final /* synthetic */ Companion $$INSTANCE = new Companion();

        @kp6
        public static final String BASE_URL = "https://api.torbox.app/";

        private Companion() {
        }
    }

    @Metadata(k = 3, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class DefaultImpls {
        public static /* synthetic */ Object checkCached$default(TorBoxApiService torBoxApiService, String str, String str2, String str3, Boolean bool, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: checkCached");
            }
            if ((i & 4) != 0) {
                str3 = "list";
            }
            String str4 = str3;
            if ((i & 8) != 0) {
                bool = Boolean.FALSE;
            }
            return torBoxApiService.checkCached(str, str2, str4, bool, continuation);
        }

        public static /* synthetic */ Object controlTorrent$default(TorBoxApiService torBoxApiService, String str, int i, String str2, Boolean bool, Continuation continuation, int i2, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: controlTorrent");
            }
            if ((i2 & 8) != 0) {
                bool = Boolean.FALSE;
            }
            return torBoxApiService.controlTorrent(str, i, str2, bool, continuation);
        }

        public static /* synthetic */ Object createTorrent$default(TorBoxApiService torBoxApiService, String str, String str2, Integer num, Boolean bool, String str3, Boolean bool2, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: createTorrent");
            }
            if ((i & 4) != 0) {
                num = 3;
            }
            Integer num2 = num;
            if ((i & 8) != 0) {
                bool = Boolean.FALSE;
            }
            Boolean bool3 = bool;
            if ((i & 16) != 0) {
                str3 = null;
            }
            String str4 = str3;
            if ((i & 32) != 0) {
                bool2 = Boolean.FALSE;
            }
            return torBoxApiService.createTorrent(str, str2, num2, bool3, str4, bool2, continuation);
        }

        public static /* synthetic */ Object getTorrent$default(TorBoxApiService torBoxApiService, String str, int i, Boolean bool, Continuation continuation, int i2, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getTorrent");
            }
            if ((i2 & 4) != 0) {
                bool = null;
            }
            return torBoxApiService.getTorrent(str, i, bool, continuation);
        }

        public static /* synthetic */ Object getTorrentList$default(TorBoxApiService torBoxApiService, String str, Boolean bool, Integer num, Integer num2, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getTorrentList");
            }
            if ((i & 2) != 0) {
                bool = null;
            }
            if ((i & 4) != 0) {
                num = null;
            }
            if ((i & 8) != 0) {
                num2 = null;
            }
            return torBoxApiService.getTorrentList(str, bool, num, num2, continuation);
        }

        public static /* synthetic */ Object requestDeviceCode$default(TorBoxApiService torBoxApiService, String str, Continuation continuation, int i, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: requestDeviceCode");
            }
            if ((i & 1) != 0) {
                str = "STRMR";
            }
            return torBoxApiService.requestDeviceCode(str, continuation);
        }

        public static /* synthetic */ Object requestDownload$default(TorBoxApiService torBoxApiService, String str, String str2, int i, int i2, Boolean bool, Continuation continuation, int i3, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: requestDownload");
            }
            if ((i3 & 16) != 0) {
                bool = Boolean.FALSE;
            }
            return torBoxApiService.requestDownload(str, str2, i, i2, bool, continuation);
        }
    }

    @pq6
    @GET("v1/api/torrents/checkcached")
    Object checkCached(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @kp6 @Query("hash") String str2, @pq6 @Query("format") String str3, @pq6 @Query("list_files") Boolean bool, @kp6 Continuation<? super TorBoxResponse<List<TorBoxCacheResult>>> continuation);

    @pq6
    @FormUrlEncoded
    @POST("v1/api/torrents/controltorrent")
    Object controlTorrent(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Field("torrent_id") int i, @Field("operation") @kp6 String str2, @pq6 @Field(TtmlNode.COMBINE_ALL) Boolean bool, @kp6 Continuation<? super TorBoxResponse<Object>> continuation);

    @pq6
    @FormUrlEncoded
    @POST("v1/api/torrents/createtorrent")
    Object createTorrent(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Field("magnet") @kp6 String str2, @pq6 @Field("seed") Integer num, @pq6 @Field("allow_zip") Boolean bool, @pq6 @Field(AppMeasurementSdk.ConditionalUserProperty.NAME) String str3, @pq6 @Field("as_queued") Boolean bool2, @kp6 Continuation<? super TorBoxResponse<TorBoxTorrentData>> continuation);

    @pq6
    @GET("v1/api/torrents/mylist")
    Object getTorrent(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @Query(TtmlNode.ATTR_ID) int i, @pq6 @Query("bypass_cache") Boolean bool, @kp6 Continuation<? super TorBoxResponse<TorBoxTorrentInfo>> continuation);

    @pq6
    @GET("v1/api/torrents/mylist")
    Object getTorrentList(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @pq6 @Query("bypass_cache") Boolean bool, @pq6 @Query("offset") Integer num, @pq6 @Query("limit") Integer num2, @kp6 Continuation<? super TorBoxResponse<List<TorBoxTorrentInfo>>> continuation);

    @pq6
    @GET("v1/api/user/me")
    Object getUser(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @kp6 Continuation<? super TorBoxResponse<TorBoxUserData>> continuation);

    @pq6
    @POST("v1/api/user/auth/device/token")
    Object pollForDeviceToken(@Body @kp6 TorBoxDeviceTokenRequest torBoxDeviceTokenRequest, @kp6 Continuation<? super TorBoxResponse<TorBoxDeviceTokenData>> continuation);

    @pq6
    @GET("v1/api/user/auth/device/start")
    Object requestDeviceCode(@pq6 @Query("app") String str, @kp6 Continuation<? super TorBoxResponse<TorBoxDeviceCodeData>> continuation);

    @pq6
    @GET("v1/api/torrents/requestdl")
    Object requestDownload(@Header(RtspHeaders.AUTHORIZATION) @kp6 String str, @kp6 @Query("token") String str2, @Query("torrent_id") int i, @Query("file_id") int i2, @pq6 @Query("zip_link") Boolean bool, @kp6 Continuation<? super TorBoxResponse<String>> continuation);
}
