Package-level declarations

Types

Link copied to clipboard
class ApiException(val code: Enum<*>, val status: HttpStatusCode = HttpStatusCode.BadRequest, message: String? = null) : RuntimeException
Link copied to clipboard
data class BuildInfo(val version: String?, val commit: String?, val time: Instant?)
Link copied to clipboard
Link copied to clipboard
@Serializable
class CurrentUserAnswer<T>(val user: T?, val sessionSeconds: Long? = null, val permissions: List<String>? = null)
Link copied to clipboard
typealias Decimal = @Serializable(with = DecimalSerializer::class) BigDecimal
Link copied to clipboard
object DecimalSerializer : KSerializer<BigDecimal>
Link copied to clipboard
enum class DevMode : Enum<DevMode>
Link copied to clipboard
class Email(val to: List<String>, val subject: String, val text: String? = null, val html: String? = null, val from: String? = null, val cc: List<String> = emptyList(), val bcc: List<String> = emptyList(), val replyTo: String? = null)
Link copied to clipboard
@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class EmptyAsNull
Link copied to clipboard
class EnvironmentException(message: String, val variables: List<String>) : IllegalStateException
Link copied to clipboard
Link copied to clipboard
@Serializable
data class FieldCheckAnswer(val message: String? = null)
Link copied to clipboard
Link copied to clipboard
@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Lowercase
Link copied to clipboard
fun interface Mailer
Link copied to clipboard
enum class OtherOwner : Enum<OtherOwner>
Link copied to clipboard
@Serializable
data class Page<T>(val items: List<T>, val next: String? = null, val total: Long? = null)
Link copied to clipboard
data class PageRequest(val cursor: String?, val limit: Int, val wantsTotal: Boolean = false)
Link copied to clipboard
@Serializable(with = PatchSerializer::class)
class Patch<T : Any>
Link copied to clipboard
class PatchSerializer<T : Any>(serializer: KSerializer<T>) : KSerializer<Patch<T>>
Link copied to clipboard
@Serializable
class PreferencesAnswer<T>(val preferences: T, val signedIn: Boolean)
Link copied to clipboard
Link copied to clipboard
class ResourceScope<T : Any, ID : Any>
Link copied to clipboard
enum class RouteKind : Enum<RouteKind>
Link copied to clipboard
Link copied to clipboard
object Rule
Link copied to clipboard
@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Sensitive
Link copied to clipboard
@Serializable
data class Stamps(val createdAt: Instant, val updatedAt: Instant, val createdBy: String? = null, val updatedBy: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface SvelteSource
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
enum class ToastKind : Enum<ToastKind>
Link copied to clipboard
@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Trim
Link copied to clipboard
class TypedCookie<T : Any>
Link copied to clipboard
class UploadedFile(val field: String, val fileName: String?, val contentType: String, val bytes: ByteArray)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class UploadRuleException(val code: String, message: String, val status: HttpStatusCode, val file: String?) : RuntimeException
Link copied to clipboard
interface Validated
Link copied to clipboard
Link copied to clipboard
class Validator
Link copied to clipboard
@Serializable
data class VersionConflict<T>(val message: String, val code: String, val current: T)
Link copied to clipboard
class WebVital

Properties

Link copied to clipboard
val Application.buildInfo: BuildInfo
Link copied to clipboard
val ApplicationCall.cookieConsent: Set<String>?
Link copied to clipboard
const val DEFAULT_PAGE_LIMIT: Int = 50
Link copied to clipboard
const val LARGEST_PAGE_LIMIT: Int = 100
Link copied to clipboard
val Application.mailer: Mailer
Link copied to clipboard
val Svelte: ApplicationPlugin<SvelteConfig>
Link copied to clipboard
val ApplicationCall.svelteLocale: String
Link copied to clipboard
val Application.svelteMetrics: SvelteMetrics
Link copied to clipboard
val ApplicationCall.svelteTheme: String
Link copied to clipboard
val ApplicationCall.timeZone: ZoneId
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun ApplicationCall.can(permission: Enum<*>): Boolean
Link copied to clipboard
fun ApplicationCall.clearCookie(cookie: TypedCookie<*>)
Link copied to clipboard
fun ApplicationCall.consentsTo(category: String): Boolean
Link copied to clipboard
fun ApplicationCall.currentUserChanged()
Link copied to clipboard
fun <T> environment(source: (String) -> String? = System::getenv, declare: EnvironmentScope.() -> T): T
Link copied to clipboard
fun Route.fieldCheck(path: String, check: suspend RoutingContext.(String) -> String?): Route
Link copied to clipboard
inline fun <reified T : Any> Route.getPage(path: String = "", defaultLimit: Int = DEFAULT_PAGE_LIMIT, maxLimit: Int = LARGEST_PAGE_LIMIT, noinline body: suspend RoutingContext.(PageRequest) -> Page<T>): Route
Link copied to clipboard
inline fun <reified T : Any> Route.includes(configure: SvelteIncludesConfig<T>.() -> Unit): Route
Link copied to clipboard
fun ApplicationCall.navigateTo(path: String)
Link copied to clipboard
fun Route.ownerChecked(): Route
Link copied to clipboard
@JvmName(name = "pageByIntRequest")
fun <T> Query.pageBy(column: Column<Int>, request: PageRequest, descending: Boolean = true, map: (ResultRow) -> T): Page<T>
@JvmName(name = "pageByLongRequest")
fun <T> Query.pageBy(column: Column<Long>, request: PageRequest, descending: Boolean = true, map: (ResultRow) -> T): Page<T>
@JvmName(name = "pageByInt")
fun <T> Query.pageBy(column: Column<Int>, cursor: String?, limit: Int, descending: Boolean = true, map: (ResultRow) -> T): Page<T>
@JvmName(name = "pageByLong")
fun <T> Query.pageBy(column: Column<Long>, cursor: String?, limit: Int, descending: Boolean = true, map: (ResultRow) -> T): Page<T>
fun <T, K : Comparable<K>> Query.pageBy(column: Column<K>, cursor: String?, limit: Int, descending: Boolean = true, parse: (String) -> K?, map: (ResultRow) -> T): Page<T>
Link copied to clipboard
fun Route.pageLoad(page: String, configure: SveltePageLoadConfig.() -> Unit)
Link copied to clipboard
inline fun <reified T : Any> ApplicationCall.pathParameter(name: String): T
Link copied to clipboard
inline fun <reified T : Any> ApplicationCall.query(): T
Link copied to clipboard
inline fun <reified T : Any> Route.queryOf(): Route
Link copied to clipboard
fun <T : Any> ApplicationCall.readCookie(cookie: TypedCookie<T>): T?
Link copied to clipboard
suspend fun ApplicationCall.receiveForm(): UploadForm
Link copied to clipboard
suspend fun ApplicationCall.receiveUploads(): List<UploadedFile>
Link copied to clipboard
inline suspend fun <reified U : Any, T : Any> ApplicationCall.requireOwner(record: T?, others: OtherOwner = OtherOwner.NotFound, noinline owns: (user: U, record: T) -> Boolean): T
Link copied to clipboard
suspend fun ApplicationCall.requirePermission(vararg permissions: Enum<*>)
Link copied to clipboard
fun Route.requires(vararg permissions: Enum<*>, build: Route.() -> Unit): Route
Link copied to clipboard
inline suspend fun <reified T : Any> ApplicationCall.requireUser(): T
Link copied to clipboard
@JvmName(name = "resourceWithId")
inline fun <reified T : Any, reified ID : Any> Route.resource(path: String, crossinline build: ResourceScope<T, ID>.() -> Unit): Route
inline fun <reified T : Any> Route.resource(path: String, crossinline build: ResourceScope<T, String>.() -> Unit): Route
Link copied to clipboard
suspend fun ApplicationCall.respondError(code: Enum<*>, status: HttpStatusCode = HttpStatusCode.BadRequest, message: String? = null)
Link copied to clipboard
inline suspend fun <reified T : Any> ApplicationCall.respondIfStale(sent: Long?, current: Long, message: String = VERSION_CONFLICT_MESSAGE, record: () -> T): Boolean
Link copied to clipboard
suspend fun ApplicationCall.respondLoginRedirect()
Link copied to clipboard
inline fun <reified T : Any> Route.sparseFields(): Route
Link copied to clipboard
inline fun <T> Application.startupStep(name: String, block: () -> T): T
Link copied to clipboard
fun Route.svelte(public: List<String> = emptyList())
Link copied to clipboard
fun Route.timeout(limit: Duration): Route
Link copied to clipboard
fun ApplicationCall.toast(message: String, kind: ToastKind = ToastKind.Info)
Link copied to clipboard
inline fun <reified T : Any> ResultRow.toDto(vararg extra: Pair<String, Any?>): T
Link copied to clipboard
inline fun <reified T : Any> typedCookie(name: String, default: T? = null, maxAge: Duration? = 365.days, path: String = "/", sameSite: CookieSameSite = CookieSameSite.Lax, secure: Boolean = false, httpOnly: Boolean = false, category: String? = null): TypedCookie<T>
Link copied to clipboard
fun Route.uploadForm(maxSize: Long? = null, types: List<String> = emptyList(), maxFiles: Int? = null, fields: UploadFormBuilder.() -> Unit): Route
Link copied to clipboard
fun Route.uploadRules(maxSize: Long? = null, types: List<String> = emptyList(), maxFiles: Int? = null): Route
Link copied to clipboard
inline suspend fun <reified T : Any> ApplicationCall.user(): T?
Link copied to clipboard
fun validate(rules: Validator.() -> Unit)
Link copied to clipboard
fun <T : Any> ApplicationCall.writeCookie(cookie: TypedCookie<T>, value: T)