From 8a9d685e95c402493974d1869ccb7010cc74d108 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 6 Nov 2024 17:29:33 +0100 Subject: [PATCH] Api dump --- core/api/core.api | 2 ++ core/api/core.klib.api | 3 +++ gateway/api/gateway.api | 47 +++++++++++++++++++++++++++++++++--- gateway/api/gateway.klib.api | 47 ++++++++++++++++++++++++++++++++++-- 4 files changed, 94 insertions(+), 5 deletions(-) diff --git a/core/api/core.api b/core/api/core.api index a038d4920bb..fb061317750 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -2184,6 +2184,7 @@ public abstract class dev/kord/core/builder/kord/BaseKordBuilder { public final fun cache (Lkotlin/jvm/functions/Function2;)V public final fun gateways (Lkotlin/jvm/functions/Function2;)V public final fun getApplicationId ()Ldev/kord/common/entity/Snowflake; + public final fun getCompression ()Ldev/kord/gateway/Compression; public final fun getDefaultDispatcher ()Lkotlinx/coroutines/CoroutineDispatcher; public final fun getDefaultStrategy ()Ldev/kord/core/supplier/EntitySupplyStrategy; public final fun getEventFlow ()Lkotlinx/coroutines/flow/MutableSharedFlow; @@ -2193,6 +2194,7 @@ public abstract class dev/kord/core/builder/kord/BaseKordBuilder { public final fun getToken ()Ljava/lang/String; public final fun requestHandler (Lkotlin/jvm/functions/Function1;)V public final fun setApplicationId (Ldev/kord/common/entity/Snowflake;)V + public final fun setCompression (Ldev/kord/gateway/Compression;)V public final fun setDefaultDispatcher (Lkotlinx/coroutines/CoroutineDispatcher;)V public final fun setDefaultStrategy (Ldev/kord/core/supplier/EntitySupplyStrategy;)V public final fun setEventFlow (Lkotlinx/coroutines/flow/MutableSharedFlow;)V diff --git a/core/api/core.klib.api b/core/api/core.klib.api index 23bc8491c80..7d5ace07109 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -1674,6 +1674,9 @@ abstract class dev.kord.core.builder.kord/BaseKordBuilder { // dev.kord.core.bui final var applicationId // dev.kord.core.builder.kord/BaseKordBuilder.applicationId|{}applicationId[0] final fun (): dev.kord.common.entity/Snowflake? // dev.kord.core.builder.kord/BaseKordBuilder.applicationId.|(){}[0] final fun (dev.kord.common.entity/Snowflake?) // dev.kord.core.builder.kord/BaseKordBuilder.applicationId.|(dev.kord.common.entity.Snowflake?){}[0] + final var compression // dev.kord.core.builder.kord/BaseKordBuilder.compression|{}compression[0] + final fun (): dev.kord.gateway/Compression // dev.kord.core.builder.kord/BaseKordBuilder.compression.|(){}[0] + final fun (dev.kord.gateway/Compression) // dev.kord.core.builder.kord/BaseKordBuilder.compression.|(dev.kord.gateway.Compression){}[0] final var defaultDispatcher // dev.kord.core.builder.kord/BaseKordBuilder.defaultDispatcher|{}defaultDispatcher[0] final fun (): kotlinx.coroutines/CoroutineDispatcher // dev.kord.core.builder.kord/BaseKordBuilder.defaultDispatcher.|(){}[0] final fun (kotlinx.coroutines/CoroutineDispatcher) // dev.kord.core.builder.kord/BaseKordBuilder.defaultDispatcher.|(kotlinx.coroutines.CoroutineDispatcher){}[0] diff --git a/gateway/api/gateway.api b/gateway/api/gateway.api index b73047ebda7..5b7c35693e0 100644 --- a/gateway/api/gateway.api +++ b/gateway/api/gateway.api @@ -219,6 +219,43 @@ public final class dev/kord/gateway/Command$SerializationStrategy : kotlinx/seri public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V } +public abstract interface class dev/kord/gateway/Compression { + public abstract fun getName ()Ljava/lang/String; + public abstract fun newDecompressor ()Ldev/kord/gateway/Decompressor; +} + +public final class dev/kord/gateway/Compression$None : dev/kord/gateway/Compression { + public static final field INSTANCE Ldev/kord/gateway/Compression$None; + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun newDecompressor ()Ldev/kord/gateway/Decompressor; + public fun toString ()Ljava/lang/String; +} + +public final class dev/kord/gateway/Compression$ZLib : dev/kord/gateway/Compression { + public static final field INSTANCE Ldev/kord/gateway/Compression$ZLib; + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun newDecompressor ()Ldev/kord/gateway/Decompressor; + public fun toString ()Ljava/lang/String; +} + +public final class dev/kord/gateway/Compression$Zstd : dev/kord/gateway/Compression { + public static final field INSTANCE Ldev/kord/gateway/Compression$Zstd; + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun newDecompressor ()Ldev/kord/gateway/Decompressor; + public fun toString ()Ljava/lang/String; +} + +public final class dev/kord/gateway/Decompressor$Noop : dev/kord/gateway/Decompressor { + public fun close ()V + public fun decompress (Lio/ktor/websocket/Frame;)Ljava/lang/String; +} + public final class dev/kord/gateway/DefaultGateway : dev/kord/gateway/Gateway { public static final field Companion Ldev/kord/gateway/DefaultGateway$Companion; public fun (Ldev/kord/gateway/DefaultGatewayData;)V @@ -238,6 +275,7 @@ public final class dev/kord/gateway/DefaultGatewayBuilder { public fun ()V public final fun build ()Ldev/kord/gateway/DefaultGateway; public final fun getClient ()Lio/ktor/client/HttpClient; + public final fun getCompression ()Ldev/kord/gateway/Compression; public final fun getDispatcher ()Lkotlinx/coroutines/CoroutineDispatcher; public final fun getEventFlow ()Lkotlinx/coroutines/flow/MutableSharedFlow; public final fun getIdentifyRateLimiter ()Ldev/kord/gateway/ratelimit/IdentifyRateLimiter; @@ -245,6 +283,7 @@ public final class dev/kord/gateway/DefaultGatewayBuilder { public final fun getSendRateLimiter ()Ldev/kord/common/ratelimit/RateLimiter; public final fun getUrl ()Ljava/lang/String; public final fun setClient (Lio/ktor/client/HttpClient;)V + public final fun setCompression (Ldev/kord/gateway/Compression;)V public final fun setDispatcher (Lkotlinx/coroutines/CoroutineDispatcher;)V public final fun setEventFlow (Lkotlinx/coroutines/flow/MutableSharedFlow;)V public final fun setIdentifyRateLimiter (Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;)V @@ -254,7 +293,7 @@ public final class dev/kord/gateway/DefaultGatewayBuilder { } public final class dev/kord/gateway/DefaultGatewayData { - public fun (Ljava/lang/String;Lio/ktor/client/HttpClient;Ldev/kord/gateway/retry/Retry;Ldev/kord/common/ratelimit/RateLimiter;Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;Lkotlinx/coroutines/CoroutineDispatcher;Lkotlinx/coroutines/flow/MutableSharedFlow;)V + public fun (Ljava/lang/String;Lio/ktor/client/HttpClient;Ldev/kord/gateway/retry/Retry;Ldev/kord/common/ratelimit/RateLimiter;Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;Lkotlinx/coroutines/CoroutineDispatcher;Lkotlinx/coroutines/flow/MutableSharedFlow;Ldev/kord/gateway/Compression;)V public final fun component1 ()Ljava/lang/String; public final fun component2 ()Lio/ktor/client/HttpClient; public final fun component3 ()Ldev/kord/gateway/retry/Retry; @@ -262,10 +301,12 @@ public final class dev/kord/gateway/DefaultGatewayData { public final fun component5 ()Ldev/kord/gateway/ratelimit/IdentifyRateLimiter; public final fun component6 ()Lkotlinx/coroutines/CoroutineDispatcher; public final fun component7 ()Lkotlinx/coroutines/flow/MutableSharedFlow; - public final fun copy (Ljava/lang/String;Lio/ktor/client/HttpClient;Ldev/kord/gateway/retry/Retry;Ldev/kord/common/ratelimit/RateLimiter;Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;Lkotlinx/coroutines/CoroutineDispatcher;Lkotlinx/coroutines/flow/MutableSharedFlow;)Ldev/kord/gateway/DefaultGatewayData; - public static synthetic fun copy$default (Ldev/kord/gateway/DefaultGatewayData;Ljava/lang/String;Lio/ktor/client/HttpClient;Ldev/kord/gateway/retry/Retry;Ldev/kord/common/ratelimit/RateLimiter;Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;Lkotlinx/coroutines/CoroutineDispatcher;Lkotlinx/coroutines/flow/MutableSharedFlow;ILjava/lang/Object;)Ldev/kord/gateway/DefaultGatewayData; + public final fun component8 ()Ldev/kord/gateway/Compression; + public final fun copy (Ljava/lang/String;Lio/ktor/client/HttpClient;Ldev/kord/gateway/retry/Retry;Ldev/kord/common/ratelimit/RateLimiter;Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;Lkotlinx/coroutines/CoroutineDispatcher;Lkotlinx/coroutines/flow/MutableSharedFlow;Ldev/kord/gateway/Compression;)Ldev/kord/gateway/DefaultGatewayData; + public static synthetic fun copy$default (Ldev/kord/gateway/DefaultGatewayData;Ljava/lang/String;Lio/ktor/client/HttpClient;Ldev/kord/gateway/retry/Retry;Ldev/kord/common/ratelimit/RateLimiter;Ldev/kord/gateway/ratelimit/IdentifyRateLimiter;Lkotlinx/coroutines/CoroutineDispatcher;Lkotlinx/coroutines/flow/MutableSharedFlow;Ldev/kord/gateway/Compression;ILjava/lang/Object;)Ldev/kord/gateway/DefaultGatewayData; public fun equals (Ljava/lang/Object;)Z public final fun getClient ()Lio/ktor/client/HttpClient; + public final fun getCompression ()Ldev/kord/gateway/Compression; public final fun getDispatcher ()Lkotlinx/coroutines/CoroutineDispatcher; public final fun getEventFlow ()Lkotlinx/coroutines/flow/MutableSharedFlow; public final fun getIdentifyRateLimiter ()Ldev/kord/gateway/ratelimit/IdentifyRateLimiter; diff --git a/gateway/api/gateway.klib.api b/gateway/api/gateway.klib.api index b2e60f175ae..47c5a236a47 100644 --- a/gateway/api/gateway.klib.api +++ b/gateway/api/gateway.klib.api @@ -94,6 +94,43 @@ abstract interface dev.kord.gateway/Gateway : kotlinx.coroutines/CoroutineScope } } +sealed interface dev.kord.gateway/Compression { // dev.kord.gateway/Compression|null[0] + abstract val name // dev.kord.gateway/Compression.name|{}name[0] + abstract fun (): kotlin/String? // dev.kord.gateway/Compression.name.|(){}[0] + + abstract fun newDecompressor(): dev.kord.gateway/Decompressor // dev.kord.gateway/Compression.newDecompressor|newDecompressor(){}[0] + + final object None : dev.kord.gateway/Compression { // dev.kord.gateway/Compression.None|null[0] + final val name // dev.kord.gateway/Compression.None.name|{}name[0] + final fun (): kotlin/String? // dev.kord.gateway/Compression.None.name.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.gateway/Compression.None.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.gateway/Compression.None.hashCode|hashCode(){}[0] + final fun newDecompressor(): dev.kord.gateway/Decompressor // dev.kord.gateway/Compression.None.newDecompressor|newDecompressor(){}[0] + final fun toString(): kotlin/String // dev.kord.gateway/Compression.None.toString|toString(){}[0] + } + + final object ZLib : dev.kord.gateway/Compression { // dev.kord.gateway/Compression.ZLib|null[0] + final val name // dev.kord.gateway/Compression.ZLib.name|{}name[0] + final fun (): kotlin/String // dev.kord.gateway/Compression.ZLib.name.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.gateway/Compression.ZLib.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.gateway/Compression.ZLib.hashCode|hashCode(){}[0] + final fun newDecompressor(): dev.kord.gateway/Decompressor // dev.kord.gateway/Compression.ZLib.newDecompressor|newDecompressor(){}[0] + final fun toString(): kotlin/String // dev.kord.gateway/Compression.ZLib.toString|toString(){}[0] + } + + final object Zstd : dev.kord.gateway/Compression { // dev.kord.gateway/Compression.Zstd|null[0] + final val name // dev.kord.gateway/Compression.Zstd.name|{}name[0] + final fun (): kotlin/String // dev.kord.gateway/Compression.Zstd.name.|(){}[0] + + final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.gateway/Compression.Zstd.equals|equals(kotlin.Any?){}[0] + final fun hashCode(): kotlin/Int // dev.kord.gateway/Compression.Zstd.hashCode|hashCode(){}[0] + final fun newDecompressor(): dev.kord.gateway/Decompressor // dev.kord.gateway/Compression.Zstd.newDecompressor|newDecompressor(){}[0] + final fun toString(): kotlin/String // dev.kord.gateway/Compression.Zstd.toString|toString(){}[0] + } +} + final class dev.kord.gateway.builder/LoginBuilder { // dev.kord.gateway.builder/LoginBuilder|null[0] constructor () // dev.kord.gateway.builder/LoginBuilder.|(){}[0] @@ -405,6 +442,9 @@ final class dev.kord.gateway/DefaultGatewayBuilder { // dev.kord.gateway/Default final var client // dev.kord.gateway/DefaultGatewayBuilder.client|{}client[0] final fun (): io.ktor.client/HttpClient? // dev.kord.gateway/DefaultGatewayBuilder.client.|(){}[0] final fun (io.ktor.client/HttpClient?) // dev.kord.gateway/DefaultGatewayBuilder.client.|(io.ktor.client.HttpClient?){}[0] + final var compression // dev.kord.gateway/DefaultGatewayBuilder.compression|{}compression[0] + final fun (): dev.kord.gateway/Compression // dev.kord.gateway/DefaultGatewayBuilder.compression.|(){}[0] + final fun (dev.kord.gateway/Compression) // dev.kord.gateway/DefaultGatewayBuilder.compression.|(dev.kord.gateway.Compression){}[0] final var dispatcher // dev.kord.gateway/DefaultGatewayBuilder.dispatcher|{}dispatcher[0] final fun (): kotlinx.coroutines/CoroutineDispatcher // dev.kord.gateway/DefaultGatewayBuilder.dispatcher.|(){}[0] final fun (kotlinx.coroutines/CoroutineDispatcher) // dev.kord.gateway/DefaultGatewayBuilder.dispatcher.|(kotlinx.coroutines.CoroutineDispatcher){}[0] @@ -428,10 +468,12 @@ final class dev.kord.gateway/DefaultGatewayBuilder { // dev.kord.gateway/Default } final class dev.kord.gateway/DefaultGatewayData { // dev.kord.gateway/DefaultGatewayData|null[0] - constructor (kotlin/String, io.ktor.client/HttpClient, dev.kord.gateway.retry/Retry, dev.kord.common.ratelimit/RateLimiter, dev.kord.gateway.ratelimit/IdentifyRateLimiter, kotlinx.coroutines/CoroutineDispatcher, kotlinx.coroutines.flow/MutableSharedFlow) // dev.kord.gateway/DefaultGatewayData.|(kotlin.String;io.ktor.client.HttpClient;dev.kord.gateway.retry.Retry;dev.kord.common.ratelimit.RateLimiter;dev.kord.gateway.ratelimit.IdentifyRateLimiter;kotlinx.coroutines.CoroutineDispatcher;kotlinx.coroutines.flow.MutableSharedFlow){}[0] + constructor (kotlin/String, io.ktor.client/HttpClient, dev.kord.gateway.retry/Retry, dev.kord.common.ratelimit/RateLimiter, dev.kord.gateway.ratelimit/IdentifyRateLimiter, kotlinx.coroutines/CoroutineDispatcher, kotlinx.coroutines.flow/MutableSharedFlow, dev.kord.gateway/Compression) // dev.kord.gateway/DefaultGatewayData.|(kotlin.String;io.ktor.client.HttpClient;dev.kord.gateway.retry.Retry;dev.kord.common.ratelimit.RateLimiter;dev.kord.gateway.ratelimit.IdentifyRateLimiter;kotlinx.coroutines.CoroutineDispatcher;kotlinx.coroutines.flow.MutableSharedFlow;dev.kord.gateway.Compression){}[0] final val client // dev.kord.gateway/DefaultGatewayData.client|{}client[0] final fun (): io.ktor.client/HttpClient // dev.kord.gateway/DefaultGatewayData.client.|(){}[0] + final val compression // dev.kord.gateway/DefaultGatewayData.compression|{}compression[0] + final fun (): dev.kord.gateway/Compression // dev.kord.gateway/DefaultGatewayData.compression.|(){}[0] final val dispatcher // dev.kord.gateway/DefaultGatewayData.dispatcher|{}dispatcher[0] final fun (): kotlinx.coroutines/CoroutineDispatcher // dev.kord.gateway/DefaultGatewayData.dispatcher.|(){}[0] final val eventFlow // dev.kord.gateway/DefaultGatewayData.eventFlow|{}eventFlow[0] @@ -452,7 +494,8 @@ final class dev.kord.gateway/DefaultGatewayData { // dev.kord.gateway/DefaultGat final fun component5(): dev.kord.gateway.ratelimit/IdentifyRateLimiter // dev.kord.gateway/DefaultGatewayData.component5|component5(){}[0] final fun component6(): kotlinx.coroutines/CoroutineDispatcher // dev.kord.gateway/DefaultGatewayData.component6|component6(){}[0] final fun component7(): kotlinx.coroutines.flow/MutableSharedFlow // dev.kord.gateway/DefaultGatewayData.component7|component7(){}[0] - final fun copy(kotlin/String = ..., io.ktor.client/HttpClient = ..., dev.kord.gateway.retry/Retry = ..., dev.kord.common.ratelimit/RateLimiter = ..., dev.kord.gateway.ratelimit/IdentifyRateLimiter = ..., kotlinx.coroutines/CoroutineDispatcher = ..., kotlinx.coroutines.flow/MutableSharedFlow = ...): dev.kord.gateway/DefaultGatewayData // dev.kord.gateway/DefaultGatewayData.copy|copy(kotlin.String;io.ktor.client.HttpClient;dev.kord.gateway.retry.Retry;dev.kord.common.ratelimit.RateLimiter;dev.kord.gateway.ratelimit.IdentifyRateLimiter;kotlinx.coroutines.CoroutineDispatcher;kotlinx.coroutines.flow.MutableSharedFlow){}[0] + final fun component8(): dev.kord.gateway/Compression // dev.kord.gateway/DefaultGatewayData.component8|component8(){}[0] + final fun copy(kotlin/String = ..., io.ktor.client/HttpClient = ..., dev.kord.gateway.retry/Retry = ..., dev.kord.common.ratelimit/RateLimiter = ..., dev.kord.gateway.ratelimit/IdentifyRateLimiter = ..., kotlinx.coroutines/CoroutineDispatcher = ..., kotlinx.coroutines.flow/MutableSharedFlow = ..., dev.kord.gateway/Compression = ...): dev.kord.gateway/DefaultGatewayData // dev.kord.gateway/DefaultGatewayData.copy|copy(kotlin.String;io.ktor.client.HttpClient;dev.kord.gateway.retry.Retry;dev.kord.common.ratelimit.RateLimiter;dev.kord.gateway.ratelimit.IdentifyRateLimiter;kotlinx.coroutines.CoroutineDispatcher;kotlinx.coroutines.flow.MutableSharedFlow;dev.kord.gateway.Compression){}[0] final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.gateway/DefaultGatewayData.equals|equals(kotlin.Any?){}[0] final fun hashCode(): kotlin/Int // dev.kord.gateway/DefaultGatewayData.hashCode|hashCode(){}[0] final fun toString(): kotlin/String // dev.kord.gateway/DefaultGatewayData.toString|toString(){}[0]