Klav Atlas

klav_ffi

13 methods.

Mainmainfe8e2a0c8c24· 2026-12-05

Blast radius

1 direct · 0 transitive workspace · 1 app affected

What a change to these 13 methods can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (ios, native)
Direct dependents
Contracts in its surface13 RPC

Whether `invite` can be used by `email` on `server` now (`POST /v1/auth/invite/check`, ADR 0048 §1.3): fails with [`KlavError::InviteInvalid`] otherwise. «Continue» runs it before the master password. Not a reservation: [`KlavCore::sign_up`] checks again.

Method
checkInvite
Transport
uniffi
Framework
uniffi
5 usages · in 1 flow

Composes a database connection URL exactly as `klav-core` does (ADR 0054 §3); `None` when the parts cannot form one. The composed string can hold the password and is secret.

Method
composeDatabaseUrl
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

Version of `klav-core` this library is built against.

Method
coreVersion
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller

The server the app signs in to unless the person opens «Use my own server» (ADR 0028 §2); `None` when `KLAV_NO_DEFAULT_SERVER` is set (the tests).

Method
defaultServer
Transport
uniffi
Framework
uniffi
6 usages · in 1 flow

A password from the generator (ADR 0022 §1), following the bundled rules of `host` when the type is `smart`.

Method
generate
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

A random password (`length` characters; letters and digits, plus symbols when `symbols`).

Method
generatePassword
Transport
uniffi
Framework
uniffi
2Handled1
1 handler site
3Called by0
No static caller
0 usages · in 1 flow

Parses a database connection URL exactly as `klav-core` does (ADR 0054 §3): Postgres, MySQL, Redis, MongoDB and the other engines `klav-core` knows, with percent-decoded user info and path. `None` when the raw text is not one of those URLs. The result holds its password, if any; Swift keeps it only while the paste editor shows it.

Method
parseDatabaseUrl
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

The presets of `klav proxy grant --preset`, byte for byte (ADR 0036 §7).

Method
proxyPresets
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow

How `server` takes new accounts (`GET /v1/health`, ADR 0048 §1.2), for «Create your account» before anything is asked: the «Invite code» field follows it, also with «Use my own server». Blocks: call it off the main thread.

Method
registrationMode
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

The server a person typed in «Use my own server»: `https://` added when missing; `klav.dev`, `api.klav.dev` and old URLs of klav.dev mean the default (ADR 0028 §3).

Method
serverFromInput
Transport
uniffi
Framework
uniffi
5 usages · in 1 flow

How the interface names a server: «klav.dev» for the default, else its host.

Method
serverName
Transport
uniffi
Framework
uniffi
3 usages · in 1 flow

The host an iOS service identifier stands for: a URL (`https://…`) or a bare domain (`github.com`). Only `https` (or `http` on this device) qualifies, as in the browser extension (ADR 0017 §5).

Method
serviceHost
Transport
uniffi
Framework
uniffi
2 usages · in 1 flow

How the site `host` relates to a login's `urls` (ADR 0025 §3); `None` when the login is not for it at all.

Method
siteRelation
Transport
uniffi
Framework
uniffi
1 usage · in 1 flow