Exosphere.Bsky.Ageassurance (Exosphere v0.6.0)

Copy Markdown View Source

XRPC client functions for the app.bsky.ageassurance namespace.

Generated from vendored lexicons — DO NOT EDIT.

Endpoints

  • begin — procedure: app.bsky.ageassurance.begin
  • get_config — query: app.bsky.ageassurance.getConfig
  • get_state — query: app.bsky.ageassurance.getState

Summary

Functions

Initiate Age Assurance for an account.

Returns Age Assurance configuration for use on the client.

Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.

Functions

begin(client, body \\ %{})

@spec begin(Exosphere.ATProto.XRPC.Client.t(), map()) ::
  {:ok, map()} | {:error, term()}

Initiate Age Assurance for an account.

get_config(client)

@spec get_config(Exosphere.ATProto.XRPC.Client.t()) :: {:ok, map()} | {:error, term()}

Returns Age Assurance configuration for use on the client.

get_state(client, params \\ [])

@spec get_state(Exosphere.ATProto.XRPC.Client.t(), map() | keyword()) ::
  {:ok, map()} | {:error, term()}

Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.

## Parameters

  • countryCode (string, required)
  • regionCode (string, optional)