lib/spatio/model/chat_action_definition.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule Spatio.Model.ChatActionDefinition do
  @moduledoc """
  One entry in `GET /actions`. Action ids are dotted (e.g. `direct-messages.send`, `channels.list`); the `executeAction` endpoint accepts the id with a free-form `params` object. 
  """

  @derive JSON.Encoder
  defstruct [
    :id,
    :name,
    :description,
    :platform,
    :category,
    :inputType,
    :outputType,
    :scopes,
    :metadata
  ]

  @type t :: %__MODULE__{
    :id => String.t,
    :name => String.t,
    :description => String.t | nil,
    :platform => String.t,
    :category => String.t | nil,
    :inputType => String.t | nil,
    :outputType => String.t | nil,
    :scopes => [String.t] | nil,
    :metadata => %{optional(String.t) => any()} | nil
  }

  def decode(value) do
    value
  end
end