Buble.Types (buble v0.1.0)

Copy Markdown View Source

Shared public types used by the Buble Elixir SDK.

The API is configuration-driven, so responses are returned as decoded JSON maps. These types document the stable outer shapes without discarding newly introduced fields returned by Buble.

Summary

Types

app_generation_task()

@type app_generation_task() :: map()

chat_request()

@type chat_request() :: map()

chat_response()

@type chat_response() :: map()

envelope(data)

@type envelope(data) :: %{data: data} | %{optional(String.t()) => data}

generation_task()

@type generation_task() :: map()

json()

@type json() ::
  nil
  | boolean()
  | number()
  | String.t()
  | [json()]
  | %{optional(String.t()) => json()}

task_status()

@type task_status() :: String.t()