lib/spatio/model/extract_text_result.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.ExtractTextResult do
  @moduledoc """
  Extracted text + structural metadata from a PDF (or other extraction-supported file type). `pages` is provider-shaped — treat as an opaque per-page object array. Endpoint returns `422` with `code: extraction_unsupported` when the underlying file isn't extractable. 
  """

  @derive JSON.Encoder
  defstruct [
    :text,
    :pageCount,
    :pages,
    :truncated
  ]

  @type t :: %__MODULE__{
    :text => String.t,
    :pageCount => integer(),
    :pages => [%{optional(String.t) => any()}] | nil,
    :truncated => boolean() | nil
  }

  def decode(value) do
    value
  end
end