Polyjuice Client v0.4.2 Polyjuice.Client.Endpoint.PostCreateRoom View Source

Create a room with various configuration options https://matrix.org/docs/spec/client_server/r0.5.0#post-matrix-client-r0-createroom

Link to this section Summary

Link to this section Types

Link to this type

invite3pid()

View Source
invite3pid() :: %{
  id_server: String.t(),
  id_access_token: String.t(),
  medium: String.t()
}
Link to this type

state_event()

View Source
state_event() :: %{type: String.t(), state_key: String.t(), content: map()}
Link to this type

t()

View Source
t() :: %Polyjuice.Client.Endpoint.PostCreateRoom{
  creation_content: map() | nil,
  initial_state: [state_event()],
  invite: [String.t()],
  invite_3pid: [invite3pid()],
  is_direct: boolean(),
  name: String.t() | nil,
  power_level_content_override: map() | nil,
  preset: :private_chat | :public_chat | :trusted_private_chat | nil,
  room_alias_name: String.t() | nil,
  room_version: String.t() | nil,
  topic: String.t() | nil,
  visibility: :private | :public
}