Current section

Files

Jump to
opencode_sdk lib opencode generated event_session_next_compaction_started_properties.ex
Raw

lib/opencode/generated/event_session_next_compaction_started_properties.ex

defmodule OpenCode.Generated.EventSessionNextCompactionStartedProperties do
@moduledoc """
Provides struct and type for a EventSessionNextCompactionStartedProperties
"""
@type t :: %__MODULE__{
message_id: String.t(),
reason: String.t(),
session_id: String.t(),
timestamp: number
}
defstruct [:message_id, :reason, :session_id, :timestamp]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
message_id: :string,
reason: {:enum, ["auto", "manual"]},
session_id: :string,
timestamp: :number
]
end
end