AppleIntents.Approval (apple_intents v0.1.0)

Copy Markdown View Source

Parse and validate human-approval webhook parameters.

Approval callbacks reuse the original request_id, intent_id, and parameters from the gated fulfillment response.

Summary

Types

t()

@type t() :: %{
  intent_id: String.t(),
  request_id: String.t(),
  approved: boolean(),
  parameters: map()
}

Functions

parse(params)

@spec parse(map()) :: {:ok, t()} | {:error, AppleIntents.Error.t()}