Spatio.Model.ConsumeAgentTaskResponse (spatio_sdk v0.0.2)
Atomic check+increment. Returns the updated counter on success; returns 402 on trial_expired and 429 on daily_limit_exceeded (the body in error cases is the ApiError envelope).
Summary
Types
@type t() :: %Spatio.Model.ConsumeAgentTaskResponse{ allowed: boolean(), daily_limit: integer() | nil, paid: boolean() | nil, task_count: integer() | nil, trial_ends_at: DateTime.t() | nil }