ArchAstro.Types.KeyValueStorageEntryPage (archastro v0.2.0)

Copy Markdown

Paginated response envelope for the dual-mode key-value storage list endpoint. End-user (user-JWT) callers receive only data; developer and server-to-server callers also receive pagination metadata fields.

Summary

Types

t()

@type t() :: %ArchAstro.Types.KeyValueStorageEntryPage{
  data: [ArchAstro.Types.KeyValueStorageEntryWithUser.t()],
  has_next: boolean() | ArchAstro.Unset.t(),
  has_prev: boolean() | ArchAstro.Unset.t(),
  page: integer() | ArchAstro.Unset.t(),
  page_size: integer() | ArchAstro.Unset.t(),
  total_entries: integer() | ArchAstro.Unset.t(),
  total_pages: integer() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()