package com.discord.restapi; import com.discord.api.activity.ActivityActionConfirmation; import com.discord.api.activity.ActivityMetadata; import com.discord.api.application.Application; import com.discord.api.auth.RegisterResponse; import com.discord.api.auth.mfa.DisableMfaRequestBody; import com.discord.api.auth.mfa.DisableMfaResponse; import com.discord.api.auth.mfa.EnableMfaResponse; import com.discord.api.auth.mfa.GetBackupCodesRequestBody; import com.discord.api.auth.mfa.GetBackupCodesResponse; import com.discord.api.bugreport.BugReportConfig; import com.discord.api.channel.Channel; import com.discord.api.commands.ApplicationCommand; import com.discord.api.commands.ApplicationCommandData; import com.discord.api.directory.DirectoryEntry; import com.discord.api.fingerprint.FingerprintResponse; import com.discord.api.friendsuggestions.BulkAddFriendsResponse; import com.discord.api.friendsuggestions.BulkFriendSuggestions; import com.discord.api.friendsuggestions.FriendSuggestion; import com.discord.api.guild.Guild; import com.discord.api.guild.PruneCountResponse; import com.discord.api.guild.VanityUrlResponse; import com.discord.api.guild.preview.GuildPreview; import com.discord.api.guild.welcome.GuildWelcomeScreen; import com.discord.api.guildmember.GuildMember; import com.discord.api.guildmember.PatchGuildMemberBody; import com.discord.api.guildrolesubscription.GuildRoleSubscriptionGroupListing; import com.discord.api.guildrolesubscription.GuildRoleSubscriptionTierListing; import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUsersResponse; import com.discord.api.guildscheduledevent.GuildScheduledEventUser; import com.discord.api.hubs.EmailVerification; import com.discord.api.hubs.EmailVerificationCode; import com.discord.api.hubs.WaitlistSignup; import com.discord.api.message.Message; import com.discord.api.premium.ClaimedOutboundPromotion; import com.discord.api.premium.OutboundPromotion; import com.discord.api.report.MenuAPIResponse; import com.discord.api.report.ReportReason; import com.discord.api.report.ReportSubmissionBody; import com.discord.api.role.GuildRole; import com.discord.api.science.Science; import com.discord.api.stageinstance.RecommendedStageInstance; import com.discord.api.stageinstance.StageInstance; import com.discord.api.sticker.Sticker; import com.discord.api.thread.ThreadListing; import com.discord.api.thread.ThreadMember; import com.discord.api.user.PatchUserBody; import com.discord.api.user.User; import com.discord.api.user.UserSurveyFetchResponse; import com.discord.models.domain.Consents; import com.discord.models.domain.Harvest; import com.discord.models.domain.ModelApplicationStreamPreview; import com.discord.models.domain.ModelAuditLog; import com.discord.models.domain.ModelBan; import com.discord.models.domain.ModelCall; import com.discord.models.domain.ModelChannelFollowerStatsDto; import com.discord.models.domain.ModelConnectedAccount; import com.discord.models.domain.ModelConnectionAccessToken; import com.discord.models.domain.ModelConnectionState; import com.discord.models.domain.ModelEntitlement; import com.discord.models.domain.ModelGift; import com.discord.models.domain.ModelGuildIntegration; import com.discord.models.domain.ModelGuildTemplate; import com.discord.models.domain.ModelInvite; import com.discord.models.domain.ModelLibraryApplication; import com.discord.models.domain.ModelLocationMetadata; import com.discord.models.domain.ModelMemberVerificationForm; import com.discord.models.domain.ModelMemberVerificationFormResponse; import com.discord.models.domain.ModelNotificationSettings; import com.discord.models.domain.ModelOAuth2Token; import com.discord.models.domain.ModelPhoneVerificationToken; import com.discord.models.domain.ModelPremiumGuildSubscription; import com.discord.models.domain.ModelPremiumGuildSubscriptionSlot; import com.discord.models.domain.ModelRemoteAuthHandshake; import com.discord.models.domain.ModelRtcLatencyRegion; import com.discord.models.domain.ModelSearchResponse; import com.discord.models.domain.ModelSubscription; import com.discord.models.domain.ModelTypingResponse; import com.discord.models.domain.ModelUrl; import com.discord.models.domain.ModelUserAffinities; import com.discord.models.domain.ModelUserNote; import com.discord.models.domain.ModelUserProfile; import com.discord.models.domain.ModelUserRelationship; import com.discord.models.domain.ModelUserSettings; import com.discord.models.domain.ModelVoiceRegion; import com.discord.models.domain.PatchPaymentSourceRaw; import com.discord.models.domain.PaymentSourceRaw; import com.discord.models.domain.auth.ModelLoginResult; import com.discord.models.domain.billing.ModelInvoicePreview; import com.discord.models.domain.emoji.ModelEmojiGuild; import com.discord.models.domain.spotify.ModelSpotifyTrack; import com.discord.models.experiments.dto.UnauthenticatedUserExperimentsDto; import com.discord.models.gifpicker.dto.GifDto; import com.discord.models.gifpicker.dto.TrendingGifCategoriesResponseDto; import com.discord.models.sticker.dto.ModelStickerPack; import com.discord.models.sticker.dto.ModelStickerStoreDirectory; import com.discord.restapi.RestAPIParams; import com.discord.utilities.auth.GoogleSmartLockManager; import com.google.gson.JsonObject; import d0.o; import d0.t.g0; import i0.f0.a; import i0.f0.b; import i0.f0.f; import i0.f0.h; import i0.f0.i; import i0.f0.l; import i0.f0.n; import i0.f0.p; import i0.f0.q; import i0.f0.s; import i0.f0.t; import i0.f0.y; import java.util.List; import java.util.Map; import java.util.Set; import kotlin.Unit; import okhttp3.MultipartBody; import okhttp3.ResponseBody; import retrofit2.Response; import rx.Observable; /* compiled from: RestAPIInterface.kt */ public interface RestAPIInterface { public static final Companion Companion = Companion.$$INSTANCE; /* compiled from: RestAPIInterface.kt */ public static final class Companion { public static final /* synthetic */ Companion $$INSTANCE = new Companion(); private static final String X_CONTEXT_PROPERTIES = "X-Context-Properties"; private Companion() { } } /* compiled from: RestAPIInterface.kt */ public static final class DefaultImpls { public static /* synthetic */ Observable getInviteCode$default(RestAPIInterface restAPIInterface, String str, boolean z2, Long l, int i, Object obj) { if (obj == null) { if ((i & 4) != 0) { l = null; } return restAPIInterface.getInviteCode(str, z2, l); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getInviteCode"); } public static /* synthetic */ Observable getMyEntitlements$default(RestAPIInterface restAPIInterface, long j, boolean z2, int i, Object obj) { if (obj == null) { if ((i & 2) != 0) { z2 = true; } return restAPIInterface.getMyEntitlements(j, z2); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getMyEntitlements"); } public static /* synthetic */ Observable getOauth2Authorize$default(RestAPIInterface restAPIInterface, String str, String str2, String str3, String str4, String str5, String str6, String str7, int i, Object obj) { if (obj == null) { return restAPIInterface.getOauth2Authorize(str, str2, (i & 4) != 0 ? null : str3, str4, (i & 16) != 0 ? "consent" : str5, str6, (i & 64) != 0 ? null : str7); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getOauth2Authorize"); } public static /* synthetic */ Observable getOauth2SamsungAuthorize$default(RestAPIInterface restAPIInterface, String str, String str2, String str3, String str4, String str5, String str6, int i, Object obj) { if (obj == null) { if ((i & 4) != 0) { str3 = null; } if ((i & 16) != 0) { str5 = "consent"; } return restAPIInterface.getOauth2SamsungAuthorize(str, str2, str3, str4, str5, str6); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: getOauth2SamsungAuthorize"); } public static /* synthetic */ Observable joinGuild$default(RestAPIInterface restAPIInterface, long j, boolean z2, String str, Long l, RestAPIParams.InviteCode inviteCode, String str2, int i, Object obj) { if (obj == null) { return restAPIInterface.joinGuild(j, z2, str, (i & 8) != 0 ? null : l, (i & 16) != 0 ? null : inviteCode, (i & 32) != 0 ? null : str2); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: joinGuild"); } public static /* synthetic */ Observable postOauth2Authorize$default(RestAPIInterface restAPIInterface, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, Map map, int i, Object obj) { if (obj == null) { return restAPIInterface.postOauth2Authorize(str, str2, (i & 4) != 0 ? null : str3, str4, (i & 16) != 0 ? "consent" : str5, str6, (i & 64) != 0 ? null : str7, (i & 128) != 0 ? null : str8, (i & 256) != 0 ? null : str9, (i & 512) != 0 ? g0.mapOf(o.to("authorize", "true")) : map); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: postOauth2Authorize"); } public static /* synthetic */ Observable report$default(RestAPIInterface restAPIInterface, Long l, Long l2, Long l3, Long l4, int i, Object obj) { if (obj == null) { if ((i & 1) != 0) { l = null; } if ((i & 2) != 0) { l2 = null; } if ((i & 4) != 0) { l3 = null; } if ((i & 8) != 0) { l4 = null; } return restAPIInterface.report(l, l2, l3, l4); } throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: report"); } } /* compiled from: RestAPIInterface.kt */ public interface Dynamic { @f Observable get(@y String str); } /* compiled from: RestAPIInterface.kt */ public interface Files { @f Observable getFile(@y String str); } /* compiled from: RestAPIInterface.kt */ public interface RtcLatency { @f Observable> get(@y String str); } @i0.f0.o("entitlements/gift-codes/{code}/redeem") Observable acceptGift(@s("code") String str); @i0.f0.o("guilds/{guildId}/ack") Observable ackGuild(@s("guildId") long j); @p("channels/{channelId}/pins/{messageId}") Observable addChannelPin(@s("channelId") long j, @s("messageId") long j2); @p("channels/{channelId}/recipients/{recipientId}") Observable addChannelRecipient(@s("channelId") long j, @s("recipientId") long j2); @p("channels/{channelId}/messages/{messageId}/reactions/{reaction}/@me") Observable addReaction(@s("channelId") long j, @s("messageId") long j2, @s(encoded = true, value = "reaction") String str); @p("users/@me/relationships/{userId}") Observable addRelationship(@s("userId") long j, @a RestAPIParams.UserRelationship userRelationship, @i("X-Context-Properties") String str); @i0.f0.o("channels/{channelId}/directory-entry/{guildId}") Observable> addServerToHub(@s("channelId") long j, @s("guildId") long j2, @a RestAPIParams.AddServerBody addServerBody); @f("connections/{connection}/authorize") Observable authorizeConnection(@s("connection") String str); @i0.f0.o("auth/authorize-ip") Observable> authorizeIP(@a RestAPIParams.AuthorizeIP authorizeIP); @p("guilds/{guildId}/bans/{userId}") Observable banGuildMember(@s("guildId") long j, @s("userId") long j2, @a RestAPIParams.BanGuildMember banGuildMember, @i("X-Audit-Log-Reason") String str); @n("guilds/{guildId}/roles") Observable batchUpdateRole(@s("guildId") long j, @a List list); @i0.f0.o("users/@me/relationships/bulk") Observable> bulkAddRelationships(@a RestAPIParams.UserBulkRelationship userBulkRelationship); @f("channels/{channelId}/call") Observable call(@s("channelId") long j); @b("guilds/{guildId}/requests/@me") Observable cancelGuildJoinRequest(@s("guildId") long j); @i0.f0.o("users/@me/guilds/premium/subscription-slots/{subscriptionSlotId}/cancel") Observable cancelSubscriptionSlot(@s("subscriptionSlotId") long j); @n("guilds/{guildId}/members/{userId}") Observable changeGuildMember(@s("guildId") long j, @s("userId") long j2, @a RestAPIParams.GuildMember guildMember); @n("guilds/{guildId}/members/@me/nick") Observable changeGuildNickname(@s("guildId") long j, @a RestAPIParams.Nick nick); @i0.f0.o("outbound-promotions/{promotionId}/claim") Observable claimOutboundPromotion(@s("promotionId") long j); @i0.f0.o("store/skus/{skuId}/purchase") Observable claimSku(@s("skuId") long j, @a RestAPIParams.EmptyBody emptyBody); @p("channels/{channelId}/recipients/{recipientId}") Observable convertDMToGroup(@s("channelId") long j, @s("recipientId") long j2); @i0.f0.o("channels/{channelId}/followers") Observable createChannelFollower(@s("channelId") long j, @a RestAPIParams.ChannelFollowerPost channelFollowerPost); @p("users/@me/connections/contacts/@me") Observable createConnectionContacts(@a RestAPIParams.ConnectedAccountContacts connectedAccountContacts); @i0.f0.o("guilds") Observable> createGuild(@a RestAPIParams.CreateGuild createGuild); @i0.f0.o("guilds/{guildId}/channels") Observable> createGuildChannel(@s("guildId") long j, @a RestAPIParams.CreateGuildChannel createGuildChannel); @i0.f0.o("guilds/templates/{guildTemplateCode}") Observable createGuildFromTemplate(@s("guildTemplateCode") String str, @a RestAPIParams.CreateGuildFromTemplate createGuildFromTemplate); @p("guilds/{guildId}/requests/@me") Observable createGuildJoinRequest(@s("guildId") long j, @a RestAPIParams.MemberVerificationForm memberVerificationForm); @i0.f0.o("guilds/{guildId}/role-subscriptions/group-listings") Observable createGuildRoleSubscriptionGroupListing(@s("guildId") long j, @a RestAPIParams.CreateGuildRoleSubscriptionGroupListing createGuildRoleSubscriptionGroupListing); @i0.f0.o("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings") Observable createGuildRoleSubscriptionTier(@s("guildId") long j, @s("groupListingId") long j2, @a RestAPIParams.CreateGuildRoleSubscriptionTierListing createGuildRoleSubscriptionTierListing); @i0.f0.o("guilds/{guildId}/events") Observable createGuildScheduledEvent(@s("guildId") long j, @a RestAPIParams.CreateGuildScheduledEventBody createGuildScheduledEventBody); @i0.f0.o("users/@me/guild-events/{eventId}") Observable createGuildScheduledEventRsvp(@s("eventId") long j); @i0.f0.o("google-play/purchase-metadata") Observable createPurchaseMetadata(@a RestAPIParams.PurchaseMetadataBody purchaseMetadataBody); @i0.f0.o("guilds/{guildId}/roles") Observable createRole(@s("guildId") long j); @i0.f0.o("channels/{channelId}/threads") Observable createThread(@s("channelId") long j, @t("location") String str, @a RestAPIParams.ThreadCreationSettings threadCreationSettings); @i0.f0.o("channels/{channelId}/messages/{messageId}/threads") Observable createThreadFromMessage(@s("channelId") long j, @s("messageId") long j2, @t("location") String str, @a RestAPIParams.ThreadCreationSettings threadCreationSettings); @i0.f0.o("channels/{channelId}/messages/{messageId}/crosspost") Observable crosspostMessage(@s("channelId") long j, @s("messageId") Long l); @i0.f0.o("users/@me/delete") Observable deleteAccount(@a RestAPIParams.DisableAccount disableAccount); @b("channels/{channelId}") Observable deleteChannel(@s("channelId") long j); @b("channels/{channelId}/pins/{messageId}") Observable deleteChannelPin(@s("channelId") long j, @s("messageId") long j2); @b("users/@me/connections/{connection}/{connectionId}") Observable> deleteConnection(@s("connection") String str, @s("connectionId") String str2); @i0.f0.o("guilds/{guildId}/delete") Observable deleteGuild(@s("guildId") long j, @a RestAPIParams.DeleteGuild deleteGuild); @b("guilds/{guildId}/emojis/{emojiId}") Observable deleteGuildEmoji(@s("guildId") long j, @s("emojiId") long j2); @b("guilds/{guildId}/integrations/{integrationId}") Observable deleteGuildIntegration(@s("guildId") long j, @s("integrationId") long j2); @b("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") Observable deleteGuildRoleSubscriptionTierListing(@s("guildId") long j, @s("groupListingId") long j2, @s("listingId") long j3); @b("guild-events/{eventId}") Observable deleteGuildScheduledEvent(@s("eventId") long j); @b("users/@me/guild-events/{eventId}") Observable deleteGuildScheduledEventRsvp(@s("eventId") long j); @b("channels/{channel_id}/messages/{message_id}") Observable deleteMessage(@s("channel_id") long j, @s("message_id") long j2); @b("oauth2/tokens/{oauthId}") Observable deleteOAuthToken(@s("oauthId") long j); @b("users/@me/billing/payment-sources/{paymentSourceId}") Observable deletePaymentSource(@s("paymentSourceId") String str); @b("channels/{channelId}/permissions/{targetId}") Observable deletePermissionOverwrites(@s("channelId") long j, @s("targetId") long j2); @b("guilds/{guildId}/roles/{roleId}") Observable deleteRole(@s("guildId") long j, @s("roleId") long j2); @b("users/@me/billing/subscriptions/{subscriptionId}") Observable deleteSubscription(@s("subscriptionId") String str); @i0.f0.o("users/@me/disable") Observable disableAccount(@a RestAPIParams.DisableAccount disableAccount); @i0.f0.o("users/@me/mfa/totp/disable") Observable disableMFA(@a DisableMfaRequestBody disableMfaRequestBody); @i0.f0.o("users/@me/mfa/sms/disable") Observable disableMfaSMS(@a RestAPIParams.ActivateMfaSMS activateMfaSMS); @n("guilds/{guildId}/members/{userId}") Observable disconnectGuildMember(@s("guildId") long j, @s("userId") long j2, @a RestAPIParams.GuildMemberDisconnect guildMemberDisconnect); @i0.f0.o("google-play/downgrade-subscription") Observable downgradeSubscription(@a RestAPIParams.DowngradeSubscriptionBody downgradeSubscriptionBody); @n("channels/{channelId}") Observable editGroupDM(@s("channelId") long j, @a RestAPIParams.GroupDM groupDM); @n("channels/{channel_id}/messages/{message_id}") Observable editMessage(@s("channel_id") long j, @s("message_id") long j2, @a RestAPIParams.Message message); @n("channels/{channelId}") Observable editTextChannel(@s("channelId") long j, @a RestAPIParams.TextChannel textChannel); @n("channels/{channelId}") Observable editThread(@s("channelId") long j, @a RestAPIParams.ThreadSettings threadSettings); @n("channels/{channelId}") Observable editTopicalChannel(@s("channelId") long j, @a RestAPIParams.TopicalChannel topicalChannel); @n("channels/{channelId}") Observable editVoiceChannel(@s("channelId") long j, @a RestAPIParams.VoiceChannel voiceChannel); @i0.f0.o("guilds/{guildId}/integrations") Observable enableIntegration(@s("guildId") long j, @a RestAPIParams.EnableIntegration enableIntegration); @i0.f0.o("users/@me/mfa/totp/enable") Observable enableMFA(@a RestAPIParams.EnableMFA enableMFA); @i0.f0.o("users/@me/mfa/sms/enable") Observable enableMfaSMS(@a RestAPIParams.ActivateMfaSMS activateMfaSMS); @b("stage-instances/{channelId}") Observable endStageInstance(@s("channelId") long j); @i0.f0.o("auth/forgot") Observable> forgotPassword(@a RestAPIParams.ForgotPassword forgotPassword); @i0.f0.o("users/@me/entitlements/gift-codes") Observable generateGiftCode(@a RestAPIParams.GenerateGiftCode generateGiftCode); @f("users/{userId}/sessions/{sessionId}/activities/{applicationId}/metadata") Observable getActivityMetadata(@s("userId") long j, @s("sessionId") String str, @s("applicationId") long j2); @f("outbound-promotions") Observable> getAllActiveOutboundPromotions(); @f("outbound-promotions/preview") Observable> getAllPreviewPromotions(); @f("channels/{channelId}/threads/archived/private") Observable getAllPrivateArchivedThreads(@s("channelId") long j, @t("before") String str); @f("channels/{channelId}/threads/archived/public") Observable getAllPublicArchivedThreads(@s("channelId") long j, @t("before") String str); @f("applications/{botId}/commands") Observable> getApplicationCommands(@s("botId") long j); @f("applications/public") Observable> getApplications(@t("application_ids") long j); @f("guilds/{guildId}/audit-logs") Observable getAuditLogs(@s("guildId") long j, @t("limit") int i, @t("before") Long l, @t("user_id") Long l2, @t("action_type") Integer num); @i0.f0.o("users/@me/mfa/codes") Observable getBackupCodes(@a GetBackupCodesRequestBody getBackupCodesRequestBody); @f("guilds/{guildId}/bans") Observable> getBans(@s("guildId") long j); @f("private/bug-reports") Observable getBugReportConfig(); @f("channels/{channelId}/follower-stats") Observable getChannelFollowerStats(@s("channelId") long j); @f("channels/{channelId}/messages") Observable> getChannelMessages(@s("channelId") long j, @t("before") Long l, @t("after") Long l2, @t("limit") Integer num); @f("channels/{channelId}/messages") Observable> getChannelMessagesAround(@s("channelId") long j, @t("limit") int i, @t("around") long j2); @f("channels/{channelId}/pins") Observable> getChannelPins(@s("channelId") long j); @f("users/@me/outbound-promotions/codes") Observable> getClaimedOutboundPromotions(); @f("users/@me/connections/{platformType}/{accountId}/access-token") Observable getConnectionAccessToken(@s("platformType") String str, @s("accountId") String str2); @f("connections/{connection}/callback-continuation/{pinNumber}") Observable getConnectionState(@s("connection") String str, @s("pinNumber") String str2); @f("users/@me/connections") Observable> getConnections(); @f("users/@me/consent") Observable getConsents(); @f("channels/{channelId}/directory-entries") Observable> getDirectoryEntries(@s("channelId") long j); @f("emojis/{emojiId}/guild") Observable getEmojiGuild(@s("emojiId") long j); @f("channels/{channelId}/directory-entries/counts") Observable> getEntryCounts(@s("channelId") long j); @f("experiments") Observable getExperiments(); @f("friend-suggestions") Observable> getFriendSuggestions(); @f("gifs/search") Observable> getGifSearchResults(@t("q") String str, @t("provider") String str2, @t("locale") String str3, @t("media_format") String str4, @t("limit") int i); @f("gifs/suggest") Observable> getGifSuggestedSearchTerms(@t("provider") String str, @t("q") String str2, @t("locale") String str3, @t("limit") int i); @f("gifs/trending-search") Observable> getGifTrendingSearchTerms(@t("provider") String str, @t("locale") String str2, @t("limit") int i); @f("users/@me/entitlements/gifts") Observable> getGifts(); @f("guilds/{guildId}/emojis") Observable> getGuildEmojis(@s("guildId") long j); @f("guilds/{guildId}/integrations") Observable> getGuildIntegrations(@s("guildId") long j); @f("guilds/{guildId}/invites") Observable> getGuildInvites(@s("guildId") long j); @f("guilds/{guildId}/member-verification") Observable getGuildMemberVerificationForm(@s("guildId") long j); @f("guilds/{guildId}/preview") Observable getGuildPreview(@s("guildId") long j); @f("guilds/{guildId}/roles/{roleId}/member-ids") Observable> getGuildRoleMemberIds(@s("guildId") long j, @s("roleId") long j2); @f("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}") Observable getGuildRoleSubscriptionGroupListing(@s("guildId") long j, @s("groupListingId") long j2); @f("guilds/{guildId}/role-subscriptions/group-listings") Observable> getGuildRoleSubscriptionGroupListings(@s("guildId") long j); @f("guild-events/{eventId}") Observable getGuildScheduledEvent(@s("eventId") long j); @f("guild-events/{eventId}/users") Observable getGuildScheduledEventUsers(@s("eventId") long j, @t("limit") int i, @t("with_member") boolean z2); @f("guilds/{guildId}/events") Observable> getGuildScheduledEvents(@s("guildId") long j, @t("with_user_count") boolean z2); @f("guilds/templates/{guildTemplateCode}") Observable getGuildTemplateCode(@s("guildTemplateCode") String str); @f("guilds/{guildId}/regions") Observable> getGuildVoiceRegions(@s("guildId") long j); @f("guilds/{guildId}/welcome-screen") Observable getGuildWelcomeScreen(@s("guildId") long j); @f("users/@me/harvest") Observable getHarvestStatus(); @f("channels/{channelId}/messages/{messageId}/interaction-data") Observable getInteractionData(@s("channelId") long j, @s("messageId") long j2); @f("invites/{code}") Observable> getInviteCode(@s("code") String str, @t("with_counts") boolean z2, @t("guild_scheduled_event_id") Long l); @i0.f0.o("users/@me/billing/invoices/preview") Observable getInvoicePreview(@a RestAPIParams.InvoicePreviewBody invoicePreviewBody); @f("users/@me/library") Observable> getLibrary(); @f("auth/location-metadata") Observable getLocationMetadata(); @f("users/@me/mentions") Observable> getMentions(@t("limit") int i, @t("roles") boolean z2, @t("everyone") boolean z3, @t("guild_id") Long l, @t("before") Long l2); @f("users/@me/applications/{applicationId}/entitlements") Observable> getMyEntitlements(@s("applicationId") long j, @t("exclude_consumed") boolean z2); @f("channels/{channelId}/users/@me/threads/archived/private") Observable getMyPrivateArchivedThreads(@s("channelId") long j, @t("before") Long l); @f("oauth2/tokens") Observable> getOAuthTokens(); @f("oauth2/authorize") Observable getOauth2Authorize(@t("client_id") String str, @t("state") String str2, @t("response_type") String str3, @t("redirect_uri") String str4, @t("prompt") String str5, @t("scope") String str6, @t("permissions") String str7); @f("oauth2/samsung/authorize") Observable getOauth2SamsungAuthorize(@t("client_id") String str, @t("state") String str2, @t("response_type") String str3, @t("redirect_uri") String str4, @t("prompt") String str5, @t("scope") String str6); @f("users/@me/billing/payment-sources") Observable> getPaymentSources(); @f("store/price-tiers") Observable> getPriceTiers(@t("price_tier_type") int i); @f("guilds/{guildId}/prune") Observable getPruneCount(@s("guildId") long j, @t("days") int i); @f("channels/{channelId}/messages/{messageId}/reactions/{emoji}") Observable> getReactionUsers(@s("channelId") long j, @s("messageId") long j2, @s(encoded = true, value = "emoji") String str, @t("limit") Integer num); @f("stage-instances") Observable>> getRecommendedStageInstances(); @f("users/{userId}/relationships") Observable> getRelationships(@s("userId") long j); @f("reporting/menu/{reportType}") Observable getReportMenu(@s("reportType") String str); @f("tracks/{id}") Observable getSpotifyTrack(@s("id") String str); @f("stage-instances/extra") Observable> getStageInstancesForChannels(@t("channel_ids") Set set); @f("stickers/{stickerId}") Observable getSticker(@s("stickerId") long j); @f("stickers/{stickerId}/guild") Observable getStickerGuild(@s("stickerId") long j); @f("sticker-packs/{packId}") Observable getStickerPack(@s("packId") long j); @f("sticker-packs") Observable getStickerPacks(); @f("streams/{streamKey}/preview") Observable getStreamPreview(@s("streamKey") String str, @t("version") long j); @f("users/@me/guilds/premium/subscription-slots") Observable> getSubscriptionSlots(); @f("users/@me/billing/subscriptions") Observable> getSubscriptions(); @f("gifs/trending") Observable getTrendingGifCategories(@t("provider") String str, @t("locale") String str2, @t("media_format") String str3); @f("gifs/trending-gifs") Observable> getTrendingGifCategory(@t("provider") String str, @t("locale") String str2, @t("media_format") String str3, @t("limit") int i); @f("users/@me/affinities/users") Observable getUserAffinities(); @f("users/@me/guilds/{guildId}/events/users") Observable> getUserGuildScheduledEvents(@s("guildId") long j); @f("users/@me/join-request-guilds") Observable> getUserJoinRequestGuilds(); @f("users/@me/notes/{userId}") Observable getUserNote(@s("userId") long j); @f("users/@me/survey") Observable> getUserSurvey(); @f("guilds/{guildId}/vanity-url") Observable getVanityUrl(@s("guildId") long j); @b("friend-suggestions/{userId}") Observable ignoreFriendSuggestion(@s("userId") long j); @p("guilds/{guildId}/members/@me") Observable joinGuild(@s("guildId") long j, @t("lurker") boolean z2, @t("session_id") String str, @t("directory_channel_id") Long l, @a RestAPIParams.InviteCode inviteCode, @i("X-Context-Properties") String str2); @i0.f0.o("integrations/{integrationId}/join") Observable joinGuildFromIntegration(@s("integrationId") String str); @i0.f0.o("hub-waitlist/signup") Observable joinHubWaitlist(@a RestAPIParams.HubWaitlist hubWaitlist); @i0.f0.o("channels/{channelId}/thread-members/@me") Observable joinThread(@s("channelId") long j, @t("location") String str, @a RestAPIParams.EmptyBody emptyBody); @b("guilds/{guildId}/members/{userId}") Observable kickGuildMember(@s("guildId") long j, @s("userId") long j2, @i("X-Audit-Log-Reason") String str); @b("users/@me/guilds/{guildId}") Observable leaveGuild(@s("guildId") long j); @h(hasBody = GoogleSmartLockManager.SET_DISCORD_ACCOUNT_DETAILS, method = "DELETE", path = "users/@me/guilds/{guildId}") Observable leaveGuild(@s("guildId") long j, @a RestAPIParams.LeaveGuildBody leaveGuildBody); @b("channels/{channelId}/thread-members/@me") Observable leaveThread(@s("channelId") long j, @t("location") String str); @i0.f0.o("auth/logout") Observable> logout(@a RestAPIParams.UserDevices userDevices); @n("channels/{channelId}/directory-entry/{guildId}") Observable modifyServerInHub(@s("channelId") long j, @s("guildId") long j2, @a RestAPIParams.AddServerBody addServerBody); @n("guilds/{guildId}/emojis/{emojiId}") Observable patchGuildEmoji(@s("guildId") long j, @s("emojiId") long j2, @a RestAPIParams.PatchGuildEmoji patchGuildEmoji); @n("users/@me") Observable patchUser(@a PatchUserBody patchUserBody); @n("users/@me") Observable patchUser(@a RestAPIParams.UserInfo userInfo); @i0.f0.o("phone-verifications/resend") Observable phoneVerificationsResend(@a RestAPIParams.VerificationCodeResend verificationCodeResend); @i0.f0.o("phone-verifications/verify") Observable> phoneVerificationsVerify(@a RestAPIParams.VerificationCode verificationCode); @i0.f0.o("auth/fingerprint") Observable postAuthFingerprint(@a RestAPIParams.EmptyBody emptyBody); @i0.f0.o("auth/login") Observable> postAuthLogin(@a RestAPIParams.AuthLogin authLogin); @i0.f0.o("auth/register") Observable> postAuthRegister(@a RestAPIParams.AuthRegister authRegister); @i0.f0.o("auth/register/phone") Observable> postAuthRegisterPhone(@a RestAPIParams.AuthRegisterPhone authRegisterPhone); @i0.f0.o("auth/verify/resend") Observable> postAuthVerifyResend(@a RestAPIParams.EmptyBody emptyBody); @i0.f0.o("channels/{channelId}/invites") Observable postChannelInvite(@s("channelId") long j, @a RestAPIParams.Invite invite); @i0.f0.o("channels/{channelId}/messages/{messageId}/ack") Observable postChannelMessagesAck(@s("channelId") long j, @s("messageId") Long l, @a RestAPIParams.ChannelMessagesAck channelMessagesAck); @i0.f0.o("guilds/{guildId}/emojis") Observable postGuildEmoji(@s("guildId") long j, @a RestAPIParams.PostGuildEmoji postGuildEmoji); @i0.f0.o("invites/{code}") Observable postInviteCode(@s("code") String str, @a RestAPIParams.InviteCode inviteCode, @i("X-Context-Properties") String str2); @i0.f0.o("auth/mfa/totp") Observable> postMFACode(@a RestAPIParams.MFALogin mFALogin); @i0.f0.o("oauth2/authorize") Observable postOauth2Authorize(@t("client_id") String str, @t("state") String str2, @t("response_type") String str3, @t("redirect_uri") String str4, @t("prompt") String str5, @t("scope") String str6, @t("permissions") String str7, @t("code_challenge") String str8, @t("code_challenge_method") String str9, @a Map map); @i0.f0.o("users/@me/remote-auth/cancel") Observable postRemoteAuthCancel(@a RestAPIParams.RemoteAuthCancel remoteAuthCancel); @i0.f0.o("users/@me/remote-auth/finish") Observable postRemoteAuthFinish(@a RestAPIParams.RemoteAuthFinish remoteAuthFinish); @i0.f0.o("users/@me/remote-auth") Observable postRemoteAuthInitialize(@a RestAPIParams.RemoteAuthInitialize remoteAuthInitialize); @i0.f0.o("streams/{streamKey}/preview") Observable postStreamPreview(@s("streamKey") String str, @a RestAPIParams.Thumbnail thumbnail); @i0.f0.o("guilds/{guildId}/prune") Observable pruneMembers(@s("guildId") long j, @a RestAPIParams.PruneGuild pruneGuild); @b("channels/{channelId}/messages/{messageId}/reactions") Observable removeAllReactions(@s("channelId") long j, @s("messageId") long j2); @b("channels/{channelId}/recipients/{recipientId}") Observable removeChannelRecipient(@s("channelId") long j, @s("recipientId") long j2); @b("channels/{channelId}/messages/{messageId}/reactions/{reaction}/{userId}") Observable removeReaction(@s("channelId") long j, @s("messageId") long j2, @s(encoded = true, value = "reaction") String str, @s("userId") long j3); @b("users/@me/relationships/{userId}") Observable removeRelationship(@s("userId") long j, @i("X-Context-Properties") String str); @b("channels/{channelId}/messages/{messageId}/reactions/{reaction}/@me") Observable removeSelfReaction(@s("channelId") long j, @s("messageId") long j2, @s(encoded = true, value = "reaction") String str); @b("channels/{channelId}/directory-entry/{guildId}") Observable> removeServerFromHub(@s("channelId") long j, @s("guildId") long j2); @n("guilds/{guildId}/channels") Observable reorderChannels(@s("guildId") long j, @a List list); @i0.f0.o("report") Observable report(@a RestAPIParams.Report report); @f("report") Observable> report(@t("channel_id") Long l, @t("guild_id") Long l2, @t("message_id") Long l3, @t("user_id") Long l4); @i0.f0.o("users/@me/harvest") Observable requestHarvest(); @f("entitlements/gift-codes/{code}") Observable resolveGiftCode(@s("code") String str, @t("with_application") boolean z2, @t("with_subscription_plan") boolean z3); @f("users/@me/entitlements/gift-codes") Observable> resolveSkuIdGift(@t("sku_id") long j, @t("subscription_plan_id") Long l); @b("users/@me/entitlements/gift-codes/{code}") Observable revokeGiftCode(@s("code") String str); @b("invites/{inviteCode}") Observable revokeInvite(@s("inviteCode") String str); @i0.f0.o("channels/{channelId}/call/ring") Observable ring(@s("channelId") long j, @a RestAPIParams.Ring ring, @i("X-Context-Properties") String str); @i0.f0.o("science") Observable science(@a Science science); @f("channels/{channelId}/messages/search") Observable searchChannelMessages(@s("channelId") long j, @t("max_id") Long l, @t("author_id") List list, @t("mentions") List list2, @t("has") List list3, @t("content") List list4, @t("attempts") Integer num, @t("include_nsfw") Boolean bool); @f("guilds/{guildId}/messages/search") Observable searchGuildMessages(@s("guildId") long j, @t("max_id") Long l, @t("author_id") List list, @t("mentions") List list2, @t("channel_id") List list3, @t("has") List list4, @t("content") List list5, @t("attempts") Integer num, @t("include_nsfw") Boolean bool); @f("channels/{channelId}/directory-entries/search") Observable> searchServers(@s("channelId") long j, @t("query") String str); @i0.f0.o("interactions") Observable sendApplicationCommand(@a RestAPIParams.ApplicationCommand applicationCommand); @i0.f0.o("private/bug-reports") @l Observable sendBugReport(@q("name") String str, @q("description") String str2, @q("priority") int i, @q("asana_inbox_id") Long l, @q MultipartBody.Part part); @i0.f0.o("interactions") Observable sendComponentInteraction(@a RestAPIParams.ComponentInteraction componentInteraction); @i0.f0.o("channels/{channelId}/greet") Observable sendGreetMessage(@s("channelId") long j, @a RestAPIParams.GreetMessage greetMessage); @i0.f0.o("channels/{channelId}/messages") @l Observable sendMessage(@s("channelId") long j, @q("payload_json") PayloadJSON payloadJSON, @q MultipartBody.Part[] partArr); @i0.f0.o("channels/{channelId}/messages") Observable sendMessage(@s("channelId") long j, @a RestAPIParams.Message message); @i0.f0.o("users/@me/relationships") Observable sendRelationshipRequest(@a RestAPIParams.UserRelationship.Add add, @i("X-Context-Properties") String str); @i0.f0.o("users/@me/consent") Observable setConsents(@a RestAPIParams.Consents consents); @i0.f0.o("guilds/{guildId}/mfa") Observable setMfaLevel(@s("guildId") long j, @a RestAPIParams.GuildMFA guildMFA); @i0.f0.o("channels/{channelId}/typing") Observable setUserTyping(@s("channelId") long j, @a RestAPIParams.EmptyBody emptyBody); @i0.f0.o("stage-instances") Observable startStageInstance(@a RestAPIParams.StartStageInstanceBody startStageInstanceBody); @i0.f0.o("channels/{channelId}/call/stop-ringing") Observable stopRinging(@s("channelId") long j, @a RestAPIParams.Ring ring, @i("X-Context-Properties") String str); @i0.f0.o("connections/{connection}/callback") Observable submitConnectionState(@s("connection") String str, @a RestAPIParams.ConnectionState connectionState); @i0.f0.o("reporting/{reportType}") Observable submitReport(@s("reportType") String str, @a ReportSubmissionBody reportSubmissionBody); @p("guilds/{guildId}/premium/subscriptions") Observable> subscribeToGuild(@s("guildId") long j, @a RestAPIParams.PremiumGuildSubscribe premiumGuildSubscribe); @i0.f0.o("guilds/{guildId}/integrations/{integrationId}/sync") Observable syncIntegration(@s("guildId") long j, @s("integrationId") long j2); @n("guilds/{guildId}") Observable transferGuildOwnership(@s("guildId") long j, @a RestAPIParams.TransferGuildOwnership transferGuildOwnership); @b("guilds/{guildId}/bans/{userId}") Observable unbanUser(@s("guildId") long j, @s("userId") long j2); @i0.f0.o("users/@me/guilds/premium/subscription-slots/{subscriptionSlotId}/uncancel") Observable uncancelSubscriptionSlot(@s("subscriptionSlotId") long j); @b("guilds/{guildId}/premium/subscriptions/{subscriptionId}") Observable unsubscribeToGuild(@s("guildId") long j, @s("subscriptionId") long j2); @n("users/@me/connections/{connection}/{connectionId}") Observable> updateConnection(@s("connection") String str, @s("connectionId") String str2, @a RestAPIParams.ConnectedAccount connectedAccount); @n("users/@me/connections/{connection}/{connectionId}") Observable> updateConnectionName(@s("connection") String str, @s("connectionId") String str2, @a RestAPIParams.ConnectedAccountNameOnly connectedAccountNameOnly); @n("guilds/{guildId}") Observable updateGuild(@s("guildId") long j, @a RestAPIParams.UpdateGuild updateGuild); @n("guilds/{guildId}/integrations/{integrationId}") Observable updateGuildIntegration(@s("guildId") long j, @s("integrationId") long j2, @a RestAPIParams.GuildIntegration guildIntegration); @n("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}") Observable updateGuildRoleSubscriptionGroupListing(@s("guildId") long j, @s("groupListingId") long j2, @a RestAPIParams.UpdateGuildRoleSubscriptionGroupListing updateGuildRoleSubscriptionGroupListing); @n("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") Observable updateGuildRoleSubscriptionTierListing(@s("guildId") long j, @s("groupListingId") long j2, @s("listingId") long j3, @a RestAPIParams.UpdateGuildRoleSubscriptionTierListing updateGuildRoleSubscriptionTierListing); @n("guild-events/{eventId}") Observable updateGuildScheduledEvent(@s("eventId") long j, @a RestAPIParams.UpdateGuildScheduledEventBody updateGuildScheduledEventBody); @n("guilds/{guildId}/members/@me") Observable updateMeGuildMember(@s("guildId") long j, @a PatchGuildMemberBody patchGuildMemberBody); @n("guilds/{guildId}/voice-states/@me") Observable updateMyVoiceStates(@s("guildId") long j, @a RestAPIParams.ChannelVoiceStateUpdate channelVoiceStateUpdate); @n("users/@me/billing/payment-sources/{paymentSourceId}") Observable updatePaymentSource(@s("paymentSourceId") String str, @a PatchPaymentSourceRaw patchPaymentSourceRaw); @p("channels/{channelId}/permissions/{targetId}") Observable updatePermissionOverwrites(@s("channelId") long j, @s("targetId") long j2, @a RestAPIParams.ChannelPermissionOverwrites channelPermissionOverwrites); @n("users/@me/guilds/@me/settings") Observable updatePrivateChannelSettings(@a RestAPIParams.UserGuildSettings userGuildSettings); @n("guilds/{guildId}/roles/{roleId}") Observable updateRole(@s("guildId") long j, @s("roleId") long j2, @a RestAPIParams.Role role); @n("stage-instances/{channelId}") Observable updateStageInstance(@s("channelId") long j, @a RestAPIParams.UpdateStageInstanceBody updateStageInstanceBody); @n("users/@me/billing/subscriptions/{subscriptionId}") Observable updateSubscription(@s("subscriptionId") String str, @a RestAPIParams.UpdateSubscription updateSubscription); @n("channels/{channelId}/thread-members/@me/settings") Observable updateThreadMemberSettings(@s("channelId") long j, @a RestAPIParams.ThreadMemberSettings threadMemberSettings); @n("users/@me/guilds/{guildId}/settings") Observable updateUserGuildSettings(@s("guildId") long j, @a RestAPIParams.UserGuildSettings userGuildSettings); @p("users/@me/notes/{userId}") Observable updateUserNotes(@s("userId") long j, @a RestAPIParams.UserNoteUpdate userNoteUpdate); @n("users/@me/settings") Observable updateUserSettings(@a RestAPIParams.UserSettings userSettings); @n("users/@me/settings") Observable updateUserSettingsCustomStatus(@a RestAPIParams.UserSettingsCustomStatus userSettingsCustomStatus); @n("guilds/{guildId}/voice-states/{userId}") Observable updateUserVoiceStates(@s("guildId") long j, @s("userId") long j2, @a RestAPIParams.ChannelVoiceStateUpdate channelVoiceStateUpdate); @n("guilds/{guildId}/vanity-url") Observable updateVanityUrl(@s("guildId") long j, @a RestAPIParams.VanityUrl vanityUrl); @p("users/@me/connections/contacts/@me/external-friend-list-entries") Observable> uploadContacts(@a RestAPIParams.UploadContacts uploadContacts); @i0.f0.o("debug-logs/4/{filename}") Observable uploadLog(@s("filename") String str, @a String str2); @i0.f0.o("debug-logs/multi/4") @l Observable uploadLogs(@q MultipartBody.Part[] partArr); @f("users/{userId}/sessions/{sessionId}/activities/{applicationId}/{actionType}") Observable userActivityAction(@s("userId") long j, @s("applicationId") long j2, @s("sessionId") String str, @s("actionType") Integer num, @t("channel_id") Long l, @t("message_id") Long l2); @i0.f0.o("users/@me/phone") Observable userAddPhone(@a RestAPIParams.Phone phone); @i0.f0.o("users/@me/phone/verify") Observable userAddPhoneNoPassword(@a RestAPIParams.VerificationCodeOnly verificationCodeOnly); @n("users/@me/agreements") Observable userAgreements(@a RestAPIParams.UserAgreements userAgreements); @i0.f0.o("users/@me/captcha/verify") Observable userCaptchaVerify(@a RestAPIParams.CaptchaCode captchaCode); @i0.f0.o("users/@me/channels") Observable userCreateChannel(@a RestAPIParams.CreateChannel createChannel); @i0.f0.o("users/@me/devices") Observable userCreateDevice(@a RestAPIParams.UserDevices userDevices); @f("users/{userId}") Observable userGet(@s("userId") long j); @h(hasBody = GoogleSmartLockManager.SET_DISCORD_ACCOUNT_DETAILS, method = "DELETE", path = "users/@me/phone") Observable userPhoneDelete(@a RestAPIParams.DeletePhone deletePhone); @i0.f0.o("users/@me/phone") Observable userPhoneWithToken(@a RestAPIParams.VerificationPhoneCode verificationPhoneCode); @f("users/{userId}/profile") Observable userProfileGet(@s("userId") long j); @i0.f0.o("guilds/automations/email-domain-lookup") Observable> verifyEmail(@a RestAPIParams.VerifyEmail verifyEmail); @i0.f0.o("guilds/automations/email-domain-lookup/verify-code") Observable> verifyEmailCode(@a RestAPIParams.VerifyEmailCode verifyEmailCode); @i0.f0.o("google-play/verify-purchase-token") Observable verifyPurchaseToken(@a RestAPIParams.VerifyPurchaseTokenBody verifyPurchaseTokenBody); }